summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Lecher <jlec@gentoo.org>2016-02-15 08:55:44 +0100
committerJustin Lecher <jlec@gentoo.org>2016-02-15 09:04:57 +0100
commitafc77cad5eb37026d84d190139afd832a5676457 (patch)
tree10be639e74c0dd17b6a7699d47a25242bad65d20 /eclass/intel-sdp.eclass
parentmedia-sound/mpg123: Removed old. (diff)
downloadgentoo-afc77cad5eb37026d84d190139afd832a5676457.tar.gz
gentoo-afc77cad5eb37026d84d190139afd832a5676457.tar.bz2
gentoo-afc77cad5eb37026d84d190139afd832a5676457.zip
intel-sdp.eclass: Inherit only once
* Move EAPI check to the top Signed-off-by: Justin Lecher <jlec@gentoo.org>
Diffstat (limited to 'eclass/intel-sdp.eclass')
-rw-r--r--eclass/intel-sdp.eclass15
1 files changed, 10 insertions, 5 deletions
diff --git a/eclass/intel-sdp.eclass b/eclass/intel-sdp.eclass
index 00e52a083e22..4fa28610eb45 100644
--- a/eclass/intel-sdp.eclass
+++ b/eclass/intel-sdp.eclass
@@ -8,6 +8,13 @@
# Sci Team <sci@gentoo.org>
# @BLURB: Handling of Intel's Software Development Products package management
+if [[ ! ${_INTEL_SDP_ECLASS_} ]]; then
+
+case "${EAPI:-0}" in
+ 5) ;;
+ *) die "EAPI=${EAPI} is not supported" ;;
+esac
+
# @ECLASS-VARIABLE: INTEL_DID
# @DEFAULT_UNSET
# @DESCRIPTION:
@@ -514,8 +521,6 @@ intel-sdp_pkg_postrm() {
}
EXPORT_FUNCTIONS pkg_setup src_unpack src_install pkg_postinst pkg_postrm pkg_pretend
-case "${EAPI:-0}" in
- 0|1|2|3)die "EAPI=${EAPI} is not supported anymore" ;;
- 4|5) ;;
- *) die "EAPI=${EAPI} is not supported" ;;
-esac
+
+_INTEL_SDP_ECLASS_=1
+fi