summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPetteri Räty <betelgeuse@gentoo.org>2006-12-17 14:48:33 +0000
committerPetteri Räty <betelgeuse@gentoo.org>2006-12-17 14:48:33 +0000
commit59cef332a3d7634f78ccda9a93e45495ce626aa6 (patch)
tree32eb5e7d703f352fedd03d8ff82442c0e8e1704d /eclass/java-utils-2.eclass
parents/pacakge/package in files/Gentoo (diff)
downloadhistorical-59cef332a3d7634f78ccda9a93e45495ce626aa6.tar.gz
historical-59cef332a3d7634f78ccda9a93e45495ce626aa6.tar.bz2
historical-59cef332a3d7634f78ccda9a93e45495ce626aa6.zip
Added wrapper for depend-java-query to pass USE flags. This and java-config-2.0.31 will fix bug #156228. This eclass should be changed to depend on 2.0.31 when it is stable.
Diffstat (limited to 'eclass/java-utils-2.eclass')
-rw-r--r--eclass/java-utils-2.eclass13
1 files changed, 12 insertions, 1 deletions
diff --git a/eclass/java-utils-2.eclass b/eclass/java-utils-2.eclass
index b398db6130e3..b51d24cecb91 100644
--- a/eclass/java-utils-2.eclass
+++ b/eclass/java-utils-2.eclass
@@ -6,7 +6,7 @@
#
# Licensed under the GNU General Public License, v2
#
-# $Header: /var/cvsroot/gentoo-x86/eclass/java-utils-2.eclass,v 1.34 2006/12/08 12:12:04 betelgeuse Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/java-utils-2.eclass,v 1.35 2006/12/17 14:48:33 betelgeuse Exp $
# -----------------------------------------------------------------------------
@@ -205,6 +205,17 @@ java-pkg_dojar() {
}
+# ------------------------------------------------------------------------------
+# @internal-function depend-java-query
+#
+# Wrapper for the depend-java-query binary to enable passing USE in env.
+# Using env variables keeps this eclass working with java-config versions that
+# do not handle use flags.
+# ------------------------------------------------------------------------------
+
+depend-java-query() {
+ USE="${USE}" $(which depend-java-query) "${@}"
+}
# ------------------------------------------------------------------------------
# @ebuild-function java-pkg_regjar