eclass: Update to support newer EAPI versions

This commit is contained in:
Krzesimir Nowak 2021-12-21 11:04:38 +01:00
parent 4135a11e67
commit 78e097ecaf
5 changed files with 6 additions and 6 deletions

View File

@ -17,7 +17,7 @@ export COREOS_GO_VERSION="${COREOS_GO_VERSION:-go1.17}"
case "${EAPI:-0}" in case "${EAPI:-0}" in
5|6) DEPEND="dev-lang/go:${COREOS_GO_VERSION#go}=" ;; 5|6) DEPEND="dev-lang/go:${COREOS_GO_VERSION#go}=" ;;
7) BDEPEND="dev-lang/go:${COREOS_GO_VERSION#go}=" ;; 7|8) BDEPEND="dev-lang/go:${COREOS_GO_VERSION#go}=" ;;
*) die "Unsupported EAPI=${EAPI} for ${ECLASS}" *) die "Unsupported EAPI=${EAPI} for ${ECLASS}"
esac esac

View File

@ -10,7 +10,7 @@
# #
case "${EAPI:-0}" in case "${EAPI:-0}" in
6) ;; 6|7|8) ;;
*) die "Unsupported EAPI=${EAPI} for ${ECLASS}" *) die "Unsupported EAPI=${EAPI} for ${ECLASS}"
esac esac

View File

@ -8,7 +8,7 @@
# and packages that depend on it. It does not set any metadata. # and packages that depend on it. It does not set any metadata.
case "${EAPI:-0}" in case "${EAPI:-0}" in
5|6|7) ;; 5|6|7|8) ;;
*) die "Unsupported EAPI=${EAPI} for ${ECLASS}" *) die "Unsupported EAPI=${EAPI} for ${ECLASS}"
esac esac

View File

@ -34,7 +34,7 @@
# @CODE # @CODE
case "${EAPI:-0}" in case "${EAPI:-0}" in
5|6|7) ;; 5|6|7|8) ;;
*) die "Unsupported EAPI=${EAPI} for ${ECLASS}" *) die "Unsupported EAPI=${EAPI} for ${ECLASS}"
esac esac
@ -68,7 +68,7 @@ go_build() {
coreos-go_src_prepare() { coreos-go_src_prepare() {
debug-print-function ${FUNCNAME} "$@" debug-print-function ${FUNCNAME} "$@"
has ${EAPI:-0} 6 7 && default has ${EAPI:-0} 6 7 8 && default
go_export go_export
export GOPATH="${WORKDIR}/gopath" export GOPATH="${WORKDIR}/gopath"

View File

@ -25,7 +25,7 @@ COREOS_SOURCE_VERSION="${PV}${COREOS_SOURCE_REVISION}"
COREOS_KERNEL_SOURCE_NAME="linux-${PV/_rc/-rc}-coreos${COREOS_SOURCE_REVISION}" COREOS_KERNEL_SOURCE_NAME="linux-${PV/_rc/-rc}-coreos${COREOS_SOURCE_REVISION}"
COREOS_SOURCE_NAME="linux-${PV/_rc/-rc}-flatcar" COREOS_SOURCE_NAME="linux-${PV/_rc/-rc}-flatcar"
[[ ${EAPI} != "7" ]] && die "Only EAPI=7 is supported" [[ ${EAPI} != [78] ]] && die "Only EAPI 7 and 8 are supported"
inherit linux-info toolchain-funcs inherit linux-info toolchain-funcs