Gentoo Archives: gentoo-commits

From: Jason Zaman <perfinion@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/bazel/
Date: Sun, 03 Feb 2019 14:33:14
Message-Id: 1549203760.b496c130a752b078b6b32b9c08a79347c80cf67d.perfinion@gentoo
1 commit: b496c130a752b078b6b32b9c08a79347c80cf67d
2 Author: Jason Zaman <perfinion <AT> gentoo <DOT> org>
3 AuthorDate: Sun Feb 3 14:22:40 2019 +0000
4 Commit: Jason Zaman <perfinion <AT> gentoo <DOT> org>
5 CommitDate: Sun Feb 3 14:22:40 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b496c130
7
8 dev-util/bazel: drop old
9
10 Signed-off-by: Jason Zaman <perfinion <AT> gentoo.org>
11 Package-Manager: Portage-2.3.51, Repoman-2.3.11
12
13 dev-util/bazel/Manifest | 3 -
14 dev-util/bazel/bazel-0.17.2.ebuild | 123 ------------------------------------
15 dev-util/bazel/bazel-0.18.0.ebuild | 121 -----------------------------------
16 dev-util/bazel/bazel-0.19.0.ebuild | 125 -------------------------------------
17 4 files changed, 372 deletions(-)
18
19 diff --git a/dev-util/bazel/Manifest b/dev-util/bazel/Manifest
20 index ebcb6de9e27..a407df48e71 100644
21 --- a/dev-util/bazel/Manifest
22 +++ b/dev-util/bazel/Manifest
23 @@ -1,5 +1,2 @@
24 -DIST bazel-0.17.2-dist.zip 79230155 BLAKE2B 62a60011f9605a1d615e648fdbb98b193561e1d86a7562ccb10fdbb8b6986e17a72c4076dbdbf6baf8a7af83e320af2c4e4b65b5b2101d845597ddd688194ba5 SHA512 0d277e20eac6fc972a31be1c77a750f6585d16beabfe7dd096db4103f0f191958aa83b52203b91d4df5b486ff20004c0b4b22125e58379f64f68abc4a87ac326
25 -DIST bazel-0.18.0-dist.zip 86890953 BLAKE2B 53da2c2d4467f1f7dd2e613a347acd0ea547bd41fe49fa39cbbcb92c337dca43412ac9b65abf7a3e00c322b8fea075cbdef0da5b064bf4e22aaaa4c545c539de SHA512 128e1041ae0d85be26933bb107b406ca4ab177f00eec2ee1d791ec9089c0cb384857b532498276480d1063b82e7a9a809b9f8a0d0715260534c3e3d202d6cf13
26 -DIST bazel-0.19.0-dist.zip 87333329 BLAKE2B a9a0002b6a1dc98d3c753b9e37001f41c0e9b3e8628600d10d7ffb379686a2fef33032b8264e72cb787135be0a5a3c26aa452320b309da10ed8a1f8fe6667046 SHA512 ea67fb4d13487d24a0442084f42ff3c082a107c56a06d882f579064f17c545d6e9b5f0c4d724238c22e9b3bad12c68c60c58b59f82d9e957fe3af222d44bc969
27 DIST bazel-0.20.0-dist.zip 87602213 BLAKE2B 0d10fc89a8bc2bf91a67317d42302b894abbec8c4e9f39dd4fbeae71fcba847d5ae35102e3ef4a26d7dfe2da9e47cec5660dd28e1804c3ad562583e9566b78cb SHA512 1628a99a2c95334b7b190c5cf1b80ad3ce61c827103844f68401ffe5cfa994d5b7edd9e314a2775b6ed5b8da70ad79bee0ef47b9acf409919a613069356623a3
28 DIST bazel-0.22.0-dist.zip 88633015 BLAKE2B 7cb7ef53c9acb4089b92d82679ad82739fd3c1fd3af7147e13b1474353fdf4cba1f58deed6d1880ec85fe5a07940b8df14af2701361d86e638b5c0e6924300c1 SHA512 b93cd21f0f164c118b90efba761a9492eb9894e24f13ff468defd12b86c7e67f16e51060ac2fc4c2f8dbf51b1c833d41b255fdd8107988e5babf093cfc5b3254
29
30 diff --git a/dev-util/bazel/bazel-0.17.2.ebuild b/dev-util/bazel/bazel-0.17.2.ebuild
31 deleted file mode 100644
32 index 79fea4a87e0..00000000000
33 --- a/dev-util/bazel/bazel-0.17.2.ebuild
34 +++ /dev/null
35 @@ -1,123 +0,0 @@
36 -# Copyright 1999-2018 Gentoo Foundation
37 -# Distributed under the terms of the GNU General Public License v2
38 -
39 -EAPI=6
40 -
41 -inherit bash-completion-r1 java-pkg-2 multiprocessing
42 -
43 -DESCRIPTION="Fast and correct automated build system"
44 -HOMEPAGE="http://bazel.io/"
45 -
46 -SRC_URI="https://github.com/bazelbuild/bazel/releases/download/${PV}/${P}-dist.zip"
47 -
48 -LICENSE="Apache-2.0"
49 -SLOT="0"
50 -KEYWORDS="~amd64"
51 -IUSE="examples tools zsh-completion"
52 -# strip corrupts the bazel binary
53 -RESTRICT="strip"
54 -RDEPEND="virtual/jdk:1.8"
55 -DEPEND="${RDEPEND}
56 - app-arch/unzip
57 - app-arch/zip"
58 -
59 -S="${WORKDIR}"
60 -QA_FLAGS_IGNORED="usr/bin/bazel"
61 -
62 -bazel-get-flags() {
63 - local i fs=()
64 - for i in ${CFLAGS}; do
65 - fs+=( "--copt=${i}" "--host_copt=${i}" )
66 - done
67 - for i in ${CXXFLAGS}; do
68 - fs+=( "--cxxopt=${i}" "--host_cxxopt=${i}" )
69 - done
70 - for i in ${CPPFLAGS}; do
71 - fs+=( "--copt=${i}" "--host_copt=${i}" )
72 - fs+=( "--cxxopt=${i}" "--host_cxxopt=${i}" )
73 - done
74 - for i in ${LDFLAGS}; do
75 - fs+=( "--linkopt=${i}" "--host_linkopt=${i}" )
76 - done
77 - echo "${fs[*]}"
78 -}
79 -
80 -pkg_setup() {
81 - echo ${PATH} | grep -q ccache && \
82 - ewarn "${PN} usually fails to compile with ccache, you have been warned"
83 - java-pkg-2_pkg_setup
84 -}
85 -
86 -src_unpack() {
87 - # Only unpack the main distfile
88 - unpack ${P}-dist.zip
89 -}
90 -
91 -src_prepare() {
92 - default
93 -
94 - sed -i 's@//src:bazel@//src:bazel_nojdk@' scripts/BUILD || die
95 -
96 - # F: fopen_wr
97 - # S: deny
98 - # P: /proc/self/setgroups
99 - # A: /proc/self/setgroups
100 - # R: /proc/24939/setgroups
101 - # C: /usr/lib/systemd/systemd
102 - addpredict /proc
103 -
104 - # Use standalone strategy to deactivate the bazel sandbox, since it
105 - # conflicts with FEATURES=sandbox.
106 - cat > "${T}/bazelrc" <<-EOF
107 - build --verbose_failures
108 - build --spawn_strategy=standalone --genrule_strategy=standalone
109 -
110 - build --distdir=${S}/derived/distdir/
111 - build --jobs=$(makeopts_jobs) $(bazel-get-flags)
112 -
113 - test --verbose_failures --verbose_test_summary
114 - test --spawn_strategy=standalone --genrule_strategy=standalone
115 - EOF
116 -
117 - echo "import ${T}/bazelrc" >> "${S}/.bazelrc"
118 -}
119 -
120 -src_compile() {
121 - export EXTRA_BAZEL_ARGS="--jobs=$(makeopts_jobs)"
122 - VERBOSE=yes ./compile.sh || die
123 - output/bazel --bazelrc="${T}/bazelrc" build //scripts:bazel-complete.bash || die
124 - output/bazel shutdown
125 -}
126 -
127 -src_test() {
128 - output/bazel test \
129 - --verbose_failures \
130 - --spawn_strategy=standalone \
131 - --genrule_strategy=standalone \
132 - --verbose_test_summary \
133 - examples/cpp:hello-success_test || die
134 - output/bazel shutdown
135 -}
136 -
137 -src_install() {
138 - dobin output/bazel
139 - newbashcomp bazel-bin/scripts/bazel-complete.bash ${PN}
140 - bashcomp_alias ${PN} ibazel
141 - if use zsh-completion ; then
142 - insinto /usr/share/zsh/site-functions
143 - doins scripts/zsh_completion/_bazel
144 - fi
145 -
146 - if use examples; then
147 - docinto examples
148 - dodoc -r examples/*
149 - docompress -x /usr/share/doc/${PF}/examples
150 - fi
151 - # could really build tools but I don't know which ones
152 - # are actually used
153 - if use tools; then
154 - docinto tools
155 - dodoc -r tools/*
156 - docompress -x /usr/share/doc/${PF}/tools
157 - fi
158 -}
159
160 diff --git a/dev-util/bazel/bazel-0.18.0.ebuild b/dev-util/bazel/bazel-0.18.0.ebuild
161 deleted file mode 100644
162 index c1c992cd2ca..00000000000
163 --- a/dev-util/bazel/bazel-0.18.0.ebuild
164 +++ /dev/null
165 @@ -1,121 +0,0 @@
166 -# Copyright 1999-2018 Gentoo Authors
167 -# Distributed under the terms of the GNU General Public License v2
168 -
169 -EAPI=6
170 -
171 -inherit bash-completion-r1 java-pkg-2 multiprocessing
172 -
173 -DESCRIPTION="Fast and correct automated build system"
174 -HOMEPAGE="http://bazel.io/"
175 -
176 -SRC_URI="https://github.com/bazelbuild/bazel/releases/download/${PV}/${P}-dist.zip"
177 -
178 -LICENSE="Apache-2.0"
179 -SLOT="0"
180 -KEYWORDS="~amd64"
181 -IUSE="examples tools zsh-completion"
182 -# strip corrupts the bazel binary
183 -RESTRICT="strip"
184 -RDEPEND="virtual/jdk:1.8"
185 -DEPEND="${RDEPEND}
186 - app-arch/unzip
187 - app-arch/zip"
188 -
189 -S="${WORKDIR}"
190 -QA_FLAGS_IGNORED="usr/bin/bazel"
191 -
192 -bazel-get-flags() {
193 - local i fs=()
194 - for i in ${CFLAGS}; do
195 - fs+=( "--copt=${i}" "--host_copt=${i}" )
196 - done
197 - for i in ${CXXFLAGS}; do
198 - fs+=( "--cxxopt=${i}" "--host_cxxopt=${i}" )
199 - done
200 - for i in ${CPPFLAGS}; do
201 - fs+=( "--copt=${i}" "--host_copt=${i}" )
202 - fs+=( "--cxxopt=${i}" "--host_cxxopt=${i}" )
203 - done
204 - for i in ${LDFLAGS}; do
205 - fs+=( "--linkopt=${i}" "--host_linkopt=${i}" )
206 - done
207 - echo "${fs[*]}"
208 -}
209 -
210 -pkg_setup() {
211 - echo ${PATH} | grep -q ccache && \
212 - ewarn "${PN} usually fails to compile with ccache, you have been warned"
213 - java-pkg-2_pkg_setup
214 -}
215 -
216 -src_unpack() {
217 - # Only unpack the main distfile
218 - unpack ${P}-dist.zip
219 -}
220 -
221 -src_prepare() {
222 - default
223 -
224 - sed -i 's@//src:bazel@//src:bazel_nojdk@' scripts/BUILD || die
225 -
226 - # F: fopen_wr
227 - # S: deny
228 - # P: /proc/self/setgroups
229 - # A: /proc/self/setgroups
230 - # R: /proc/24939/setgroups
231 - # C: /usr/lib/systemd/systemd
232 - addpredict /proc
233 -
234 - # Use standalone strategy to deactivate the bazel sandbox, since it
235 - # conflicts with FEATURES=sandbox.
236 - cat > "${T}/bazelrc" <<-EOF
237 - build --verbose_failures
238 - build --spawn_strategy=standalone --genrule_strategy=standalone
239 -
240 - build --distdir=${S}/derived/distdir/
241 - build --jobs=$(makeopts_jobs) $(bazel-get-flags)
242 -
243 - test --verbose_failures --verbose_test_summary
244 - test --spawn_strategy=standalone --genrule_strategy=standalone
245 - EOF
246 -}
247 -
248 -src_compile() {
249 - export EXTRA_BAZEL_ARGS="--jobs=$(makeopts_jobs)"
250 - VERBOSE=yes ./compile.sh || die
251 - output/bazel --bazelrc="${T}/bazelrc" build //scripts:bazel-complete.bash || die
252 - output/bazel shutdown
253 -}
254 -
255 -src_test() {
256 - output/bazel test \
257 - --verbose_failures \
258 - --spawn_strategy=standalone \
259 - --genrule_strategy=standalone \
260 - --verbose_test_summary \
261 - examples/cpp:hello-success_test || die
262 - output/bazel shutdown
263 -}
264 -
265 -src_install() {
266 - dobin output/bazel
267 - newbashcomp bazel-bin/scripts/bazel-complete.bash ${PN}
268 - bashcomp_alias ${PN} ibazel
269 - if use zsh-completion ; then
270 - insinto /usr/share/zsh/site-functions
271 - doins scripts/zsh_completion/_bazel
272 - fi
273 -
274 - if use examples; then
275 - docinto examples
276 - dodoc -r examples/*
277 - docompress -x /usr/share/doc/${PF}/examples
278 - fi
279 - # could really build tools but I don't know which ones
280 - # are actually used
281 - if use tools; then
282 - docinto tools
283 - dodoc -r tools/*
284 - docompress -x /usr/share/doc/${PF}/tools
285 - fi
286 -}
287
288 diff --git a/dev-util/bazel/bazel-0.19.0.ebuild b/dev-util/bazel/bazel-0.19.0.ebuild
289 deleted file mode 100644
290 index dda30d67945..00000000000
291 --- a/dev-util/bazel/bazel-0.19.0.ebuild
292 +++ /dev/null
293 @@ -1,125 +0,0 @@
294 -# Copyright 1999-2018 Gentoo Authors
295 -# Distributed under the terms of the GNU General Public License v2
296 -
297 -EAPI=6
298 -
299 -inherit bash-completion-r1 java-pkg-2 multiprocessing
300 -
301 -DESCRIPTION="Fast and correct automated build system"
302 -HOMEPAGE="http://bazel.io/"
303 -
304 -SRC_URI="https://github.com/bazelbuild/bazel/releases/download/${PV}/${P}-dist.zip"
305 -
306 -LICENSE="Apache-2.0"
307 -SLOT="0"
308 -KEYWORDS="~amd64"
309 -IUSE="examples tools"
310 -# strip corrupts the bazel binary
311 -RESTRICT="strip"
312 -RDEPEND="virtual/jdk:1.8"
313 -DEPEND="${RDEPEND}
314 - app-arch/unzip"
315 -
316 -S="${WORKDIR}"
317 -QA_FLAGS_IGNORED="usr/bin/bazel"
318 -
319 -bazel-get-flags() {
320 - local i fs=()
321 - for i in ${CFLAGS}; do
322 - fs+=( "--copt=${i}" "--host_copt=${i}" )
323 - done
324 - for i in ${CXXFLAGS}; do
325 - fs+=( "--cxxopt=${i}" "--host_cxxopt=${i}" )
326 - done
327 - for i in ${CPPFLAGS}; do
328 - fs+=( "--copt=${i}" "--host_copt=${i}" )
329 - fs+=( "--cxxopt=${i}" "--host_cxxopt=${i}" )
330 - done
331 - for i in ${LDFLAGS}; do
332 - fs+=( "--linkopt=${i}" "--host_linkopt=${i}" )
333 - done
334 - echo "${fs[*]}"
335 -}
336 -
337 -pkg_setup() {
338 - echo ${PATH} | grep -q ccache && \
339 - ewarn "${PN} usually fails to compile with ccache, you have been warned"
340 - java-pkg-2_pkg_setup
341 -}
342 -
343 -src_unpack() {
344 - # Only unpack the main distfile
345 - unpack ${P}-dist.zip
346 -}
347 -
348 -src_prepare() {
349 - default
350 -
351 - sed -i 's@//src:bazel@//src:bazel_nojdk@' scripts/BUILD || die
352 -
353 - # F: fopen_wr
354 - # S: deny
355 - # P: /proc/self/setgroups
356 - # A: /proc/self/setgroups
357 - # R: /proc/24939/setgroups
358 - # C: /usr/lib/systemd/systemd
359 - addpredict /proc
360 -
361 - # Use standalone strategy to deactivate the bazel sandbox, since it
362 - # conflicts with FEATURES=sandbox.
363 - cat > "${T}/bazelrc" <<-EOF
364 - build --verbose_failures
365 - build --spawn_strategy=standalone --genrule_strategy=standalone
366 -
367 - build --distdir=${S}/derived/distdir/
368 - build --jobs=$(makeopts_jobs) $(bazel-get-flags)
369 -
370 - test --verbose_failures --verbose_test_summary
371 - test --spawn_strategy=standalone --genrule_strategy=standalone
372 - EOF
373 -}
374 -
375 -src_compile() {
376 - export EXTRA_BAZEL_ARGS="--jobs=$(makeopts_jobs)"
377 - VERBOSE=yes ./compile.sh || die
378 -
379 - local OPTS=""
380 - if [[ $(java-config -g PROVIDES_VERSION) == "1.8" ]]; then
381 - OPTS="--java_toolchain=@bazel_tools//tools/jdk:toolchain_hostjdk8"
382 - OPTS+=" --host_java_toolchain=@bazel_tools//tools/jdk:toolchain_hostjdk8"
383 - fi
384 -
385 - output/bazel --bazelrc="${T}/bazelrc" build ${OPTS} //scripts:bazel-complete.bash || die
386 - output/bazel shutdown
387 -}
388 -
389 -src_test() {
390 - output/bazel test \
391 - --verbose_failures \
392 - --spawn_strategy=standalone \
393 - --genrule_strategy=standalone \
394 - --verbose_test_summary \
395 - examples/cpp:hello-success_test || die
396 - output/bazel shutdown
397 -}
398 -
399 -src_install() {
400 - dobin output/bazel
401 - newbashcomp bazel-bin/scripts/bazel-complete.bash ${PN}
402 - bashcomp_alias ${PN} ibazel
403 - insinto /usr/share/zsh/site-functions
404 - doins scripts/zsh_completion/_bazel
405 -
406 - if use examples; then
407 - docinto examples
408 - dodoc -r examples/*
409 - docompress -x /usr/share/doc/${PF}/examples
410 - fi
411 - # could really build tools but I don't know which ones
412 - # are actually used
413 - if use tools; then
414 - docinto tools
415 - dodoc -r tools/*
416 - docompress -x /usr/share/doc/${PF}/tools
417 - fi
418 -}