diff options
author | 2016-01-27 17:36:17 +0100 | |
---|---|---|
committer | 2016-01-29 08:02:55 +0100 | |
commit | 3fb6bec9a4790b05ba628e927d28932b0c86168e (patch) | |
tree | 14c71bc66d43e274c39bb43ee6b399486cc1b7d2 /eclass | |
parent | latex-package.eclass: Add some die commands. (diff) | |
download | gentoo-3fb6bec9a4790b05ba628e927d28932b0c86168e.tar.gz gentoo-3fb6bec9a4790b05ba628e927d28932b0c86168e.tar.bz2 gentoo-3fb6bec9a4790b05ba628e927d28932b0c86168e.zip |
latex-package.eclass: Support EAPI 6.
In EAPI 6, don't inherit base.eclass and don't define
latex-package_has_tetex_3().
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/latex-package.eclass | 13 |
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 |