Skip to content

Commit

Permalink
latex-package.eclass: Support EAPI 6.
Browse files Browse the repository at this point in the history
In EAPI 6, don't inherit base.eclass and don't define
latex-package_has_tetex_3().
  • Loading branch information
ulm committed Jan 29, 2016
1 parent 874af19 commit 3fb6bec
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions eclass/latex-package.eclass
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand All @@ -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
Expand Down

0 comments on commit 3fb6bec

Please sign in to comment.