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