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