1 |
commit: 1f1d0d72b8a6afea69473303c5002ab489e9852c |
2 |
Author: Sébastien Fabbro <bicatali <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Dec 31 23:24:58 2016 +0000 |
4 |
Commit: Sebastien Fabbro <bicatali <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Jan 2 16:13:45 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1f1d0d72 |
7 |
|
8 |
dev-util/bazel: version bump |
9 |
Switched to the "dist" version to allow bootstraping. |
10 |
|
11 |
Package-Manager: Portage-2.3.3, Repoman-2.3.1 |
12 |
|
13 |
dev-util/bazel/Manifest | 1 + |
14 |
dev-util/bazel/bazel-0.4.3.ebuild | 69 +++++++++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 70 insertions(+) |
16 |
|
17 |
diff --git a/dev-util/bazel/Manifest b/dev-util/bazel/Manifest |
18 |
index ef34529..bc68b9d 100644 |
19 |
--- a/dev-util/bazel/Manifest |
20 |
+++ b/dev-util/bazel/Manifest |
21 |
@@ -1,2 +1,3 @@ |
22 |
DIST bazel-0.3.2.tar.gz 145095554 SHA256 9692ac3318a40e8a0530f68bbfc473ae5f6a4a5c0fe08d2f88612ca4d40ba54a SHA512 975faf5830e952bea5d3fa8d127e0d5d9654af83f1fba0d7e26f9e1c2c71dd58542efea2382b0c52c9fd24ae43ec66a3ca7451309f02fd65c0896bbbdb3c79f5 WHIRLPOOL ab487f84e8126ab2badfd84d1fe757170900fbb2f88dff79d6867fb694bbb8adf226b7b89bfdb9cf207595bfd235583a54b8102a1a009f58be7bd3be039e1aaa |
23 |
DIST bazel-0.4.0.tar.gz 159192903 SHA256 2370649043b5b3c407016a74946d5c443dd5c8ba43c1ffe28b83553983e5057c SHA512 be5c91b8c8e7061c4992d477d9ffa7eaf11fcc064a54ae2db7ccf8fa931223e758288876b8c191f3d4ddf16dd1858b2c99ce1ef58da71dc2edbcc57b2036f871 WHIRLPOOL 72d720b57241bf5a4769d3e84d6dee787aed9b4bb32353a32f2a3580cd74b6185db2c002c1e403246c511af7072ce24ba3cb71a12fa426f97faf4dbae9dff9d1 |
24 |
+DIST bazel-0.4.3-dist.zip 90363167 SHA256 cbd2ab580181c17317cf18b2bf825bcded2d97cab01cd5b5fe4f4d520b64f90f SHA512 fd5886c5951c71181a73bd7efd66a09606f372e9f9af01a62436bfb3fb4f1e37095d1d11a567856b6e6649afddaae436df9f8aaa03a436e3427b2ee60a9b0370 WHIRLPOOL 367ea40bd5df22c5f8b2d7c77c176d9d23c301a7a28c39afd241888ed0de611fe3eccc2402173b3ea98cc980cd18208d4d8b452040910c4cc3d47797e646a58b |
25 |
|
26 |
diff --git a/dev-util/bazel/bazel-0.4.3.ebuild b/dev-util/bazel/bazel-0.4.3.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000..09ffca6 |
29 |
--- /dev/null |
30 |
+++ b/dev-util/bazel/bazel-0.4.3.ebuild |
31 |
@@ -0,0 +1,69 @@ |
32 |
+# Copyright 1999-2016 Gentoo Foundation |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+# $Id$ |
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 |
+ |
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 |
+ VERBOSE=yes ./compile.sh || die |
64 |
+ # Use standalone strategy to deactivate the bazel sandbox, since it |
65 |
+ # conflicts with FEATURES=sandbox. |
66 |
+ echo "build --verbose_failures --spawn_strategy=standalone --genrule_strategy=standalone" \ |
67 |
+ > "${T}/bazelrc" || die |
68 |
+ output/bazel --bazelrc="${T}/bazelrc" build scripts:bazel-complete.bash || die |
69 |
+} |
70 |
+ |
71 |
+src_test() { |
72 |
+ output/bazel test \ |
73 |
+ --verbose_failures \ |
74 |
+ --spawn_strategy=standalone \ |
75 |
+ --genrule_strategy=standalone \ |
76 |
+ --verbose_test_summary \ |
77 |
+ examples/cpp:hello-success_test || die |
78 |
+} |
79 |
+ |
80 |
+src_install() { |
81 |
+ output/bazel shutdown |
82 |
+ dobin output/bazel |
83 |
+ newbashcomp bazel-bin/scripts/bazel-complete.bash ${PN} |
84 |
+ if use zsh-completion ; then |
85 |
+ insinto /usr/share/zsh/site-functions |
86 |
+ doins scripts/zsh_completion/_bazel |
87 |
+ fi |
88 |
+ if use examples; then |
89 |
+ docinto examples |
90 |
+ doins -r examples/* |
91 |
+ docompress -x /usr/share/doc/${PF}/examples |
92 |
+ fi |
93 |
+ # could really build tools but I don't know which ones |
94 |
+ # are actually used |
95 |
+ if use tools; then |
96 |
+ docinto tools |
97 |
+ doins -r tools/* |
98 |
+ docompress -x /usr/share/doc/${PF}/tools |
99 |
+ fi |
100 |
+} |