summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Seifert <soap@gentoo.org>2023-03-17 23:04:17 +0100
committerDavid Seifert <soap@gentoo.org>2023-03-17 23:04:17 +0100
commit67458a9c3b832811e469c27241a3387ad2f66924 (patch)
tree3f86e7dd2f496e5c90e2742471b6588342b684e4
parentgnome2.eclass: remove EAPI 5 (diff)
downloadgentoo-67458a9c3b832811e469c27241a3387ad2f66924.tar.gz
gentoo-67458a9c3b832811e469c27241a3387ad2f66924.tar.bz2
gentoo-67458a9c3b832811e469c27241a3387ad2f66924.zip
golang-build.eclass: remove EAPI 5
Signed-off-by: David Seifert <soap@gentoo.org>
-rw-r--r--eclass/golang-build.eclass24
1 files changed, 10 insertions, 14 deletions
diff --git a/eclass/golang-build.eclass b/eclass/golang-build.eclass
index f24029a1a9fd..235313bd70f5 100644
--- a/eclass/golang-build.eclass
+++ b/eclass/golang-build.eclass
@@ -1,10 +1,10 @@
-# Copyright 1999-2019 Gentoo Authors
+# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# @ECLASS: golang-build.eclass
# @MAINTAINER:
# William Hubbs <williamh@gentoo.org>
-# @SUPPORTED_EAPIS: 5 6 7
+# @SUPPORTED_EAPIS: 6 7
# @PROVIDES: golang-base
# @BLURB: Eclass for compiling go packages.
# @DEPRECATED: go-module.eclass
@@ -12,21 +12,15 @@
# This eclass provides default src_compile, src_test and src_install
# functions for software written in the Go programming language.
-inherit golang-base
-
-case "${EAPI:-0}" in
- 5|6|7)
- ;;
- *)
- die "${ECLASS}: Unsupported eapi (EAPI=${EAPI})"
- ;;
+case ${EAPI} in
+ 6|7) ;;
+ *) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
esac
-EXPORT_FUNCTIONS src_compile src_install src_test
-
-if [[ -z ${_GOLANG_BUILD} ]]; then
+if [[ -z ${_GOLANG_BUILD_ECLASS} ]]; then
+_GOLANG_BUILD_ECLASS=1
-_GOLANG_BUILD=1
+inherit golang-base
# @ECLASS_VARIABLE: EGO_BUILD_FLAGS
# @DEFAULT_UNSET
@@ -85,3 +79,5 @@ golang-build_src_test() {
}
fi
+
+EXPORT_FUNCTIONS src_compile src_install src_test