1 |
commit: 62d1e8afa66db6675fb94d53e5dcceabe1709b24 |
2 |
Author: Zac Medico <zmedico <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Oct 25 06:37:18 2017 +0000 |
4 |
Commit: Zac Medico <zmedico <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Oct 25 06:38:52 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=62d1e8af |
7 |
|
8 |
dev-util/bazel: version bump to 0.7.0 |
9 |
|
10 |
Bug: https://bugs.gentoo.org/627254 |
11 |
Package-Manager: Portage-2.3.12, Repoman-2.3.3 |
12 |
|
13 |
dev-util/bazel/Manifest | 1 + |
14 |
dev-util/bazel/bazel-0.7.0.ebuild | 77 +++++++++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 78 insertions(+) |
16 |
|
17 |
diff --git a/dev-util/bazel/Manifest b/dev-util/bazel/Manifest |
18 |
index 328bc2a447e..a530585bde6 100644 |
19 |
--- a/dev-util/bazel/Manifest |
20 |
+++ b/dev-util/bazel/Manifest |
21 |
@@ -1,3 +1,4 @@ |
22 |
DIST bazel-0.4.5-dist.zip 101505017 SHA256 2b737be42678900470ae9e48c975ac5b2296d9ae23c007bf118350dbe7c0552b SHA512 bc70e379a9f6f962440d05d4a706959461690e28a943833e17d6e2b7e3cd7dd2344f329f72d833ec5104334a71764fde195e50b09a582ae7c1b89bd62822943b WHIRLPOOL d236eb387373f4b1cba32084a8b282f2bc75e6a0a714f18229cf5064230ad912bd879df2e7ebcc30da18538958ded4a1b8e59c27c0716aa6b677690b10a0356e |
23 |
DIST bazel-0.5.2-dist.zip 100003640 SHA256 2418c619bdd44257a170b85b9d2ecb75def29e751b725e27186468ada2e009ea SHA512 2580b41a09d8e7766bf06ed55bca06f542a13fecf050b105829811d8a95e8f9a4395ebc8d3ce6436ecec8faab704afd608d71e2d368e51c668df3f766ca6e9c1 WHIRLPOOL 8ea9522bbd38ec5d9de4eebae0586c71ab2cf2f782430e0e0bd5fc84c8d431df7f758627ad9f0aeb57445c1c3d4b3de34702e2e2a6a73aea246519543d8ff118 |
24 |
DIST bazel-0.5.4-dist.zip 100430507 SHA256 2157b05309614d6af0e4bbc6065987aede590822634a0522161f3af5d647abc9 SHA512 f13c003d1d27213e5a723878f488f02a77f1549b6c377db007d412e3db558ab1dfc4e7434c0a7634959d7f5447e71200bda7f99c16fe70661ea81e610c8089f5 WHIRLPOOL 667d78e2cba875cbe31bb49869881ebc45de9f03eb7a503458ba7a5821ca2cead2489a562a2928f5b701b85f6c9cb652dc5201ecc2804d6b57d9d61c25517b82 |
25 |
+DIST bazel-0.7.0-dist.zip 84669893 SHA256 a084a9c5d843e2343bf3f319154a48abe3d35d52feb0ad45dec427a1c4ffc416 SHA512 039ab6a04fd4422bd14503187e6cc0d07301723b3ecae906606fa12ccea72190d82237899c103c1adfdf05dc8672887790780ddfb4cce87cd590adbde3d3f6d4 WHIRLPOOL 36bf995886187c0ad237163c4bf114262e491b46ed2961183e930589cf6709f248b095fe6a5c650b35e294c4f2a0a4dcbfa7297da76df0a3af69a751b1d94855 |
26 |
|
27 |
diff --git a/dev-util/bazel/bazel-0.7.0.ebuild b/dev-util/bazel/bazel-0.7.0.ebuild |
28 |
new file mode 100644 |
29 |
index 00000000000..4684dc2d3b4 |
30 |
--- /dev/null |
31 |
+++ b/dev-util/bazel/bazel-0.7.0.ebuild |
32 |
@@ -0,0 +1,77 @@ |
33 |
+# Copyright 1999-2017 Gentoo Foundation |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI=6 |
37 |
+ |
38 |
+inherit bash-completion-r1 java-pkg-2 |
39 |
+ |
40 |
+DESCRIPTION="Fast and correct automated build system" |
41 |
+HOMEPAGE="http://bazel.io/" |
42 |
+SRC_URI="https://github.com/bazelbuild/bazel/releases/download/${PV}/${P}-dist.zip" |
43 |
+ |
44 |
+LICENSE="Apache-2.0" |
45 |
+SLOT="0" |
46 |
+KEYWORDS="~amd64" |
47 |
+IUSE="examples tools zsh-completion" |
48 |
+# strip corrupts the bazel binary |
49 |
+RESTRICT="strip" |
50 |
+RDEPEND="virtual/jdk:1.8" |
51 |
+DEPEND="${RDEPEND} |
52 |
+ app-arch/unzip |
53 |
+ app-arch/zip" |
54 |
+ |
55 |
+S="${WORKDIR}" |
56 |
+ |
57 |
+pkg_setup() { |
58 |
+ echo ${PATH} | grep -q ccache && \ |
59 |
+ ewarn "${PN} usually fails to compile with ccache, you have been warned" |
60 |
+ java-pkg-2_pkg_setup |
61 |
+} |
62 |
+ |
63 |
+src_compile() { |
64 |
+ # F: fopen_wr |
65 |
+ # S: deny |
66 |
+ # P: /proc/self/setgroups |
67 |
+ # A: /proc/self/setgroups |
68 |
+ # R: /proc/24939/setgroups |
69 |
+ # C: /usr/lib/systemd/systemd |
70 |
+ addpredict /proc |
71 |
+ VERBOSE=yes ./compile.sh || die |
72 |
+ # Use standalone strategy to deactivate the bazel sandbox, since it |
73 |
+ # conflicts with FEATURES=sandbox. |
74 |
+ echo "build --verbose_failures --spawn_strategy=standalone --genrule_strategy=standalone" \ |
75 |
+ > "${T}/bazelrc" || die |
76 |
+ output/bazel --bazelrc="${T}/bazelrc" build scripts:bazel-complete.bash || die |
77 |
+ mv bazel-bin/scripts/bazel-complete.bash output/ || die |
78 |
+} |
79 |
+ |
80 |
+src_test() { |
81 |
+ output/bazel test \ |
82 |
+ --verbose_failures \ |
83 |
+ --spawn_strategy=standalone \ |
84 |
+ --genrule_strategy=standalone \ |
85 |
+ --verbose_test_summary \ |
86 |
+ examples/cpp:hello-success_test || die |
87 |
+} |
88 |
+ |
89 |
+src_install() { |
90 |
+ output/bazel shutdown |
91 |
+ dobin output/bazel |
92 |
+ newbashcomp output/bazel-complete.bash ${PN} |
93 |
+ if use zsh-completion ; then |
94 |
+ insinto /usr/share/zsh/site-functions |
95 |
+ doins scripts/zsh_completion/_bazel |
96 |
+ fi |
97 |
+ if use examples; then |
98 |
+ docinto examples |
99 |
+ dodoc -r examples/* |
100 |
+ docompress -x /usr/share/doc/${PF}/examples |
101 |
+ fi |
102 |
+ # could really build tools but I don't know which ones |
103 |
+ # are actually used |
104 |
+ if use tools; then |
105 |
+ docinto tools |
106 |
+ dodoc -r tools/* |
107 |
+ docompress -x /usr/share/doc/${PF}/tools |
108 |
+ fi |
109 |
+} |