public inbox for gentoo-java@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Petteri Räty" <betelgeuse@gentoo.org>
To: Gentoo Java <gentoo-java@lists.gentoo.org>
Subject: [gentoo-java] JAVA_PKG_IUSE now works with java-pkg-opt-2 too
Date: Tue, 13 Nov 2007 21:37:30 +0200	[thread overview]
Message-ID: <4739FCFA.8030901@gentoo.org> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 55 bytes --]

Committed eclass patch attached.

Regards,
Petteri

[-- Attachment #1.2: iuse-to-java-utils.patch --]
[-- Type: text/plain, Size: 2614 bytes --]

Index: java-utils-2.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/java-utils-2.eclass,v
retrieving revision 1.94
diff -u -r1.94 java-utils-2.eclass
--- java-utils-2.eclass	4 Oct 2007 09:59:29 -0000	1.94
+++ java-utils-2.eclass	13 Nov 2007 19:33:35 -0000
@@ -73,6 +73,7 @@
 # so that ebuilds can use new features without depending on specific versions.
 # -----------------------------------------------------------------------------
 JAVA_PKG_E_DEPEND=">=dev-java/java-config-2.0.33-r1 ${JAVA_PKG_PORTAGE_DEP}"
+hasq source ${JAVA_PKG_IUSE} && JAVA_PKG_E_DEPEND="${JAVA_PKG_E_DEPEND} source? ( app-arch/zip )"
 
 # -----------------------------------------------------------------------------
 # @variable-external JAVA_PKG_ALLOW_VM_CHANGE
Index: java-pkg-2.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/java-pkg-2.eclass,v
retrieving revision 1.24
diff -u -r1.24 java-pkg-2.eclass
--- java-pkg-2.eclass	5 Aug 2007 08:17:05 -0000	1.24
+++ java-pkg-2.eclass	13 Nov 2007 19:33:35 -0000
@@ -20,8 +20,9 @@
 # ------------------------------------------------------------------------------
 # @IUSE
 #
-# ebuilds using this eclass can set JAVA_PKG_IUSE and then this eclass
-# will automatically add deps for them.
+# Use JAVA_PKG_IUSE instead of IUSE for doc, source and examples so that
+# the eclass can automatically add the needed dependencies for the java-pkg_do*
+# functions.
 #
 # ------------------------------------------------------------------------------
 IUSE="${JAVA_PKG_IUSE}"
@@ -35,8 +36,6 @@
 # ------------------------------------------------------------------------------
 DEPEND="${JAVA_PKG_E_DEPEND}"
 
-hasq source ${JAVA_PKG_IUSE} && DEPEND="${DEPEND} source? ( app-arch/zip )"
-
 # ------------------------------------------------------------------------------
 # @rdepend
 #
Index: java-pkg-opt-2.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/java-pkg-opt-2.eclass,v
retrieving revision 1.7
diff -u -r1.7 java-pkg-opt-2.eclass
--- java-pkg-opt-2.eclass	5 Aug 2007 08:24:30 -0000	1.7
+++ java-pkg-opt-2.eclass	13 Nov 2007 19:33:35 -0000
@@ -33,7 +33,8 @@
 
 # ------------------------------------------------------------------------------
 # ------------------------------------------------------------------------------
-IUSE="${JAVA_PKG_OPT_USE}"
+# See java-pkg-2.eclass for JAVA_PKG_IUSE documentation
+IUSE="${JAVA_PKG_IUSE} ${JAVA_PKG_OPT_USE}"
 
 EXPORT_FUNCTIONS pkg_setup
 

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 252 bytes --]

                 reply	other threads:[~2007-11-13 19:38 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4739FCFA.8030901@gentoo.org \
    --to=betelgeuse@gentoo.org \
    --cc=gentoo-java@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox