commit: a75afb393efb72d4e55832468d6e69895c1a3a70 Author: William Hubbs <williamh <AT> gentoo <DOT> org> AuthorDate: Mon Feb 4 18:10:46 2019 +0000 Commit: William Hubbs <williamh <AT> gentoo <DOT> org> CommitDate: Thu Feb 7 19:22:29 2019 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a75afb39
golang-base.eclass: add eapi 7 support Signed-off-by: William Hubbs <williamh <AT> gentoo.org> eclass/golang-base.eclass | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/eclass/golang-base.eclass b/eclass/golang-base.eclass index c8308d28665..cd36a269bf1 100644 --- a/eclass/golang-base.eclass +++ b/eclass/golang-base.eclass @@ -4,7 +4,7 @@ # @ECLASS: golang-base.eclass # @MAINTAINER: # William Hubbs <[email protected]> -# @SUPPORTED_EAPIS: 5 6 +# @SUPPORTED_EAPIS: 5 6 7 # @BLURB: Eclass that provides base functions for Go packages. # @DESCRIPTION: # This eclass provides base functions for software written in the Go @@ -12,7 +12,7 @@ # dev-lang/go. case "${EAPI:-0}" in - 5|6) + 5|6|7) ;; *) die "${ECLASS}: Unsupported eapi (EAPI=${EAPI})" @@ -23,12 +23,18 @@ if [[ -z ${_GOLANG_BASE} ]]; then _GOLANG_BASE=1 -DEPEND=">=dev-lang/go-1.9" +GO_DEPEND=">=dev-lang/go-1.10" +if [[ ${EAPI:-0} == [56] ]]; then + DEPEND="${GO_DEPEND}" +else + BDEPEND="${GO_DEPEND}" +fi # Do not complain about CFLAGS etc since go projects do not use them. QA_FLAGS_IGNORED='.*' -STRIP_MASK="*.a" +# Upstream does not support stripping go packages +RESTRICT="strip" # @ECLASS-VARIABLE: EGO_PN # @REQUIRED
