Gentoo Archives: gentoo-commits

From: Aisha Tammy <gentoo@×××××.cc>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/sci:master commit in: dev-util/bazel/
Date: Fri, 09 Oct 2020 01:47:50
Message-Id: 1602208046.b756bc0ddb4093e73e75085227db68a8a492720f.epsilon-0@gentoo
1 commit: b756bc0ddb4093e73e75085227db68a8a492720f
2 Author: Aisha Tammy <gentoo <AT> aisha <DOT> cc>
3 AuthorDate: Fri Oct 9 01:47:26 2020 +0000
4 Commit: Aisha Tammy <gentoo <AT> aisha <DOT> cc>
5 CommitDate: Fri Oct 9 01:47:26 2020 +0000
6 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=b756bc0d
7
8 dev-util/bazel: drop package
9
10 present in ::gentoo
11
12 Signed-off-by: Aisha Tammy <gentoo <AT> aisha.cc>
13
14 dev-util/bazel/bazel-0.13.0.ebuild | 104 -------------------------------------
15 dev-util/bazel/metadata.xml | 20 -------
16 2 files changed, 124 deletions(-)
17
18 diff --git a/dev-util/bazel/bazel-0.13.0.ebuild b/dev-util/bazel/bazel-0.13.0.ebuild
19 deleted file mode 100644
20 index 797c062b0..000000000
21 --- a/dev-util/bazel/bazel-0.13.0.ebuild
22 +++ /dev/null
23 @@ -1,104 +0,0 @@
24 -# Copyright 1999-2018 Gentoo Foundation
25 -# Distributed under the terms of the GNU General Public License v2
26 -
27 -EAPI=6
28 -
29 -inherit bash-completion-r1 java-pkg-2
30 -
31 -DESCRIPTION="Fast and correct automated build system"
32 -HOMEPAGE="http://bazel.io/"
33 -SRC_URI="https://github.com/bazelbuild/bazel/releases/download/${PV}/${P}-dist.zip"
34 -
35 -LICENSE="Apache-2.0"
36 -SLOT="0"
37 -KEYWORDS="~amd64"
38 -IUSE="examples tools zsh-completion"
39 -# strip corrupts the bazel binary
40 -RESTRICT="strip"
41 -RDEPEND="virtual/jdk:1.8"
42 -DEPEND="${RDEPEND}
43 - app-arch/unzip
44 - app-arch/zip"
45 -
46 -S="${WORKDIR}"
47 -
48 -pkg_setup() {
49 - echo ${PATH} | grep -q ccache && \
50 - ewarn "${PN} usually fails to compile with ccache, you have been warned"
51 - java-pkg-2_pkg_setup
52 -}
53 -
54 -bazel-get-flags() {
55 - local fs=""
56 - for i in ${CFLAGS}; do
57 - [[ -n "${fs}" ]] && fs+=" "
58 - fs+="--copt=${i}"
59 - done
60 - for i in ${CXXFLAGS}; do
61 - [[ -n "${fs}" ]] && fs+=" "
62 - fs+="--cxxopt=${i}"
63 - done
64 - for i in ${CPPFLAGS}; do
65 - [[ -n "${fs}" ]] && fs+=" "
66 - fs+="--copt=${i}"
67 - fs+="--cxxopt=${i}"
68 - done
69 - for i in ${LDFLAGS}; do
70 - [[ -n "${fs}" ]] && fs+=" "
71 - fs+="--linkopt=${i}"
72 - done
73 - echo "${fs}"
74 -}
75 -
76 -src_compile() {
77 - # F: fopen_wr
78 - # S: deny
79 - # P: /proc/self/setgroups
80 - # A: /proc/self/setgroups
81 - # R: /proc/24939/setgroups
82 - # C: /usr/lib/systemd/systemd
83 - addpredict /proc
84 - VERBOSE=yes ./compile.sh || die
85 - # Use standalone strategy to deactivate the bazel sandbox, since it
86 - # conflicts with FEATURES=sandbox.
87 - echo "build --verbose_failures --spawn_strategy=standalone --genrule_strategy=standalone" \
88 - > "${T}/bazelrc" || die
89 - einfo "output/bazel --bazelrc=\"${T}/bazelrc\" build \\"
90 - einfo " $(bazel-get-flags) \\"
91 - einfo " scripts:bazel-complete.bash"
92 - output/bazel --bazelrc="${T}/bazelrc" build $(bazel-get-flags) \
93 - scripts:bazel-complete.bash || die
94 - mv bazel-bin/scripts/bazel-complete.bash output/ || die
95 -}
96 -
97 -src_test() {
98 - output/bazel test \
99 - --verbose_failures \
100 - --spawn_strategy=standalone \
101 - --genrule_strategy=standalone \
102 - --verbose_test_summary \
103 - examples/cpp:hello-success_test || die
104 -}
105 -
106 -src_install() {
107 - output/bazel shutdown
108 - dobin output/bazel
109 - newbashcomp output/bazel-complete.bash ${PN}
110 - bashcomp_alias ${PN} ibazel
111 - if use zsh-completion ; then
112 - insinto /usr/share/zsh/site-functions
113 - doins scripts/zsh_completion/_bazel
114 - fi
115 - if use examples; then
116 - docinto examples
117 - dodoc -r examples/*
118 - docompress -x /usr/share/doc/${PF}/examples
119 - fi
120 - # could really build tools but I don't know which ones
121 - # are actually used
122 - if use tools; then
123 - docinto tools
124 - dodoc -r tools/*
125 - docompress -x /usr/share/doc/${PF}/tools
126 - fi
127 -}
128
129 diff --git a/dev-util/bazel/metadata.xml b/dev-util/bazel/metadata.xml
130 deleted file mode 100644
131 index e7d5f3b34..000000000
132 --- a/dev-util/bazel/metadata.xml
133 +++ /dev/null
134 @@ -1,20 +0,0 @@
135 -<?xml version="1.0" encoding="UTF-8"?>
136 -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
137 -<pkgmetadata>
138 - <maintainer type="person">
139 - <email>zmedico@g.o</email>
140 - </maintainer>
141 - <upstream>
142 - <remote-id type="github">bazelbuild/bazel</remote-id>
143 - </upstream>
144 - <longdescription>
145 - Bazel is Google's own build tool. Bazel has built-in support for
146 - building both client and server software, including client
147 - applications for both Android and iOS platforms. It also provides
148 - an extensible framework that you can use to develop your own build
149 - rules.
150 - </longdescription>
151 - <use>
152 - <flag name="tools">Install extra bazel tools to build from sources</flag>
153 - </use>
154 -</pkgmetadata>