summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorDylan Carlson <absinthe@gentoo.org>2003-05-14 16:44:46 +0000
committerDylan Carlson <absinthe@gentoo.org>2003-05-14 16:44:46 +0000
commitd77ebe5acc230bd1bbb48059d2ef6b0723ab7e0e (patch)
tree72061b75f52f39e0e379b3baad5540b9a0c61092 /eclass
parentAdded "gnuconfig" to inherit and "gnuconfig_update" to src_compile() to make ... (diff)
downloadgentoo-2-d77ebe5acc230bd1bbb48059d2ef6b0723ab7e0e.tar.gz
gentoo-2-d77ebe5acc230bd1bbb48059d2ef6b0723ab7e0e.tar.bz2
gentoo-2-d77ebe5acc230bd1bbb48059d2ef6b0723ab7e0e.zip
dojar is now SLOT-aware.
Diffstat (limited to 'eclass')
-rw-r--r--eclass/java-pkg.eclass17
1 files changed, 12 insertions, 5 deletions
diff --git a/eclass/java-pkg.eclass b/eclass/java-pkg.eclass
index b80807b384be..8e07937ac536 100644
--- a/eclass/java-pkg.eclass
+++ b/eclass/java-pkg.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/java-pkg.eclass,v 1.2 2003/05/14 04:35:54 absinthe Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/java-pkg.eclass,v 1.3 2003/05/14 16:44:46 absinthe Exp $
inherit base
ECLASS=java-pkg
@@ -17,11 +17,18 @@ java-pkg_dojar()
JARDESTTREE="lib"
fi
+ # Set install paths
sharepath="${DESTTREE}/share"
- shareroot="${sharepath}/${PN}"
- jardest="${shareroot}/${JARDESTTREE}"
- package_env="${D}${shareroot}/package.env"
- #dodir "${jardest}"
+ if [ "$SLOT" == "0" ] ; then
+
+ shareroot="${sharepath}/${PN}"
+ jardest="${shareroot}/${JARDESTTREE}"
+ package_env="${D}${shareroot}/package.env"
+ else
+ shareroot="${sharepath}/${PN}-${PV}"
+ jardest="${shareroot}/${JARDESTTREE}"
+ package_env="${D}${shareroot}/package.env"
+ fi
debug-print "JARDESTTREE=${JARDESTTREE}"
debug-print "sharepath=${sharepath}"