From ffa9a018879647de1cf7f8dab7ec7d5a871209d4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Petteri=20R=C3=A4ty?= Date: Tue, 16 Jan 2007 21:11:29 +0000 Subject: [PATCH] Added support for JAVA_PKG_IUSE and the mandatory ECLASS and INHERITED variables. --- eclass/java-pkg-2.eclass | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) 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 @@ -17,6 +20,15 @@ inherit java-utils-2 # need to use Java. # ----------------------------------------------------------------------------- +# ------------------------------------------------------------------------------ +# @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 # @@ -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 # -- 2.26.2