summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2016-01-27 17:36:17 +0100
committerUlrich Müller <ulm@gentoo.org>2016-01-29 08:02:55 +0100
commit3fb6bec9a4790b05ba628e927d28932b0c86168e (patch)
tree14c71bc66d43e274c39bb43ee6b399486cc1b7d2
parentlatex-package.eclass: Add some die commands. (diff)
downloadgentoo-3fb6bec9.tar.gz
gentoo-3fb6bec9.tar.bz2
gentoo-3fb6bec9.zip
latex-package.eclass: Support EAPI 6.
In EAPI 6, don't inherit base.eclass and don't define latex-package_has_tetex_3().
-rw-r--r--eclass/latex-package.eclass13
1 files changed, 10 insertions, 3 deletions
diff --git a/eclass/latex-package.eclass b/eclass/latex-package.eclass
index 01815ce49409..b32943b580a4 100644
--- a/eclass/latex-package.eclass
+++ b/eclass/latex-package.eclass
@@ -51,9 +51,13 @@
# you must either grab each file individually, or find a place to mirror an
# archive of them. (iBiblio)
#
-# It inherits base.
+# It inherits base in EAPI 5 and earlier.
-inherit base
+case ${EAPI:-0} in
+ 0|1|2|3|4|5) inherit base ;;
+ 6) ;;
+ *) die "Unknown EAPI ${EAPI} for ${ECLASS}" ;;
+esac
RDEPEND="virtual/latex-base"
DEPEND="${RDEPEND}
@@ -69,7 +73,10 @@ SUPPLIER="misc"
# Kept for backwards compatibility
latex-package_has_tetex_3() {
- return 0
+ case ${EAPI:-0} in
+ 0|1|2|3|4|5) return 0 ;;
+ *) die "${FUNCNAME} no longer supported in EAPI ${EAPI}" ;;
+ esac
}
# @FUNCTION: latex-package_src_doinstall