#
# 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
# 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
#
# ------------------------------------------------------------------------------
DEPEND="${JAVA_PKG_E_DEPEND}"
+hasq source ${JAVA_PKG_IUSE} && DEPEND="${DEPEND} source? ( app-arch/zip )"
+
# ------------------------------------------------------------------------------
# @rdepend
#