diff options
author | Zac Medico <zmedico@gentoo.org> | 2019-09-14 23:04:11 -0700 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2019-09-14 23:40:47 -0700 |
commit | ff47496ab10075a3672b0929d61d792dfed838db (patch) | |
tree | 364d43c1eea7584ec31efc7946103885abe0d7d3 /dev-go/go-tour | |
parent | sys-process/evisum: clean old (diff) | |
download | gentoo-ff47496ab10075a3672b0929d61d792dfed838db.tar.gz gentoo-ff47496ab10075a3672b0929d61d792dfed838db.tar.bz2 gentoo-ff47496ab10075a3672b0929d61d792dfed838db.zip |
dev-go/go-tour: Bump to version 0_p20190829
Package-Manager: Portage-2.3.76, Repoman-2.3.17
Signed-off-by: Zac Medico <zmedico@gentoo.org>
Diffstat (limited to 'dev-go/go-tour')
-rw-r--r-- | dev-go/go-tour/Manifest | 3 | ||||
-rw-r--r-- | dev-go/go-tour/go-tour-0_p20190829.ebuild | 51 |
2 files changed, 54 insertions, 0 deletions
diff --git a/dev-go/go-tour/Manifest b/dev-go/go-tour/Manifest index 643f65b49e1c..c28b8cf7843c 100644 --- a/dev-go/go-tour/Manifest +++ b/dev-go/go-tour/Manifest @@ -1 +1,4 @@ +DIST github.com-golang-net-3b0461eec859c4b73bb64fdc8285971fd33e3938.tar.gz 1099680 BLAKE2B 989a8d6c9166696bef1aff398acc8cd1e41e1240c5c113be030c80355cdf96eaa6d5f231c99f2c44d8eacf199579804c59fc45f999862bc4bf057b694841c8dc SHA512 5e42e26ac17f52d6408b63eebd740bedc5a78b8023b675688d7b39b20afa53b34ffde764b693828143483c8f5450180f6a00e9eb28b8f3f6e14303cc4cd7c62b +DIST github.com-golang-tools-7b79afddac434519a8ca775cc575fddb0d162aab.tar.gz 2682003 BLAKE2B 60d9981b9fcc47077bc0dc1179e518ba2f2373595d5798eb6aa37a832ce72f475b0808b2030919f141cd978533792294fdd8528e1d52b4eeec6e9f1a3b6e772d SHA512 5b7af03d138567edaa70e1b3555b8a9c4822f33c3fb14e8ec435499d21f46d61f44b62fddcec3ecc6f75d4e9a6dfb6b2a7526ddf8785d933941d64e646dc1b9b DIST go-tour-0_p20180810.tar.gz 319048 BLAKE2B 43c4ca53d939cf7590c8e3607e2089974f1b40dc9268ccbf9100e36d258d76a828c5512e662f20d125c07d0a35d48d3004c8f06d6f80a6a1645099d4ca592c57 SHA512 73eb1b7a228d046d572b2c781cdd7b43ef57de982987ab5808cbb2775c34c9805fac3c52fd68edd34ccadec5169ce5d61234eee553daf0b9ef2d2529e2817b44 +DIST go-tour-0_p20190829.tar.gz 321179 BLAKE2B 56fad2c3608aec9653e31a59e8696aa445375de88f17e72a95620b4b375c88b8e45838360c09a1c53184e5a20c1a5ca044f6ad055de3736e675d3faf3fd52a91 SHA512 2701234788810a8fdb932faae666ec89796664e078b3170344b8c219a2247a510df66bff825bdc458ba062bd4b3f5dccd07dbf88a092053b1ea791c2f50248f4 diff --git a/dev-go/go-tour/go-tour-0_p20190829.ebuild b/dev-go/go-tour/go-tour-0_p20190829.ebuild new file mode 100644 index 000000000000..0581e076b790 --- /dev/null +++ b/dev-go/go-tour/go-tour-0_p20190829.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +EGO_PN="golang.org/x/tour" + +EGO_VENDOR=( + "golang.org/x/tools 7b79afddac434519a8ca775cc575fddb0d162aab github.com/golang/tools" + "golang.org/x/net 3b0461eec859c4b73bb64fdc8285971fd33e3938 github.com/golang/net" +) + +EGIT_COMMIT="3c9f1af8b2da3b3661a39ee550190917c0cf5208" +ARCHIVE_URI="https://github.com/golang/tour/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz" +KEYWORDS="~amd64" +inherit golang-vcs-snapshot golang-build + +DESCRIPTION="A Tour of Go" +HOMEPAGE="https://tour.golang.org" +SRC_URI="${ARCHIVE_URI} + ${EGO_VENDOR_URI}" +LICENSE="BSD Apache-2.0 MIT" +SLOT="0" +IUSE="" +S=${WORKDIR}/${P}/src/${EGO_PN} + +src_compile() { + # Create a temporary GOROOT, since otherwise the executable is not + # built if it happens to be installed already. + cp -rs "$(go env GOROOT)" "${T}/goroot" || die + rm -rf "${T}/goroot/"{pkg/tool/$(go env GOOS)_$(go env GOARCH)/tour,src/${EGO_PN}} || die + export -n GOCACHE XDG_CACHE_HOME #567192 + export GOPATH="${WORKDIR}/${P}" \ + GO111MODULE=on \ + GOFLAGS="-mod=vendor -v -x" \ + GOBIN="${WORKDIR}/${P}/bin" + GOROOT=${T}/goroot \ + go install -work ${EGO_BUILD_FLAGS} "${EGO_PN}/..." || die +} + +src_install() { + exeinto "$(go env GOTOOLDIR)" + doexe "${GOBIN}/tour" + + rm -rf vendor || die + insinto "$(go env GOROOT)" + doins -r "${WORKDIR}/${P}/src" +} + +src_test() { + go test -work "${EGO_PN}/..." || die +} |