From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 5FDD1138350 for ; Sun, 9 Feb 2020 20:32:24 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E6E5EE0870; Sun, 9 Feb 2020 20:31:55 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 8A09DE086B for ; Sun, 9 Feb 2020 20:31:55 +0000 (UTC) Received: from grubbs.orbis-terrarum.net (localhost [127.0.0.1]) (using TLSv1.2 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 648C734E8F3 for ; Sun, 9 Feb 2020 20:31:54 +0000 (UTC) Received: (qmail 10502 invoked by uid 129); 9 Feb 2020 20:31:53 -0000 X-HELO: bohr-int.orbis-terrarum.net Authentication-Results: orbis-terrarum.net; auth=pass (plain) smtp.auth=robbat2-bohr@orbis-terrarum.net; iprev=fail; iprev=fail Received: from node-1w7jr9qta5qnztyeulvvtjk1k.ipv6.telus.net (HELO bohr-int.orbis-terrarum.net) (2001:569:7c26:ae00:4988:d144:fb03:3538) by orbis-terrarum.net (qpsmtpd/0.95) with ESMTPSA (TLS_AES_256_GCM_SHA384 encrypted); Sun, 09 Feb 2020 20:31:53 +0000 Received: (nullmailer pid 4892 invoked by uid 10000); Sun, 09 Feb 2020 20:31:45 -0000 From: "Robin H. Johnson" To: gentoo-dev@lists.gentoo.org Cc: "Robin H. Johnson" Subject: [gentoo-dev] [PATCH 2/3] dev-go/go-tour: convert to go-module go.sum Date: Sun, 9 Feb 2020 12:31:20 -0800 Message-Id: <20200209203121.4646-2-robbat2@gentoo.org> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20200209203121.4646-1-robbat2@gentoo.org> References: <20200209203121.4646-1-robbat2@gentoo.org> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on orbis-terrarum.net X-Archives-Salt: 4d78fdea-e330-480f-bf8d-6dd35faa9f6e X-Archives-Hash: 21f7be46b50b9038e91584c13e732c3d Signed-off-by: Robin H. Johnson --- dev-go/go-tour/Manifest | 12 ++++ dev-go/go-tour/go-tour-0_p20190829-r2.ebuild | 67 ++++++++++++++++++++ 2 files changed, 79 insertions(+) create mode 100644 dev-go/go-tour/go-tour-0_p20190829-r2.ebuild diff --git dev-go/go-tour/Manifest dev-go/go-tour/Manifest index 4790cfab02c5..6f95359859a5 100644 --- dev-go/go-tour/Manifest +++ dev-go/go-tour/Manifest @@ -1,3 +1,15 @@ 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_p20190829.tar.gz 321179 BLAKE2B 56fad2c3608aec9653e31a59e8696aa445375de88f17e72a95620b4b375c88b8e45838360c09a1c53184e5a20c1a5ca044f6ad055de3736e675d3faf3fd52a91 SHA512 2701234788810a8fdb932faae666ec89796664e078b3170344b8c219a2247a510df66bff825bdc458ba062bd4b3f5dccd07dbf88a092053b1ea791c2f50248f4 +DIST golang.org%2Fx%2Fcrypto%2F@v%2Fv0.0.0-20190308221718-c2843e01d9a2.info 171 BLAKE2B 313405907f82b1650040741e41b453e6ac2d2b4cff9fc0f6ca6fce22212ee964765fe534f3062a969f167c46fff427336d84be4dea70ede3434b4f8a6f89834e SHA512 653a6d30eddf1193eea2d158041dc5896927051c87381e5891371bcae8d00adbcc9100b7575d27bd50856a56f66672a70b6e0e7c749f80749fe6f48d260dbbc9 +DIST golang.org%2Fx%2Fcrypto%2F@v%2Fv0.0.0-20190308221718-c2843e01d9a2.mod 88 BLAKE2B aec7d0eea1278eb3d1568d5bfb4041267501ad14457ebfcbdbc5fe21473170b8616ca4028f52af2edbfd85922cbe04540b4b0df7f69f63197698143cc5557a7a SHA512 2df49895053b36fed7ea905aa73f86568fbafd79ff0a7976679d8c77cf15025129435d9dbfd89367b611b1aadbea4f4bd1835eb4efa9ea702466e443638d379e +DIST golang.org%2Fx%2Fnet%2F@v%2Fv0.0.0-20190311183353-d8887717615a.info 78 BLAKE2B 9da0dc973ef2adfc468fcd35d6ab9a3f1b51360004742722c1142e402cc99e868b6839ad09696d5c9304fd979d9dd7c30e14fd31edb0d7ab64efca7eeacaece2 SHA512 eb56e04a7c9db64029a4164b848cc18433f325fee50fafbf425a063b3029a88dc6434bc755b05b86795ca6646e06458fc0818e6c3938f6860df9fb80a1a0b45b +DIST golang.org%2Fx%2Fnet%2F@v%2Fv0.0.0-20190311183353-d8887717615a.mod 119 BLAKE2B e042b2716739483252c3340451b2c3c7b421fdf8d6b3e0333e979802fca66159596982ea63a24b6a64457b2757a0ad24cbb9ea032bab4c5377edf84a3ea18b97 SHA512 26b6c92eecd2208967336d4d23f8a71f77f9a73643ad1e5cd84dee36b2f626fffc806e4dd33acc284831a0961e2b363d898a747903235945fbfb665c5b4d5ef2 +DIST golang.org%2Fx%2Fnet%2F@v%2Fv0.0.0-20190311183353-d8887717615a.zip 1273340 BLAKE2B 7d42472afb905448b6ae6f66258dc805fa7c4b9c8dffb230ad6458b250fe5d564a3f6e2bf97b241ac9293c9f5885f28cc996ab7953a0ba9e97b8731911b982d5 SHA512 57852d3cd066a9eb279f909b464824041e138db1eb98c66ffbbc81259cb3f94da8ecd4d2b961646fbbe0c05156785ab2f44408b19d9f467001627d7b12fed4af +DIST golang.org%2Fx%2Fsys%2F@v%2Fv0.0.0-20190215142949-d0b11bdaac8a.info 78 BLAKE2B fbfc727dc55b0c936d8b3ade389ac99e3b496e898465c40eb26fcf83f91186de86f1934534b94338fe7ad5d849253af4e8446cf7a02f8eb1b90a4d08f6cbb7c8 SHA512 e9aceb0cc8799003bfce72dcae244a0d1872b27bb59488a2622b4d07c44259375d7d5f23378030640b3ead90baa050685773accef97115758482db1c5fc0d39d +DIST golang.org%2Fx%2Fsys%2F@v%2Fv0.0.0-20190215142949-d0b11bdaac8a.mod 24 BLAKE2B 64a70c4594f5d3c37d962c1ed07630fba8abeaf534242f8f1509af271684499252af9a2320d5bac8e44064dba344b807535e4e9dd085fc0fb47bd9304120601a SHA512 ffe50fccf7f1d200f2ebc805b190e3f10c5a3184458a38f4590e520d7ce115e1520fbabe56651bbdc2e08da4a8db5ac86d0e88728efde3ab26c64ab4e0cd604c +DIST golang.org%2Fx%2Ftext%2F@v%2Fv0.3.0.info 50 BLAKE2B 6f0aeb3755c3ee872512cd6baeff9bb953a4889af43dd75d419799bfaab26af4f65ffb11ab47ec6867c90e37b301f71ab03ab16a1bf9fcc460dad2dbda5879f1 SHA512 86e6bddc59a332bf2f670d5728a12ed932053480941a660cde7c109823652269265f7b8ded6bd080b8d4f74985e822c89be1163fbb389870b6b8314955d5b5fd +DIST golang.org%2Fx%2Ftext%2F@v%2Fv0.3.0.mod 25 BLAKE2B 31009af0fdcd0f8730c9985287e6e364ec4e5183e57e92560dbc80a2010eced51b8a90f01a82b49384268c8a0adbf69d179c205d3f68e0eb459169d2ea9528f0 SHA512 ca081ef7cccd7bbedc6843fbe0c452352661a07e1298cd02ff338ed79d807c6401d613a3cf20011189d2f98a794ffa410547b3e352eb58a6f0a84822285d391d +DIST golang.org%2Fx%2Ftools%2F@v%2Fv0.0.0-20190312164927-7b79afddac43.info 171 BLAKE2B f9a42989df72accea8b98ba2c039b49fbfe14c04680b9e4eee9dda4a6e43d95aa5a346c1cb6770fce9ed333f73bf54ef5e6c536bd86c7dd4113feb7e456e5d18 SHA512 86afb7ff3aac1adf3083aaf1ddbe417b6ba6db0e2531ff668c6e1b5c43618890af140474a260b26c8a4208fa8ab245b2d2539f434a2df4141c1c19116bc82359 +DIST golang.org%2Fx%2Ftools%2F@v%2Fv0.0.0-20190312164927-7b79afddac43.mod 87 BLAKE2B 32cb406deea05323b1121386bf61f344f8eda0b5370e95bb73828ce0bea50bee375ae3e9b076b9d683a4d89561709c5e97e45e6b08344fbdf6b03b3ce4398dcd SHA512 18ae9b2f54109b4ec5cdea433ee0e3b7006e4d5ea57022d6e8151d4d364735a6b55cf7b5eb2f43b602ec786b2b6819ad78dfc33151ee1a63a0b1199f54ce34a1 +DIST golang.org%2Fx%2Ftools%2F@v%2Fv0.0.0-20190312164927-7b79afddac43.zip 3200356 BLAKE2B 8ebbd9b772d54bfa39de2319a583c5d80cf6580456a4da5043a5b9a49450c3dcc5eba68ac7726dd7771c0855032294b2ee6a9df738780e87c312935fbc94e5a8 SHA512 5e56ee0659802472d5187c0fe65c6e2b93478cf968b95c2c79db3d458844c38b18a597ad032cfe3a712a5516215d6010f1efcf36db2aa2bb2d29bf337819969d diff --git dev-go/go-tour/go-tour-0_p20190829-r2.ebuild dev-go/go-tour/go-tour-0_p20190829-r2.ebuild new file mode 100644 index 000000000000..6dc9a9adb572 --- /dev/null +++ dev-go/go-tour/go-tour-0_p20190829-r2.ebuild @@ -0,0 +1,67 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +MY_PN=tour +EGO_PN="golang.org/x/${MY_PN}" + +EGO_SUM=( + # Minimal covering set + "golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod" + "golang.org/x/net v0.0.0-20190311183353-d8887717615a" + "golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod" + "golang.org/x/text v0.3.0/go.mod" + "golang.org/x/tools v0.0.0-20190312164927-7b79afddac43" +) + +MY_P=${MY_PN}-${PV} +EGIT_COMMIT="3c9f1af8b2da3b3661a39ee550190917c0cf5208" +ARCHIVE_URI="https://github.com/golang/tour/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz" +SRC_URI="${ARCHIVE_URI}" +KEYWORDS="~amd64" +DESCRIPTION="A Tour of Go" +HOMEPAGE="https://tour.golang.org" +LICENSE="BSD Apache-2.0 MIT" +SLOT="0" +IUSE="" +S=${WORKDIR}/${P}/src/${EGO_PN} +UPSTREAM_S=${WORKDIR}/${MY_PN}-${EGIT_COMMIT} +GO_MODULE_GOSUM_PATH="${S}/go.sum" + +inherit golang-build go-module +go-module_set_globals +SRC_URI+=" ${EGO_SUM_SRC_URI}" + +src_unpack() { + unpack "${P}.tar.gz" + mkdir -p "$(dirname "${S}")" + mv "${UPSTREAM_S}" "${S}" + go-module_src_unpack +} + +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="-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 +} -- 2.25.0