has_apache_threads() {
debug-print-function $FUNCNAME $*
- if ! built_with_use www-servers/apache threads; then
+ case ${EAPI:-0} in
+ 0|1)
+ die "depend.apache.eclass: has_apache_threads is not supported for EAPI=${EAPI:-0}"
+ ;;
+ esac
+
+ if ! has_version 'www-servers/apache[threads]'; then
return
fi
has_apache_threads_in() {
debug-print-function $FUNCNAME $*
- if ! built_with_use www-servers/apache threads; then
+ case ${EAPI:-0} in
+ 0|1)
+ die "depend.apache.eclass: has_apache_threads_in is not supported for EAPI=${EAPI:-0}"
+ ;;
+ esac
+
+ 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"