mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-20 05:51:18 +02:00
coreos-go-depend.eclass: Use EAPI=7 host dependencies for the compiler
This commit is contained in:
parent
fd01a24ef9
commit
8db31faa6b
@ -16,7 +16,8 @@
|
|||||||
export COREOS_GO_VERSION="${COREOS_GO_VERSION:-go1.11}"
|
export COREOS_GO_VERSION="${COREOS_GO_VERSION:-go1.11}"
|
||||||
|
|
||||||
case "${EAPI:-0}" in
|
case "${EAPI:-0}" in
|
||||||
5|6) ;;
|
5|6) DEPEND="dev-lang/go:${COREOS_GO_VERSION#go}=" ;;
|
||||||
|
7) BDEPEND="dev-lang/go:${COREOS_GO_VERSION#go}=" ;;
|
||||||
*) die "Unsupported EAPI=${EAPI} for ${ECLASS}"
|
*) die "Unsupported EAPI=${EAPI} for ${ECLASS}"
|
||||||
esac
|
esac
|
||||||
|
|
||||||
@ -26,4 +27,3 @@ inherit coreos-go-utils
|
|||||||
# the package gets rebuilt when the version changes.
|
# the package gets rebuilt when the version changes.
|
||||||
IUSE="+go_version_${COREOS_GO_VERSION//./_}"
|
IUSE="+go_version_${COREOS_GO_VERSION//./_}"
|
||||||
REQUIRED_USE="go_version_${COREOS_GO_VERSION//./_}"
|
REQUIRED_USE="go_version_${COREOS_GO_VERSION//./_}"
|
||||||
DEPEND="dev-lang/go:${COREOS_GO_VERSION#go}="
|
|
||||||
|
@ -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) ;;
|
5|6|7) ;;
|
||||||
*) die "Unsupported EAPI=${EAPI} for ${ECLASS}"
|
*) die "Unsupported EAPI=${EAPI} for ${ECLASS}"
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
@ -25,7 +25,7 @@
|
|||||||
# @CODE
|
# @CODE
|
||||||
|
|
||||||
case "${EAPI:-0}" in
|
case "${EAPI:-0}" in
|
||||||
5|6) ;;
|
5|6|7) ;;
|
||||||
*) die "Unsupported EAPI=${EAPI} for ${ECLASS}"
|
*) die "Unsupported EAPI=${EAPI} for ${ECLASS}"
|
||||||
esac
|
esac
|
||||||
|
|
||||||
@ -56,7 +56,7 @@ go_build() {
|
|||||||
|
|
||||||
coreos-go_src_prepare() {
|
coreos-go_src_prepare() {
|
||||||
debug-print-function ${FUNCNAME} "$@"
|
debug-print-function ${FUNCNAME} "$@"
|
||||||
has ${EAPI:-0} 6 && default
|
has ${EAPI:-0} 6 7 && default
|
||||||
|
|
||||||
go_export
|
go_export
|
||||||
export GOPATH="${WORKDIR}/gopath"
|
export GOPATH="${WORKDIR}/gopath"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user