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
commit2666732c33d2028288e0c5a74fb3b303fc99b3e0 (patch)
tree5649570c25565b22fcde5b9328e6bd9bc1e8daa2 /eclass/java-pkg.eclass
parentFix typo, bug #85490. (diff)
downloadhistorical-2666732c33d2028288e0c5a74fb3b303fc99b3e0.tar.gz
historical-2666732c33d2028288e0c5a74fb3b303fc99b3e0.tar.bz2
historical-2666732c33d2028288e0c5a74fb3b303fc99b3e0.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"
+}