summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Brinkmann <luckyduck@gentoo.org>2005-03-16 16:50:37 +0000
committerJan Brinkmann <luckyduck@gentoo.org>2005-03-16 16:50:37 +0000
commit6f8fbc12b8c830f6019ebda484ff787d3b64b7d7 (patch)
treed1d73a614f7aa9bf55b8a909f3f4b86de8f84c40 /eclass/java-pkg.eclass
parentFix typo, bug #85490. (diff)
downloadgentoo-2-6f8fbc12b8c830f6019ebda484ff787d3b64b7d7.tar.gz
gentoo-2-6f8fbc12b8c830f6019ebda484ff787d3b64b7d7.tar.bz2
gentoo-2-6f8fbc12b8c830f6019ebda484ff787d3b64b7d7.zip
added a slightly modified version of dosrc() which was suggested by Petteri Räty <petteri.raty@welho.com> to java-pkg.eclass. fixes #85024
Diffstat (limited to 'eclass/java-pkg.eclass')
-rw-r--r--eclass/java-pkg.eclass22
1 files changed, 21 insertions, 1 deletions
diff --git a/eclass/java-pkg.eclass b/eclass/java-pkg.eclass
index ce36229ce500..39196fd77980 100644
--- a/eclass/java-pkg.eclass
+++ b/eclass/java-pkg.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/java-pkg.eclass,v 1.21 2004/11/29 21:46:16 axxo Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/java-pkg.eclass,v 1.22 2005/03/16 16:50:37 luckyduck Exp $
ECLASS=java-pkg
INHERITED="${INHERITED} ${ECLASS}"
@@ -335,3 +335,23 @@ java-pkg_sointo()
{
sodest=$1
}
+
+java-pkg_dosrc() {
+ java-pkg_do_init_
+
+ [ $# -lt 1 ] && die "${FUNCNAME[0]}: at least one argument needed"
+
+ local target="${shareroot}/source/"
+
+ local files
+ local startdir=$(pwd)
+ for x in ${@}; do
+ cd $(dirname ${x})
+ zip -q -r ${T}/${PN}-src.zip $(basename ${x}) || die "zip failed"
+ cd ${startdir}
+ done
+
+ dodir ${target}
+ install ${INSOPTIONS} "${T}/${PN}-src.zip" "${D}${target}" \
+ || die "failed to install sources"
+}