diff options
author | Joshua Nichols <nichoj@gentoo.org> | 2006-08-05 21:14:59 +0000 |
---|---|---|
committer | Joshua Nichols <nichoj@gentoo.org> | 2006-08-05 21:14:59 +0000 |
commit | 259fac56912bc88ba045846c25a285789223fe1d (patch) | |
tree | e00e40421fb57873cadd9fd92ebff293c946463c /eclass/java-utils-2.eclass | |
parent | some more minor touchups (diff) | |
download | gentoo-2-259fac56912bc88ba045846c25a285789223fe1d.tar.gz gentoo-2-259fac56912bc88ba045846c25a285789223fe1d.tar.bz2 gentoo-2-259fac56912bc88ba045846c25a285789223fe1d.zip |
Added helper method to ensure that when FEATURE=test, then USE=test as well, or dies otherwise. Should probably be used in pkg_setup when appropriate.
Diffstat (limited to 'eclass/java-utils-2.eclass')
-rw-r--r-- | eclass/java-utils-2.eclass | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/eclass/java-utils-2.eclass b/eclass/java-utils-2.eclass index ab0f19ed1150..eac0b12d0bb1 100644 --- a/eclass/java-utils-2.eclass +++ b/eclass/java-utils-2.eclass @@ -1195,6 +1195,14 @@ java-pkg_ensure-gcj() { fi } +java-pkg_ensure-test() { + if hasq test ${FEATURES} && ! hasq -test ${FEATURES} && ! 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" + fi +} + # ------------------------------------------------------------------------------ # @section-end helper # ------------------------------------------------------------------------------ |