summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorThomas Matthijs <axxo@gentoo.org>2004-10-16 21:32:09 +0000
committerThomas Matthijs <axxo@gentoo.org>2004-10-16 21:32:09 +0000
commit6cd3bbc530f5e320546892306485b78f659d9fcf (patch)
treeb1cb2dabfc3e3a6ec01ac1ad8de17b3f7b718ef4 /eclass
parentshadow-5 doesnt exist (diff)
downloadgentoo-2-6cd3bbc530f5e320546892306485b78f659d9fcf.tar.gz
gentoo-2-6cd3bbc530f5e320546892306485b78f659d9fcf.tar.bz2
gentoo-2-6cd3bbc530f5e320546892306485b78f659d9fcf.zip
add java-pkg_getjar && java-pkg_getjars
Diffstat (limited to '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 444f630083ae..978cab2dd85c 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.15 2004/10/16 16:54:42 axxo Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/java-pkg.eclass,v 1.16 2004/10/16 21:32:09 axxo Exp $
inherit base
ECLASS=java-pkg
@@ -256,6 +256,26 @@ java-pkg_jar-from()
fi
}
+java-pkg_getjar() {
+ local pkg=$1
+ local jar=$2
+
+ for x in $(java-config --classpath=${pkg} | tr ':' ' '); do
+ if [ ! -f ${x} ] ; then
+ die "Installation problems with jars in ${pkg} - is it installed?"
+ elif [ "$(basename ${x})" == "${jar}" ] ; then
+ echo ${x}
+ return 0
+ fi
+ done
+ die "Could not find $2 in $1"
+}
+
+java-pkg_getjars() {
+ java-config --classpath=$1
+}
+
+
java-pkg_dohtml() {
dohtml -f package-list $@
}