summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDoug Freed <dwfreed@mtu.edu>2016-12-08 19:38:18 +0100
committerAndreas K. Hüttel <dilfridge@gentoo.org>2016-12-08 19:38:18 +0100
commit7fb111090520fde24ebf2f4fdbf3f349927d5ab1 (patch)
tree09d50d17bab40dfcaa55c4f0a26da621018bcd95
parentapache-module.eclass: copied from main tree (diff)
downloaddilfridge-7fb111090520fde24ebf2f4fdbf3f349927d5ab1.tar.gz
dilfridge-7fb111090520fde24ebf2f4fdbf3f349927d5ab1.tar.bz2
dilfridge-7fb111090520fde24ebf2f4fdbf3f349927d5ab1.zip
depend.apache.eclass: Replace build_with_use with has_version
-rw-r--r--eclass/depend.apache.eclass6
1 files changed, 3 insertions, 3 deletions
diff --git a/eclass/depend.apache.eclass b/eclass/depend.apache.eclass
index b69c2ec..a7d206f 100644
--- a/eclass/depend.apache.eclass
+++ b/eclass/depend.apache.eclass
@@ -290,7 +290,7 @@ has_apache() {
has_apache_threads() {
debug-print-function $FUNCNAME $*
- if ! built_with_use www-servers/apache threads; then
+ if ! has_version 'www-servers/apache[threads]'; then
return
fi
@@ -313,14 +313,14 @@ has_apache_threads() {
has_apache_threads_in() {
debug-print-function $FUNCNAME $*
- if ! built_with_use www-servers/apache threads; then
+ if ! has_version 'www-servers/apache[threads]'; then
return
fi
local myforeign="$1"
local myflag="${2:-threads}"
- if ! built_with_use ${myforeign} ${myflag}; then
+ if ! has_version "${myforeign}[${myflag}]"; then
echo
eerror "You need to enable USE flag '${myflag}' in ${myforeign} to"
eerror "build a thread-safe version of ${CATEGORY}/${PN} for use"