mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-17 18:06:59 +02:00
eclass: Update to support newer EAPI versions
This commit is contained in:
parent
4135a11e67
commit
78e097ecaf
@ -17,7 +17,7 @@ export COREOS_GO_VERSION="${COREOS_GO_VERSION:-go1.17}"
|
||||
|
||||
case "${EAPI:-0}" in
|
||||
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}"
|
||||
esac
|
||||
|
||||
|
@ -10,7 +10,7 @@
|
||||
#
|
||||
|
||||
case "${EAPI:-0}" in
|
||||
6) ;;
|
||||
6|7|8) ;;
|
||||
*) die "Unsupported EAPI=${EAPI} for ${ECLASS}"
|
||||
esac
|
||||
|
||||
|
@ -8,7 +8,7 @@
|
||||
# and packages that depend on it. It does not set any metadata.
|
||||
|
||||
case "${EAPI:-0}" in
|
||||
5|6|7) ;;
|
||||
5|6|7|8) ;;
|
||||
*) die "Unsupported EAPI=${EAPI} for ${ECLASS}"
|
||||
esac
|
||||
|
||||
|
@ -34,7 +34,7 @@
|
||||
# @CODE
|
||||
|
||||
case "${EAPI:-0}" in
|
||||
5|6|7) ;;
|
||||
5|6|7|8) ;;
|
||||
*) die "Unsupported EAPI=${EAPI} for ${ECLASS}"
|
||||
esac
|
||||
|
||||
@ -68,7 +68,7 @@ go_build() {
|
||||
|
||||
coreos-go_src_prepare() {
|
||||
debug-print-function ${FUNCNAME} "$@"
|
||||
has ${EAPI:-0} 6 7 && default
|
||||
has ${EAPI:-0} 6 7 8 && default
|
||||
|
||||
go_export
|
||||
export GOPATH="${WORKDIR}/gopath"
|
||||
|
@ -25,7 +25,7 @@ COREOS_SOURCE_VERSION="${PV}${COREOS_SOURCE_REVISION}"
|
||||
COREOS_KERNEL_SOURCE_NAME="linux-${PV/_rc/-rc}-coreos${COREOS_SOURCE_REVISION}"
|
||||
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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user