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 |
1 | Copyright: Sony Interactive Entertainment Inc. |
2 | Package-Manager: Portage-2.3.69, Repoman-2.3.16 |
3 | Signed-off-by: William Hubbs <williamh@g.o> |
4 | --- |
5 | app-misc/spire/spire-0.8.1.ebuild | 14 +++----------- |
6 | 1 file changed, 3 insertions(+), 11 deletions(-) |
7 | |
8 | diff --git a/app-misc/spire/spire-0.8.1.ebuild b/app-misc/spire/spire-0.8.1.ebuild |
9 | index 552104b1bd8..5a72e6e1528 100644 |
10 | --- a/app-misc/spire/spire-0.8.1.ebuild |
11 | +++ b/app-misc/spire/spire-0.8.1.ebuild |
12 | @@ -2,12 +2,12 @@ |
13 | # Distributed under the terms of the GNU General Public License v2 |
14 | |
15 | EAPI=7 |
16 | -VENDOR_URI="https://dev.gentoo.org/~williamh/dist/${P}-vendor.tar.gz" |
17 | +inherit go-module |
18 | |
19 | DESCRIPTION="the spiffe runtime environment" |
20 | HOMEPAGE="https://github.com/spiffe/spire" |
21 | SRC_URI="https://github.com/spiffe/spire/archive/${PV}.tar.gz -> ${P}.tar.gz |
22 | - ${VENDOR_URI}" |
23 | + https://dev.gentoo.org/~williamh/dist/${P}-vendor.tar.gz" |
24 | |
25 | LICENSE="Apache-2.0" |
26 | SLOT="0" |
27 | @@ -16,17 +16,9 @@ IUSE="" |
28 | |
29 | COMMON_DEPEND="acct-group/spire |
30 | acct-user/spire" |
31 | -DEPEND="${COMMON_DEPEND} |
32 | - dev-lang/go" |
33 | +DEPEND="${COMMON_DEPEND}" |
34 | RDEPEND="${COMMON_DEPEND}" |
35 | |
36 | -RESTRICT="strip" |
37 | - |
38 | -src_prepare() { |
39 | - default |
40 | - mv ../vendor . || die "Unable to move ../vendor directory" |
41 | -} |
42 | - |
43 | do_cmd() { |
44 | if [[ -z "$@" ]]; then |
45 | die "No arguments passed to do_cmd" |
46 | -- |
47 | 2.21.0 |