1 |
commit: 67458a9c3b832811e469c27241a3387ad2f66924 |
2 |
Author: David Seifert <soap <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Mar 17 22:04:17 2023 +0000 |
4 |
Commit: David Seifert <soap <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Mar 17 22:04:17 2023 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=67458a9c |
7 |
|
8 |
golang-build.eclass: remove EAPI 5 |
9 |
|
10 |
Signed-off-by: David Seifert <soap <AT> gentoo.org> |
11 |
|
12 |
eclass/golang-build.eclass | 24 ++++++++++-------------- |
13 |
1 file changed, 10 insertions(+), 14 deletions(-) |
14 |
|
15 |
diff --git a/eclass/golang-build.eclass b/eclass/golang-build.eclass |
16 |
index f24029a1a9fd..235313bd70f5 100644 |
17 |
--- a/eclass/golang-build.eclass |
18 |
+++ b/eclass/golang-build.eclass |
19 |
@@ -1,10 +1,10 @@ |
20 |
-# Copyright 1999-2019 Gentoo Authors |
21 |
+# Copyright 1999-2023 Gentoo Authors |
22 |
# Distributed under the terms of the GNU General Public License v2 |
23 |
|
24 |
# @ECLASS: golang-build.eclass |
25 |
# @MAINTAINER: |
26 |
# William Hubbs <williamh@g.o> |
27 |
-# @SUPPORTED_EAPIS: 5 6 7 |
28 |
+# @SUPPORTED_EAPIS: 6 7 |
29 |
# @PROVIDES: golang-base |
30 |
# @BLURB: Eclass for compiling go packages. |
31 |
# @DEPRECATED: go-module.eclass |
32 |
@@ -12,21 +12,15 @@ |
33 |
# This eclass provides default src_compile, src_test and src_install |
34 |
# functions for software written in the Go programming language. |
35 |
|
36 |
-inherit golang-base |
37 |
- |
38 |
-case "${EAPI:-0}" in |
39 |
- 5|6|7) |
40 |
- ;; |
41 |
- *) |
42 |
- die "${ECLASS}: Unsupported eapi (EAPI=${EAPI})" |
43 |
- ;; |
44 |
+case ${EAPI} in |
45 |
+ 6|7) ;; |
46 |
+ *) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;; |
47 |
esac |
48 |
|
49 |
-EXPORT_FUNCTIONS src_compile src_install src_test |
50 |
- |
51 |
-if [[ -z ${_GOLANG_BUILD} ]]; then |
52 |
+if [[ -z ${_GOLANG_BUILD_ECLASS} ]]; then |
53 |
+_GOLANG_BUILD_ECLASS=1 |
54 |
|
55 |
-_GOLANG_BUILD=1 |
56 |
+inherit golang-base |
57 |
|
58 |
# @ECLASS_VARIABLE: EGO_BUILD_FLAGS |
59 |
# @DEFAULT_UNSET |
60 |
@@ -85,3 +79,5 @@ golang-build_src_test() { |
61 |
} |
62 |
|
63 |
fi |
64 |
+ |
65 |
+EXPORT_FUNCTIONS src_compile src_install src_test |