logo       

Sponsor
FREE Network Mapping Tool for Microsoft® Office Visio® Professional 2007
Don't map your network by hand - let LANsurveyor Exx press for Microsoft Visio Professional 2007 automatically create network diagrams for you!

Making java-pkg_ensure-test part of java-pkg_pkg_setup: msg#00005

Subject: Making java-pkg_ensure-test part of java-pkg_pkg_setup
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"

Attachment: signature.asc
Description: OpenPGP digital signature

<Prev in Thread] Current Thread [Next in Thread>
Sponsor
FREE Network Mapping Tool for Microsoft® OfficeVisio Professional 2007
Don't map your network by hand - let LANsurveyor Express for Microsoft Visio Professional 2007
automatically create network diagrams for you!
Google Custom Search

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe

Navigation

Home | sitemap | advertise | OSDir is an inevitable website. super tiny logo