Gentoo Archives: gentoo-dev

From: William Hubbs <williamh@g.o>
To: gentoo-dev@l.g.o
Cc: William Hubbs <williamh@g.o>
Subject: [gentoo-dev] [PATCH 2/3] app-misc/spire: migrate to go-module.eclass
Date: Wed, 11 Sep 2019 17:27:02
Message-Id: 20190911172128.18885-3-williamh@gentoo.org
In Reply to: [gentoo-dev] [PATCH 0/3] add eclass to handle go modules by William Hubbs
Copyright: Sony Interactive Entertainment Inc.
Package-Manager: Portage-2.3.69, Repoman-2.3.16
Signed-off-by: William Hubbs <williamh@g.o>
---
 app-misc/spire/spire-0.8.1.ebuild | 14 +++-----------
 1 file changed, 3 insertions(+), 11 deletions(-)

diff --git a/app-misc/spire/spire-0.8.1.ebuild b/app-misc/spire/spire-0.8.1.ebuild
index 552104b1bd8..5a72e6e1528 100644
--- a/app-misc/spire/spire-0.8.1.ebuild
+++ b/app-misc/spire/spire-0.8.1.ebuild
@@ -2,12 +2,12 @@
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
-VENDOR_URI="https://dev.gentoo.org/~williamh/dist/${P}-vendor.tar.gz"
+inherit go-module
 
 DESCRIPTION="the spiffe runtime environment"
 HOMEPAGE="https://github.com/spiffe/spire"
 SRC_URI="https://github.com/spiffe/spire/archive/${PV}.tar.gz -> ${P}.tar.gz
-	${VENDOR_URI}"
+	https://dev.gentoo.org/~williamh/dist/${P}-vendor.tar.gz"
 
 LICENSE="Apache-2.0"
 SLOT="0"
@@ -16,17 +16,9 @@ IUSE=""
 
 COMMON_DEPEND="acct-group/spire
 	acct-user/spire"
-DEPEND="${COMMON_DEPEND}
-	dev-lang/go"
+DEPEND="${COMMON_DEPEND}"
 RDEPEND="${COMMON_DEPEND}"
 
-RESTRICT="strip"
-
-src_prepare() {
-	default
-	mv ../vendor . || die "Unable to move ../vendor directory"
-}
-
 do_cmd() {
 	if [[ -z "$@" ]]; then
 		die "No arguments passed to do_cmd"
-- 
2.21.0