projects
/
gentoo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5251e66
)
Added helper method to ensure that when FEATURE=test, then USE=test as well, or dies...
author
Joshua Nichols
<nichoj@gentoo.org>
Sat, 5 Aug 2006 21:14:59 +0000
(21:14 +0000)
committer
Joshua Nichols
<nichoj@gentoo.org>
Sat, 5 Aug 2006 21:14:59 +0000
(21:14 +0000)
eclass/java-utils-2.eclass
patch
|
blob
|
history
diff --git
a/eclass/java-utils-2.eclass
b/eclass/java-utils-2.eclass
index ab0f19ed1150a7581aa21116eeb3f2fe9dc2af4f..eac0b12d0bb1f32e449e6efb896a8410029a2400 100644
(file)
--- 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
# ------------------------------------------------------------------------------