summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2021-06-20 23:13:32 +0200
committerDavid Seifert <soap@gentoo.org>2021-06-20 23:13:32 +0200
commit8f14242e2277d93d93a45d815148281de7ea48e7 (patch)
tree696b67f2de7501bc2b170c0bf989ec5ce6a48a4a /eclass/apache-module.eclass
parentalternatives.eclass: [QA] add EAPI guard (diff)
downloadgentoo-8f14242e2277d93d93a45d815148281de7ea48e7.tar.gz
gentoo-8f14242e2277d93d93a45d815148281de7ea48e7.tar.bz2
gentoo-8f14242e2277d93d93a45d815148281de7ea48e7.zip
apache-module.eclass: [QA] add EAPI guard
Signed-off-by: Sam James <sam@gentoo.org> Signed-off-by: David Seifert <soap@gentoo.org>
Diffstat (limited to 'eclass/apache-module.eclass')
-rw-r--r--eclass/apache-module.eclass13
1 files changed, 12 insertions, 1 deletions
diff --git a/eclass/apache-module.eclass b/eclass/apache-module.eclass
index 4c88f14566a1..2594445c8b4f 100644
--- a/eclass/apache-module.eclass
+++ b/eclass/apache-module.eclass
@@ -4,6 +4,7 @@
# @ECLASS: apache-module.eclass
# @MAINTAINER:
# apache-bugs@gentoo.org
+# @SUPPORTED_EAPIS: 5 6 7
# @BLURB: Provides a common set of functions for apache modules
# @DESCRIPTION:
# This eclass handles apache modules in a sane way.
@@ -44,6 +45,16 @@
# </IfDefine>
# @CODE
+case ${EAPI} in
+ [5-7]) ;;
+ *) die "EAPI=${EAPI:-0} is not supported" ;;
+esac
+
+EXPORT_FUNCTIONS src_compile src_install pkg_postinst
+
+if [[ -z ${_APACHE_MODULE_ECLASS} ]]; then
+_APACHE_MODULE_ECLASS=1
+
inherit depend.apache
# ==============================================================================
@@ -235,4 +246,4 @@ apache-module_pkg_postinst() {
fi
}
-EXPORT_FUNCTIONS src_compile src_install pkg_postinst
+fi