coreos-go-depend.eclass: Use EAPI=7 host dependencies for the compiler

This commit is contained in:
David Michael 2018-12-18 17:34:27 +00:00
parent fd01a24ef9
commit 8db31faa6b
3 changed files with 5 additions and 5 deletions

View File

@ -16,7 +16,8 @@
export COREOS_GO_VERSION="${COREOS_GO_VERSION:-go1.11}"
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}"
esac
@ -26,4 +27,3 @@ inherit coreos-go-utils
# the package gets rebuilt when the version changes.
IUSE="+go_version_${COREOS_GO_VERSION//./_}"
REQUIRED_USE="go_version_${COREOS_GO_VERSION//./_}"
DEPEND="dev-lang/go:${COREOS_GO_VERSION#go}="

View File

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

View File

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