eclass/golang-base: Sync with gentoo

It's from gentoo commit 7f8297d319da8a7fe6680217ad8362b46ac1c95a.
This commit is contained in:
Krzesimir Nowak 2022-03-02 18:27:32 +01:00
parent 37365a383c
commit 71e54186fd

View File

@ -1,10 +1,11 @@
# Copyright 1999-2018 Gentoo Foundation
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# @ECLASS: golang-base.eclass
# @MAINTAINER:
# William Hubbs <williamh@gentoo.org>
# @SUPPORTED_EAPIS: 5 6 7
# @DEPRECATED: go-module.eclass
# @BLURB: Eclass that provides base functions for Go packages.
# @DESCRIPTION:
# This eclass provides base functions for software written in the Go
@ -15,7 +16,7 @@ case "${EAPI:-0}" in
5|6|7)
;;
*)
die "${ECLASS}: Unsupported eapi (EAPI=${EAPI})"
die "${ECLASS}: Unsupported EAPI (EAPI=${EAPI})"
;;
esac
@ -36,6 +37,9 @@ QA_FLAGS_IGNORED='.*'
# Upstream does not support stripping go packages
RESTRICT="strip"
# force GO111MODULE to be auto for bug https://bugs.gentoo.org/771129
export GO111MODULE=auto
# @ECLASS-VARIABLE: EGO_PN
# @REQUIRED
# @DESCRIPTION: