Gentoo Archives: gentoo-commits

From: William Hubbs <williamh@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-lang/go/
Date: Sun, 04 Oct 2020 15:43:50
Message-Id: 1601826196.10ec272299207a881462c3b4e5175c2bfe7b6a1e.williamh@gentoo
1 commit: 10ec272299207a881462c3b4e5175c2bfe7b6a1e
2 Author: William Hubbs <williamh <AT> gentoo <DOT> org>
3 AuthorDate: Sun Oct 4 15:42:59 2020 +0000
4 Commit: William Hubbs <williamh <AT> gentoo <DOT> org>
5 CommitDate: Sun Oct 4 15:43:16 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=10ec2722
7
8 dev-lang/go: remove unstable 1.14.8
9
10 Signed-off-by: William Hubbs <williamh <AT> gentoo.org>
11
12 dev-lang/go/Manifest | 1 -
13 dev-lang/go/go-1.14.8.ebuild | 188 -------------------------------------------
14 2 files changed, 189 deletions(-)
15
16 diff --git a/dev-lang/go/Manifest b/dev-lang/go/Manifest
17 index e4f00ccc9e6..c8eacb2751c 100644
18 --- a/dev-lang/go/Manifest
19 +++ b/dev-lang/go/Manifest
20 @@ -1,4 +1,3 @@
21 DIST go1.14.7.src.tar.gz 22534747 BLAKE2B ab43abeec9d636dd88eaa10dc210f5d11d487df35238a00548e1f56a86bdf2375e7c180ee6e1cea53591528714fa70333e3336db61eacfdeb5f51b2d5ea86a45 SHA512 3f1133c66d7795ceb6c5793db90616613244d7561abaef6b059602992c0b7a53b6b6ebbcf69add4769a58542e9dc55871bcfe3d64d4cd9f3569bd435ade86dee
22 -DIST go1.14.8.src.tar.gz 22535549 BLAKE2B b7630dd95b8252150937f49a164af4c8a1b9f186db9f8ec9f5e2589762a96c5c22aa8fc3a9f697cb2b884844962cea41ea789283e07f3b7b3be3343af1056573 SHA512 c7f2826d9f674591b183f209e8854875273a6ac846f93ae1da841a0c80943d9b8fa04cdad389a339bbdf583913ab71646dff15afa9b4ad8be47e12041fe71c45
23 DIST go1.14.9.src.tar.gz 22540282 BLAKE2B 84f52ce4200c4f31aacb08b270a9e13e4753a9dc21aa2e6566cca95ea21f2d4bded9303bb7dbcd93c1ea8bb81100692f19b7129313278a821159e7a4c7a2f7f0 SHA512 318ca9dc4c55ea3a942aad0b8ede4d66a6fea9571ece56922cc8f4f167c4bfc77182cb4ef72be6d34a70e396e1549baf92a505fde785f4aff6b4c1318e86a526
24 DIST go1.15.2.src.tar.gz 23012667 BLAKE2B 776531cb4ff1a4023739b4f37828a098b5ea9df1f6b08940119fb39bb6edf08ae40ba9b513e340bbfbec8075778d31df3825816f6680d88fdb53cde2c235d9b8 SHA512 c8b69556ddbbae4790c923547d90259c2208490ed26e75b6318dcc19893f50788e17207140deed1fe9d1e214b9a8f3769242fb7dfd06ebac37ba2c67f0281a73
25
26 diff --git a/dev-lang/go/go-1.14.8.ebuild b/dev-lang/go/go-1.14.8.ebuild
27 deleted file mode 100644
28 index fa07749bdeb..00000000000
29 --- a/dev-lang/go/go-1.14.8.ebuild
30 +++ /dev/null
31 @@ -1,188 +0,0 @@
32 -# Copyright 1999-2020 Gentoo Authors
33 -# Distributed under the terms of the GNU General Public License v2
34 -
35 -EAPI=7
36 -
37 -export CBUILD=${CBUILD:-${CHOST}}
38 -export CTARGET=${CTARGET:-${CHOST}}
39 -
40 -MY_PV=${PV/_/}
41 -
42 -inherit toolchain-funcs
43 -
44 -case ${PV} in
45 -*9999*)
46 - EGIT_REPO_URI="https://github.com/golang/go.git"
47 - inherit git-r3
48 - ;;
49 -*)
50 - SRC_URI="https://storage.googleapis.com/golang/go${MY_PV}.src.tar.gz "
51 - S="${WORKDIR}"/go
52 - case ${PV} in
53 - *_beta*|*_rc*) ;;
54 - *)
55 - KEYWORDS="-* ~amd64 ~arm ~arm64 ~ppc64 ~s390 ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x64-solaris"
56 - ;;
57 - esac
58 -esac
59 -
60 -DESCRIPTION="A concurrent garbage collected and typesafe programming language"
61 -HOMEPAGE="https://golang.org"
62 -
63 -LICENSE="BSD"
64 -SLOT="0/${PV}"
65 -
66 -BDEPEND="|| (
67 - dev-lang/go
68 - dev-lang/go-bootstrap )"
69 -RDEPEND="!<dev-go/go-tools-0_pre20150902"
70 -
71 -# Do not complain about CFLAGS, etc, since Go doesn't use them.
72 -QA_FLAGS_IGNORED='.*'
73 -
74 -# The tools in /usr/lib/go should not cause the multilib-strict check to fail.
75 -QA_MULTILIB_PATHS="usr/lib/go/pkg/tool/.*/.*"
76 -
77 -# Do not strip this package. Stripping is unsupported upstream and may
78 -# fail.
79 -RESTRICT+=" strip"
80 -
81 -DOCS=(
82 -AUTHORS
83 -CONTRIBUTING.md
84 -CONTRIBUTORS
85 -PATENTS
86 -README.md
87 -)
88 -
89 -go_arch()
90 -{
91 - # By chance most portage arch names match Go
92 - local portage_arch=$(tc-arch $@)
93 - case "${portage_arch}" in
94 - x86) echo 386;;
95 - x64-*) echo amd64;;
96 - ppc64) [[ $(tc-endian $@) = big ]] && echo ppc64 || echo ppc64le ;;
97 - s390) echo s390x ;;
98 - *) echo "${portage_arch}";;
99 - esac
100 -}
101 -
102 -go_arm()
103 -{
104 - case "${1:-${CHOST}}" in
105 - armv5*) echo 5;;
106 - armv6*) echo 6;;
107 - armv7*) echo 7;;
108 - *)
109 - die "unknown GOARM for ${1:-${CHOST}}"
110 - ;;
111 - esac
112 -}
113 -
114 -go_os()
115 -{
116 - case "${1:-${CHOST}}" in
117 - *-linux*) echo linux;;
118 - *-darwin*) echo darwin;;
119 - *-freebsd*) echo freebsd;;
120 - *-netbsd*) echo netbsd;;
121 - *-openbsd*) echo openbsd;;
122 - *-solaris*) echo solaris;;
123 - *-cygwin*|*-interix*|*-winnt*)
124 - echo windows
125 - ;;
126 - *)
127 - die "unknown GOOS for ${1:-${CHOST}}"
128 - ;;
129 - esac
130 -}
131 -
132 -go_tuple()
133 -{
134 - echo "$(go_os $@)_$(go_arch $@)"
135 -}
136 -
137 -go_cross_compile()
138 -{
139 - [[ $(go_tuple ${CBUILD}) != $(go_tuple) ]]
140 -}
141 -
142 -src_compile()
143 -{
144 - if has_version -b dev-lang/go; then
145 - export GOROOT_BOOTSTRAP="${BROOT}/usr/lib/go"
146 - elif has_version -b dev-lang/go-bootstrap; then
147 - export GOROOT_BOOTSTRAP="${BROOT}/usr/lib/go-bootstrap"
148 - else
149 - eerror "Go cannot be built without go or go-bootstrap installed"
150 - die "Should not be here, please report a bug"
151 - fi
152 -
153 - export GOROOT_FINAL="${EPREFIX}"/usr/lib/go
154 - export GOROOT="$(pwd)"
155 - export GOBIN="${GOROOT}/bin"
156 -
157 - # Go's build script does not use BUILD/HOST/TARGET consistently. :(
158 - export GOHOSTARCH=$(go_arch ${CBUILD})
159 - export GOHOSTOS=$(go_os ${CBUILD})
160 - export CC=$(tc-getBUILD_CC)
161 -
162 - export GOARCH=$(go_arch)
163 - export GOOS=$(go_os)
164 - export CC_FOR_TARGET=$(tc-getCC)
165 - export CXX_FOR_TARGET=$(tc-getCXX)
166 - if [[ ${ARCH} == arm ]]; then
167 - export GOARM=$(go_arm)
168 - fi
169 -
170 - cd src
171 - bash -x ./make.bash || die "build failed"
172 -}
173 -
174 -src_test()
175 -{
176 - go_cross_compile && return 0
177 -
178 - cd src
179 - PATH="${GOBIN}:${PATH}" \
180 - ./run.bash -no-rebuild || die "tests failed"
181 - cd ..
182 - rm -fr pkg/*_race || die
183 - rm -fr pkg/obj/go-build || die
184 -}
185 -
186 -src_install()
187 -{
188 - local bin_path f x
189 -
190 - dodir /usr/lib/go
191 -
192 - # There is a known issue which requires the source tree to be installed [1].
193 - # Once this is fixed, we can consider using the doc use flag to control
194 - # installing the doc and src directories.
195 - # [1] https://golang.org/issue/2775
196 - #
197 - # deliberately use cp to retain permissions
198 - cp -R api bin doc lib pkg misc src test "${ED}"/usr/lib/go
199 - # testdata directories are not needed on the installed system
200 - rm -fr $(find "${ED}"/usr/lib/go -iname testdata -type d -print)
201 - if go_cross_compile; then
202 - bin_path="bin/$(go_tuple)"
203 - else
204 - bin_path=bin
205 - fi
206 - for x in ${bin_path}/*; do
207 - f=${x##*/}
208 - dosym ../lib/go/${bin_path}/${f} /usr/bin/${f}
209 - done
210 - einstalldocs
211 -
212 - if [[ ${CHOST} == *-darwin* ]] ; then
213 - # fix install_name for test object (binutils_test) on Darwin, it
214 - # is never used in real circumstances
215 - local libmac64="${EPREFIX}"/usr/lib/go/src/cmd/vendor/github.com/
216 - libmac64+=google/pprof/internal/binutils/testdata/lib_mac_64
217 - install_name_tool -id "${libmac64}" "${D}${libmac64}"
218 - fi
219 -}