Gentoo Archives: gentoo-commits

From: Zac Medico <zmedico@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-go/go-tour/
Date: Thu, 23 Aug 2018 17:51:02
Message-Id: 1535046648.29f16a0a010fc42e6722fb755c4abcb1044743e1.zmedico@gentoo
1 commit: 29f16a0a010fc42e6722fb755c4abcb1044743e1
2 Author: Zac Medico <zmedico <AT> gentoo <DOT> org>
3 AuthorDate: Thu Aug 23 17:44:14 2018 +0000
4 Commit: Zac Medico <zmedico <AT> gentoo <DOT> org>
5 CommitDate: Thu Aug 23 17:50:48 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=29f16a0a
7
8 dev-go/go-tour: DEPEND on go-net (bug 664376)
9
10 Reported-by: Toralf Förster <toralf <AT> gentoo.org>
11 Closes: https://bugs.gentoo.org/664376
12 Package-Manager: Portage-2.3.48, Repoman-2.3.10
13
14 dev-go/go-tour/go-tour-0_p20180810.ebuild | 18 +++++++++++-------
15 1 file changed, 11 insertions(+), 7 deletions(-)
16
17 diff --git a/dev-go/go-tour/go-tour-0_p20180810.ebuild b/dev-go/go-tour/go-tour-0_p20180810.ebuild
18 index b97a2e598af..0266d4dd62b 100644
19 --- a/dev-go/go-tour/go-tour-0_p20180810.ebuild
20 +++ b/dev-go/go-tour/go-tour-0_p20180810.ebuild
21 @@ -15,17 +15,21 @@ SRC_URI="${ARCHIVE_URI}"
22 LICENSE="BSD"
23 SLOT="0"
24 IUSE=""
25 -DEPEND="dev-go/go-tools:="
26 +DEPEND="dev-go/go-net:=
27 + dev-go/go-tools:="
28
29 src_compile() {
30 - GOPATH="${S}:$(get_golibdir_gopath)" GOBIN="${S}/bin" \
31 - go build -v -work -x ${EGO_BUILD_FLAGS} "${EGO_PN}"
32 - [[ -x $(find "${T}" -name a.out) ]] || die "a.out not found"
33 + local x
34 + mkdir -p "${T}/golibdir/src/golang.org/x" || die
35 + for x in net tools; do
36 + ln -s "$(get_golibdir_gopath)/src/golang.org/x/${x}" "${T}/golibdir/src/golang.org/x/${x}" || die
37 + done
38 + GOPATH="${S}:${T}/golibdir" GOBIN="${S}/bin" \
39 + go install -v -work -x ${EGO_BUILD_FLAGS} "${EGO_PN}"
40 + [[ -x bin/gotour ]] || die "gotour not found"
41 }
42
43 src_install() {
44 - GOPATH="${S}:$(get_golibdir_gopath)" GOBIN="${S}/bin" \
45 - go install -v -work -x ${EGO_BUILD_FLAGS} "${EGO_PN}"
46 exeinto "$(go env GOTOOLDIR)"
47 newexe bin/gotour tour
48 insinto "$(go env GOROOT)"
49 @@ -33,6 +37,6 @@ src_install() {
50 }
51
52 src_test() {
53 - GOPATH="${S}:$(get_golibdir_gopath)" GOBIN="${S}/bin" \
54 + GOPATH="${S}:${T}/golibdir" GOBIN="${S}/bin" \
55 go test -v -work -x "${EGO_PN}" || die
56 }