summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorJason Zaman <perfinion@gentoo.org>2016-12-12 00:15:38 +0800
committerJason Zaman <perfinion@gentoo.org>2016-12-12 03:59:38 +0800
commit7f61a7ae3da5dee9ee7fdda19da1aa9763ccbb50 (patch)
tree6b5ade7387adf7fc05a0f4aca1f94811b6624058 /eclass
parentselinux-policy-2.eclass: eapply for EAPI6 (diff)
downloadgentoo-7f61a7ae3da5dee9ee7fdda19da1aa9763ccbb50.tar.gz
gentoo-7f61a7ae3da5dee9ee7fdda19da1aa9763ccbb50.tar.bz2
gentoo-7f61a7ae3da5dee9ee7fdda19da1aa9763ccbb50.zip
selinux-policy-2.eclass: support EAPI6
Diffstat (limited to 'eclass')
-rw-r--r--eclass/selinux-policy-2.eclass18
1 files changed, 10 insertions, 8 deletions
diff --git a/eclass/selinux-policy-2.eclass b/eclass/selinux-policy-2.eclass
index fbca2aeb0c4c..692a885b6b37 100644
--- a/eclass/selinux-policy-2.eclass
+++ b/eclass/selinux-policy-2.eclass
@@ -74,15 +74,22 @@
# The default value is the 'master' branch.
: ${SELINUX_GIT_BRANCH:="master"};
-extra_eclass=""
+case "${EAPI:-0}" in
+ 0|1|2|3|4) die "EAPI<5 is not supported";;
+ 5|6) : ;;
+ *) die "unknown EAPI" ;;
+esac
+
case ${BASEPOL} in
- 9999) extra_eclass="git-r3";
+ 9999) inherit git-r3
EGIT_REPO_URI="${SELINUX_GIT_REPO}";
EGIT_BRANCH="${SELINUX_GIT_BRANCH}";
EGIT_CHECKOUT_DIR="${WORKDIR}/refpolicy";;
esac
-inherit eutils ${extra_eclass}
+if [[ ${EAPI:-0} == 5 ]]; then
+ inherit eutils
+fi
IUSE=""
@@ -114,11 +121,6 @@ DEPEND="${RDEPEND}
sys-devel/m4
>=sys-apps/checkpolicy-2.0.21"
-case "${EAPI:-0}" in
- 0|1|2|3|4) die "EAPI<5 is not supported";;
- *) : ;;
-esac
-
EXPORT_FUNCTIONS src_unpack src_prepare src_compile src_install pkg_postinst pkg_postrm
# @FUNCTION: selinux-policy-2_src_unpack