1 |
--- |
2 |
eclass/golang-base.eclass | 14 ++++++++++---- |
3 |
1 file changed, 10 insertions(+), 4 deletions(-) |
4 |
|
5 |
diff --git a/eclass/golang-base.eclass b/eclass/golang-base.eclass |
6 |
index c8308d28665..cd36a269bf1 100644 |
7 |
--- a/eclass/golang-base.eclass |
8 |
+++ b/eclass/golang-base.eclass |
9 |
@@ -4,7 +4,7 @@ |
10 |
# @ECLASS: golang-base.eclass |
11 |
# @MAINTAINER: |
12 |
# William Hubbs <williamh@g.o> |
13 |
-# @SUPPORTED_EAPIS: 5 6 |
14 |
+# @SUPPORTED_EAPIS: 5 6 7 |
15 |
# @BLURB: Eclass that provides base functions for Go packages. |
16 |
# @DESCRIPTION: |
17 |
# This eclass provides base functions for software written in the Go |
18 |
@@ -12,7 +12,7 @@ |
19 |
# dev-lang/go. |
20 |
|
21 |
case "${EAPI:-0}" in |
22 |
- 5|6) |
23 |
+ 5|6|7) |
24 |
;; |
25 |
*) |
26 |
die "${ECLASS}: Unsupported eapi (EAPI=${EAPI})" |
27 |
@@ -23,12 +23,18 @@ if [[ -z ${_GOLANG_BASE} ]]; then |
28 |
|
29 |
_GOLANG_BASE=1 |
30 |
|
31 |
-DEPEND=">=dev-lang/go-1.9" |
32 |
+GO_DEPEND=">=dev-lang/go-1.10" |
33 |
+if [[ ${EAPI:-0} == [56] ]]; then |
34 |
+ DEPEND="${GO_DEPEND}" |
35 |
+else |
36 |
+ BDEPEND="${GO_DEPEND}" |
37 |
+fi |
38 |
|
39 |
# Do not complain about CFLAGS etc since go projects do not use them. |
40 |
QA_FLAGS_IGNORED='.*' |
41 |
|
42 |
-STRIP_MASK="*.a" |
43 |
+# Upstream does not support stripping go packages |
44 |
+RESTRICT="strip" |
45 |
|
46 |
# @ECLASS-VARIABLE: EGO_PN |
47 |
# @REQUIRED |
48 |
-- |
49 |
2.19.2 |