1 |
commit: e49cc9f7451bea442690b23bb187af3b382efdf3 |
2 |
Author: Zac Medico <zmedico <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Aug 20 01:31:46 2018 +0000 |
4 |
Commit: Zac Medico <zmedico <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Aug 20 01:46:42 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e49cc9f7 |
7 |
|
8 |
dev-go/go-tour: version bump to 0_p20180810 |
9 |
|
10 |
Package-Manager: Portage-2.3.47, Repoman-2.3.10 |
11 |
|
12 |
dev-go/go-tour/Manifest | 1 + |
13 |
dev-go/go-tour/go-tour-0_p20180810.ebuild | 38 +++++++++++++++++++++++++++++++ |
14 |
2 files changed, 39 insertions(+) |
15 |
|
16 |
diff --git a/dev-go/go-tour/Manifest b/dev-go/go-tour/Manifest |
17 |
index 37588d9ffd1..59c520eda64 100644 |
18 |
--- a/dev-go/go-tour/Manifest |
19 |
+++ b/dev-go/go-tour/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST go-tour-0_p20160209.tar.gz 275272 BLAKE2B c3d98bf839fc62a43eb7b994a798ab977c19756160930f7ecda39543e8bf4f793ec1eb4f2e3fb202e2bd9b1d8738eed02b40510047fcfe5274ae3c99410dde0a SHA512 bc9131e6173f72ea01c3062454a47a90301ad01bc1ea356ef09b81ad2d887759671ee9700f2c6b47821fc02c49297b8797d732ae0e9b414205e483d30579d2e9 |
22 |
+DIST go-tour-0_p20180810.tar.gz 319048 BLAKE2B 43c4ca53d939cf7590c8e3607e2089974f1b40dc9268ccbf9100e36d258d76a828c5512e662f20d125c07d0a35d48d3004c8f06d6f80a6a1645099d4ca592c57 SHA512 73eb1b7a228d046d572b2c781cdd7b43ef57de982987ab5808cbb2775c34c9805fac3c52fd68edd34ccadec5169ce5d61234eee553daf0b9ef2d2529e2817b44 |
23 |
|
24 |
diff --git a/dev-go/go-tour/go-tour-0_p20180810.ebuild b/dev-go/go-tour/go-tour-0_p20180810.ebuild |
25 |
new file mode 100644 |
26 |
index 00000000000..b97a2e598af |
27 |
--- /dev/null |
28 |
+++ b/dev-go/go-tour/go-tour-0_p20180810.ebuild |
29 |
@@ -0,0 +1,38 @@ |
30 |
+# Copyright 1999-2018 Gentoo Foundation |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=6 |
34 |
+EGO_PN="golang.org/x/tour/..." |
35 |
+ |
36 |
+EGIT_COMMIT="d642b9371986f5bb2152547a0d525a57f634c3ef" |
37 |
+ARCHIVE_URI="https://github.com/golang/tour/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz" |
38 |
+KEYWORDS="~amd64" |
39 |
+inherit golang-vcs-snapshot golang-build |
40 |
+ |
41 |
+DESCRIPTION="A Tour of Go" |
42 |
+HOMEPAGE="https://tour.golang.org" |
43 |
+SRC_URI="${ARCHIVE_URI}" |
44 |
+LICENSE="BSD" |
45 |
+SLOT="0" |
46 |
+IUSE="" |
47 |
+DEPEND="dev-go/go-tools:=" |
48 |
+ |
49 |
+src_compile() { |
50 |
+ GOPATH="${S}:$(get_golibdir_gopath)" GOBIN="${S}/bin" \ |
51 |
+ go build -v -work -x ${EGO_BUILD_FLAGS} "${EGO_PN}" |
52 |
+ [[ -x $(find "${T}" -name a.out) ]] || die "a.out not found" |
53 |
+} |
54 |
+ |
55 |
+src_install() { |
56 |
+ GOPATH="${S}:$(get_golibdir_gopath)" GOBIN="${S}/bin" \ |
57 |
+ go install -v -work -x ${EGO_BUILD_FLAGS} "${EGO_PN}" |
58 |
+ exeinto "$(go env GOTOOLDIR)" |
59 |
+ newexe bin/gotour tour |
60 |
+ insinto "$(go env GOROOT)" |
61 |
+ doins -r src |
62 |
+} |
63 |
+ |
64 |
+src_test() { |
65 |
+ GOPATH="${S}:$(get_golibdir_gopath)" GOBIN="${S}/bin" \ |
66 |
+ go test -v -work -x "${EGO_PN}" || die |
67 |
+} |