diff options
author | Petteri Räty <betelgeuse@gentoo.org> | 2007-01-16 21:11:29 +0000 |
---|---|---|
committer | Petteri Räty <betelgeuse@gentoo.org> | 2007-01-16 21:11:29 +0000 |
commit | 3ee2430dcd3daa8c7dcf5c21fba93b3996b4b5ea (patch) | |
tree | e9f7a49037f7ae63e2406b90ef6de8c470349e38 /eclass | |
parent | Bump to 3.5.6 (prerelease). (diff) | |
download | gentoo-2-3ee2430dcd3daa8c7dcf5c21fba93b3996b4b5ea.tar.gz gentoo-2-3ee2430dcd3daa8c7dcf5c21fba93b3996b4b5ea.tar.bz2 gentoo-2-3ee2430dcd3daa8c7dcf5c21fba93b3996b4b5ea.zip |
Added support for JAVA_PKG_IUSE and the mandatory ECLASS and INHERITED variables.
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/java-pkg-2.eclass | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/eclass/java-pkg-2.eclass b/eclass/java-pkg-2.eclass index 742b62ea235d..5aebb37a07cf 100644 --- a/eclass/java-pkg-2.eclass +++ b/eclass/java-pkg-2.eclass @@ -5,10 +5,13 @@ # # Licensed under the GNU General Public License, v2 # -# $Header: /var/cvsroot/gentoo-x86/eclass/java-pkg-2.eclass,v 1.12 2007/01/12 16:12:15 betelgeuse Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/java-pkg-2.eclass,v 1.13 2007/01/16 21:11:29 betelgeuse Exp $ inherit java-utils-2 +ECLASS="java-pkg-2" +INHERITED="${INHERITED} ${ECLASS}" + # ----------------------------------------------------------------------------- # @eclass-begin # @eclass-summary Eclass for Java Packages @@ -18,6 +21,15 @@ inherit java-utils-2 # ----------------------------------------------------------------------------- # ------------------------------------------------------------------------------ +# @IUSE +# +# ebuilds using this eclass can set JAVA_PKG_IUSE and then this eclass +# will automatically add deps for them. +# +# ------------------------------------------------------------------------------ +IUSE="${JAVA_PKG_IUSE}" + +# ------------------------------------------------------------------------------ # @depend # # Java packages need java-config, and a fairly new release of Portage. @@ -26,6 +38,8 @@ inherit java-utils-2 # ------------------------------------------------------------------------------ DEPEND="${JAVA_PKG_E_DEPEND}" +hasq source ${JAVA_PKG_IUSE} && DEPEND="${DEPEND} source? ( app-arch/zip )" + # ------------------------------------------------------------------------------ # @rdepend # |