1 |
commit: 74b540331037070b1090b239dbe814eeb8d7497a |
2 |
Author: Zac Medico <zmedico <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Oct 28 23:36:57 2016 +0000 |
4 |
Commit: Zac Medico <zmedico <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Oct 28 23:38:09 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=74b54033 |
7 |
|
8 |
dev-util/bazel: add package |
9 |
|
10 |
Package-Manager: portage-2.3.2 |
11 |
|
12 |
dev-util/bazel/Manifest | 1 + |
13 |
dev-util/bazel/bazel-0.3.2.ebuild | 34 ++++++++++++++++++++++++++++++++++ |
14 |
dev-util/bazel/metadata.xml | 10 ++++++++++ |
15 |
3 files changed, 45 insertions(+) |
16 |
|
17 |
diff --git a/dev-util/bazel/Manifest b/dev-util/bazel/Manifest |
18 |
new file mode 100644 |
19 |
index 00000000..387eb8f |
20 |
--- /dev/null |
21 |
+++ b/dev-util/bazel/Manifest |
22 |
@@ -0,0 +1 @@ |
23 |
+DIST bazel-0.3.2.tar.gz 145095554 SHA256 9692ac3318a40e8a0530f68bbfc473ae5f6a4a5c0fe08d2f88612ca4d40ba54a SHA512 975faf5830e952bea5d3fa8d127e0d5d9654af83f1fba0d7e26f9e1c2c71dd58542efea2382b0c52c9fd24ae43ec66a3ca7451309f02fd65c0896bbbdb3c79f5 WHIRLPOOL ab487f84e8126ab2badfd84d1fe757170900fbb2f88dff79d6867fb694bbb8adf226b7b89bfdb9cf207595bfd235583a54b8102a1a009f58be7bd3be039e1aaa |
24 |
|
25 |
diff --git a/dev-util/bazel/bazel-0.3.2.ebuild b/dev-util/bazel/bazel-0.3.2.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000..a02451f |
28 |
--- /dev/null |
29 |
+++ b/dev-util/bazel/bazel-0.3.2.ebuild |
30 |
@@ -0,0 +1,34 @@ |
31 |
+# Copyright 1999-2016 Gentoo Foundation |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+# $Id$ |
34 |
+ |
35 |
+EAPI=6 |
36 |
+ |
37 |
+inherit bash-completion-r1 java-pkg-2 |
38 |
+ |
39 |
+DESCRIPTION="Bazel build system" |
40 |
+HOMEPAGE="https://bazel.io/" |
41 |
+SRC_URI="https://github.com/bazelbuild/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" |
42 |
+ |
43 |
+LICENSE="Apache-2.0" |
44 |
+SLOT="0" |
45 |
+KEYWORDS="~amd64" |
46 |
+IUSE="" |
47 |
+# strip corrupts the bazel binary |
48 |
+RESTRICT="strip" |
49 |
+DEPEND="virtual/jdk:1.8" |
50 |
+RDEPEND="${DEPEND}" |
51 |
+ |
52 |
+src_compile() { |
53 |
+ ./compile.sh || die |
54 |
+ # Use standalone strategy to deactivate the bazel sandbox, since it |
55 |
+ # conflicts with FEATURES=sandbox. |
56 |
+ echo "build --spawn_strategy=standalone --genrule_strategy=standalone" \ |
57 |
+ > "${T}/bazelrc" || die |
58 |
+ output/bazel --bazelrc="${T}/bazelrc" build //scripts:bazel-complete.bash || die |
59 |
+} |
60 |
+ |
61 |
+src_install() { |
62 |
+ dobin output/bazel |
63 |
+ newbashcomp bazel-bin/scripts/bazel-complete.bash ${PN} |
64 |
+} |
65 |
|
66 |
diff --git a/dev-util/bazel/metadata.xml b/dev-util/bazel/metadata.xml |
67 |
new file mode 100644 |
68 |
index 00000000..6fa3754 |
69 |
--- /dev/null |
70 |
+++ b/dev-util/bazel/metadata.xml |
71 |
@@ -0,0 +1,10 @@ |
72 |
+<?xml version="1.0" encoding="UTF-8"?> |
73 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
74 |
+<pkgmetadata> |
75 |
+ <maintainer type="person"> |
76 |
+ <email>zmedico@g.o</email> |
77 |
+ </maintainer> |
78 |
+ <upstream> |
79 |
+ <remote-id type="github">bazelbuild/bazel</remote-id> |
80 |
+ </upstream> |
81 |
+</pkgmetadata> |