* [gentoo-commits] repo/gentoo:master commit in: eclass/
@ 2016-01-29 7:03 99% Ulrich Müller
0 siblings, 0 replies; 1+ results
From: Ulrich Müller @ 2016-01-29 7:03 UTC (permalink / raw
To: gentoo-commits
commit: 3fb6bec9a4790b05ba628e927d28932b0c86168e
Author: Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Wed Jan 27 16:36:17 2016 +0000
Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Fri Jan 29 07:02:55 2016 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3fb6bec9
latex-package.eclass: Support EAPI 6.
In EAPI 6, don't inherit base.eclass and don't define
latex-package_has_tetex_3().
eclass/latex-package.eclass | 13 ++++++++++---
1 file changed, 10 insertions(+), 3 deletions(-)
diff --git a/eclass/latex-package.eclass b/eclass/latex-package.eclass
index 01815ce..b32943b 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
^ permalink raw reply related [relevance 99%]
Results 1-1 of 1 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2016-01-29 7:03 99% [gentoo-commits] repo/gentoo:master commit in: eclass/ Ulrich Müller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox