Gentoo Archives: gentoo-commits

From: David Seifert <soap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: eclass/
Date: Fri, 17 Mar 2023 22:04:48
Message-Id: 1679090659.2015d090315dbc264dd1f1967d903ed4c99d4a01.soap@gentoo
1 commit: 2015d090315dbc264dd1f1967d903ed4c99d4a01
2 Author: David Seifert <soap <AT> gentoo <DOT> org>
3 AuthorDate: Fri Mar 17 22:04:19 2023 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Fri Mar 17 22:04:19 2023 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2015d090
7
8 golang-vcs.eclass: remove EAPI 5
9
10 Signed-off-by: David Seifert <soap <AT> gentoo.org>
11
12 eclass/golang-vcs.eclass | 24 ++++++++++--------------
13 1 file changed, 10 insertions(+), 14 deletions(-)
14
15 diff --git a/eclass/golang-vcs.eclass b/eclass/golang-vcs.eclass
16 index 595412ea0c88..7eb60e5f2453 100644
17 --- a/eclass/golang-vcs.eclass
18 +++ b/eclass/golang-vcs.eclass
19 @@ -1,10 +1,10 @@
20 -# Copyright 1999-2021 Gentoo Authors
21 +# Copyright 1999-2023 Gentoo Authors
22 # Distributed under the terms of the GNU General Public License v2
23
24 # @ECLASS: golang-vcs.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 fetching and unpacking go repositories.
31 # @DEPRECATED: go-module.eclass
32 @@ -12,21 +12,15 @@
33 # This eclass is written to ease the maintenance of live ebuilds
34 # of software written in the Go programming language.
35
36 -inherit estack eutils 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_unpack
50 -
51 -if [[ -z ${_GOLANG_VCS} ]]; then
52 +if [[ -z ${_GOLANG_VCS_ECLASS} ]]; then
53 +_GOLANG_VCS_ECLASS=1
54
55 -_GOLANG_VCS=1
56 +inherit estack eutils golang-base
57
58 PROPERTIES+=" live"
59
60 @@ -139,3 +133,5 @@ golang-vcs_src_unpack() {
61 }
62
63 fi
64 +
65 +EXPORT_FUNCTIONS src_unpack