The attached patch makes testing for the test use flag automatic with
FEATURES test so you do not need to call java-pkg_ensure-test directly
any more. There was only one case of this in the tree, but at least you
are aware of this know.
Regards,
Petteri
Index: java-pkg-2.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/java-pkg-2.eclass,v
retrieving revision 1.4
diff -u -r1.4 java-pkg-2.eclass
--- java-pkg-2.eclass 3 Dec 2006 13:05:06 -0000 1.4
+++ java-pkg-2.eclass 8 Dec 2006 12:03:43 -0000
@@ -42,6 +42,7 @@
#
------------------------------------------------------------------------------
java-pkg-2_pkg_setup() {
java-pkg_init
+ java-pkg_ensure-test
}
#
------------------------------------------------------------------------------
Index: java-utils-2.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/java-utils-2.eclass,v
retrieving revision 1.33
diff -u -r1.33 java-utils-2.eclass
--- java-utils-2.eclass 7 Dec 2006 02:27:22 -0000 1.33
+++ java-utils-2.eclass 8 Dec 2006 12:03:45 -0000
@@ -1294,7 +1303,9 @@
}
java-pkg_ensure-test() {
- if hasq test ${FEATURES} && ! hasq -test ${FEATURES} && ! use test; then
+ if hasq test ${FEATURES} && ! hasq -test ${FEATURES} \
+ && hasq test ${IUSE} && ! use test;
+ then
eerror "You specified FEATURES=test, but USE=test is needed"
eerror "to pull in the additional dependencies for testing"
die "Need USE=test enabled"
signature.asc
Description: OpenPGP digital signature
|