summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorLars Wendler <polynomial-c@gentoo.org>2018-07-17 09:05:15 +0200
committerLars Wendler <polynomial-c@gentoo.org>2018-07-17 09:09:59 +0200
commit2ead6cf1effb2c441017bd27d966e33efa1880f5 (patch)
treeff33f37bc62bd7d086cb704ab0cf2c564d58a366 /eclass
parentdev-libs/console_bridge: Remove old (diff)
downloadgentoo-2ead6cf1effb2c441017bd27d966e33efa1880f5.tar.gz
gentoo-2ead6cf1effb2c441017bd27d966e33efa1880f5.tar.bz2
gentoo-2ead6cf1effb2c441017bd27d966e33efa1880f5.zip
apache-2.eclass: Replaced versionator with eapi7-ver eclass.
Diffstat (limited to 'eclass')
-rw-r--r--eclass/apache-2.eclass6
1 files changed, 3 insertions, 3 deletions
diff --git a/eclass/apache-2.eclass b/eclass/apache-2.eclass
index b2d72f479c7b..56187720b5d3 100644
--- a/eclass/apache-2.eclass
+++ b/eclass/apache-2.eclass
@@ -9,7 +9,7 @@
# This eclass handles apache-2.x ebuild functions such as LoadModule generation
# and inter-module dependency checking.
-inherit autotools eutils flag-o-matic multilib ssl-cert user toolchain-funcs versionator
+inherit autotools eutils flag-o-matic multilib ssl-cert user toolchain-funcs eapi7-ver
[[ ${CATEGORY}/${PN} != www-servers/apache ]] \
&& die "Do not use this eclass with anything else than www-servers/apache ebuilds!"
@@ -21,7 +21,7 @@ case ${EAPI:-0} in
esac
# settings which are version specific go in here:
-case $(get_version_component_range 1-2) in
+case $(ver_cut 1-2) in
2.4)
DEFAULT_MPM_THREADED="event" #509922
CDEPEND=">=dev-libs/apr-1.5.1:=
@@ -119,7 +119,7 @@ _apache2_set_mpms() {
REQUIRED_USE+=" )"
done
- if [[ "${PV}" != 2.2* ]] ; then
+ if [[ "$(ver_cut 1-2)" != 2.2 ]] ; then
REQUIRED_USE+=" apache2_mpms_prefork? ( !apache2_modules_http2 )"
fi
}