From e9d044d4b9b71200a96adfa280848858c0f468c9 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 13 Nov 2021 13:10:00 +0000 Subject: gentoo resync : 13.11.2021 --- dev-util/bazel/Manifest | 2 +- dev-util/bazel/bazel-3.7.2-r1.ebuild | 112 +++++++++++++++++++++++++++++++++ dev-util/bazel/bazel-3.7.2.ebuild | 116 ----------------------------------- 3 files changed, 113 insertions(+), 117 deletions(-) create mode 100644 dev-util/bazel/bazel-3.7.2-r1.ebuild delete mode 100644 dev-util/bazel/bazel-3.7.2.ebuild (limited to 'dev-util/bazel') diff --git a/dev-util/bazel/Manifest b/dev-util/bazel/Manifest index 44fb2859dc13..3d48a83d5bbd 100644 --- a/dev-util/bazel/Manifest +++ b/dev-util/bazel/Manifest @@ -19,5 +19,5 @@ EBUILD bazel-1.0.1.ebuild 2743 BLAKE2B 3ae56ff90ef4002eb48e88f788b8a63e02bc7f0a8 EBUILD bazel-1.2.1.ebuild 2742 BLAKE2B 16874c3b0ee6b24af9a117d9d3cb31f61e76cf4e43804542e759982eb8f3b5ffd48349103df0a2b5c545967e8c5b519fe3c6ab7cfaf7676e64697840b5f48a34 SHA512 38acb30144a86330428f0cd125414a940fabfe468b7d28150e5aa6027f1870ea55adfdd84518f716524d232e6c6c862c7d04a03c40cb26c5b5b529f418c022ad EBUILD bazel-2.0.1.ebuild 2678 BLAKE2B edc83ee6b2b061a7ac28af348ba88bf1ac91acbc46302f483f4f783351afba4ea820f5fceffe04b131948e11d582f3d33c68fd05a1b7c04469cccce1770b8f84 SHA512 71c082a3382ab2f3954690a11ac0f41162f5ea3a2294841029b4602d20572bdeb0353ca7bd6f7a48cb678f8f00f8bd5eb0316b90293be7dc9d4ee2de2b602721 EBUILD bazel-3.2.0.ebuild 2845 BLAKE2B a6988e3db928d1856f852169f0419a9201467a6dafe8f90154ed42afc421858df271f0704ea59b0084dfaea632eda45854f77f5245c8885594071012a0c8c312 SHA512 de6859234ea01e045f90454c71fff97bfc4ec299e3a7119739d0bdcf439d0f29b5679dd5df1f4102a5ed3249caa5f80cc5d19a5e899735d6a37fecd0f6595c44 -EBUILD bazel-3.7.2.ebuild 2852 BLAKE2B f59433a9c301d0484a4092262767fc1e0b90924182483f680edcde73951d87f7ab90ee537b08daef0563b64ac15e635519249009142ef2a263df5bfcfd138757 SHA512 ab404286bc832f864242ec8e1d34a45e946d18f8de0958f15c5cefb1dd7cdfef31830ad0e19b2029e97106c64f5da3dcb95c092f5cab90dc32400cd7de2806f3 +EBUILD bazel-3.7.2-r1.ebuild 2677 BLAKE2B d45baf321f0c4588cf6906034fa103d624b82bdf02d9d1e7f8cd293ea063aafc1e7848b7382da87137b91335cdb193abae32ac69c59a27fcbecc041adc40d5b1 SHA512 a26504d8150b1b6d9af5bcdf021e50c1e0555095f15df9a4b5706dfb47bd3ac7451cd5a023ac68edcdfb85890f96fcd10152cf0cb9039d95398662e11a32d74e MISC metadata.xml 845 BLAKE2B df4fadd622f9bf9221313050afe7fde503179d4b91c4b3b1485eefe1d5ca411f1d93d5ec875cec070587c5522e51bfd5ba6d62430014218bc0189fa440f6a2d9 SHA512 96fe79b25e3e2f32fa551793e208c7c5344fab9cda8b59a51eeb19bb01cdcb30bf24ec575bf4e732775d40fcfc4aa356a75b3592114cbaf4d88f38887184aa6a diff --git a/dev-util/bazel/bazel-3.7.2-r1.ebuild b/dev-util/bazel/bazel-3.7.2-r1.ebuild new file mode 100644 index 000000000000..161e10ad821a --- /dev/null +++ b/dev-util/bazel/bazel-3.7.2-r1.ebuild @@ -0,0 +1,112 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit bash-completion-r1 java-pkg-2 multiprocessing + +DESCRIPTION="Fast and correct automated build system" +HOMEPAGE="https://bazel.build/" + +SRC_URI="https://github.com/bazelbuild/bazel/releases/download/${PV}/${P}-dist.zip" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64" +IUSE="examples tools" +# strip corrupts the bazel binary +# test fails with network-sandbox: An error occurred during the fetch of repository 'io_bazel_skydoc' (bug 690794) +RESTRICT="strip test" +RDEPEND=">=virtual/jdk-1.8:*" +DEPEND="${RDEPEND} + app-arch/unzip + app-arch/zip" + +S="${WORKDIR}" + +bazel-get-flags() { + local i fs=() + for i in ${CFLAGS}; do + fs+=( "--copt=${i}" "--host_copt=${i}" ) + done + for i in ${CXXFLAGS}; do + fs+=( "--cxxopt=${i}" "--host_cxxopt=${i}" ) + done + for i in ${CPPFLAGS}; do + fs+=( "--copt=${i}" "--host_copt=${i}" ) + fs+=( "--cxxopt=${i}" "--host_cxxopt=${i}" ) + done + for i in ${LDFLAGS}; do + fs+=( "--linkopt=${i}" "--host_linkopt=${i}" ) + done + echo "${fs[*]}" +} + +pkg_setup() { + if has ccache ${FEATURES}; then + ewarn "${PN} usually fails to compile with ccache, you have been warned" + fi + java-pkg-2_pkg_setup +} + +src_unpack() { + # Only unpack the main distfile + unpack ${P}-dist.zip +} + +src_prepare() { + default + + # F: fopen_wr + # S: deny + # P: /proc/self/setgroups + # A: /proc/self/setgroups + # R: /proc/24939/setgroups + # C: /usr/lib/systemd/systemd + addpredict /proc + + eapply "${FILESDIR}/${PN}-3.2.0-include-limits-for-gcc-11.patch" +} + +src_compile() { + export EXTRA_BAZEL_ARGS="--jobs=$(makeopts_jobs) $(bazel-get-flags) --host_javabase=@local_jdk//:jdk" + VERBOSE=yes ./compile.sh || die + + ./scripts/generate_bash_completion.sh \ + --bazel=output/bazel \ + --output=bazel-complete.bash \ + --prepend=scripts/bazel-complete-header.bash \ + --prepend=scripts/bazel-complete-template.bash +} + +src_test() { + output/bazel test \ + --verbose_failures \ + --spawn_strategy=standalone \ + --genrule_strategy=standalone \ + --verbose_test_summary \ + examples/cpp:hello-success_test || die + output/bazel shutdown +} + +src_install() { + dobin output/bazel + newbashcomp bazel-complete.bash ${PN} + bashcomp_alias ${PN} ibazel + insinto /usr/share/zsh/site-functions + doins scripts/zsh_completion/_bazel + + if use examples; then + docinto examples + dodoc -r examples/* + docompress -x /usr/share/doc/${PF}/examples + fi + # could really build tools but I don't know which ones + # are actually used + if use tools; then + docinto tools + dodoc -r tools/* + docompress -x /usr/share/doc/${PF}/tools + docompress -x /usr/share/doc/${PF}/tools/build_defs/pkg/testdata + fi +} diff --git a/dev-util/bazel/bazel-3.7.2.ebuild b/dev-util/bazel/bazel-3.7.2.ebuild deleted file mode 100644 index 8f687a47d16b..000000000000 --- a/dev-util/bazel/bazel-3.7.2.ebuild +++ /dev/null @@ -1,116 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -inherit bash-completion-r1 java-pkg-2 multiprocessing - -DESCRIPTION="Fast and correct automated build system" -HOMEPAGE="https://bazel.build/" - -SRC_URI="https://github.com/bazelbuild/bazel/releases/download/${PV}/${P}-dist.zip" - -LICENSE="Apache-2.0" -SLOT="0" -KEYWORDS="~amd64" -IUSE="examples tools prefix static-libs" -REQUIRED_USE="prefix? ( static-libs )" -# strip corrupts the bazel binary -# test fails with network-sandbox: An error occurred during the fetch of repository 'io_bazel_skydoc' (bug 690794) -RESTRICT="strip test" -RDEPEND=">=virtual/jdk-1.8:*" -DEPEND="${RDEPEND} - app-arch/unzip - app-arch/zip" - -S="${WORKDIR}" - -bazel-get-flags() { - local i fs=() - for i in ${CFLAGS}; do - fs+=( "--copt=${i}" "--host_copt=${i}" ) - done - for i in ${CXXFLAGS}; do - fs+=( "--cxxopt=${i}" "--host_cxxopt=${i}" ) - done - for i in ${CPPFLAGS}; do - fs+=( "--copt=${i}" "--host_copt=${i}" ) - fs+=( "--cxxopt=${i}" "--host_cxxopt=${i}" ) - done - for i in ${LDFLAGS}; do - fs+=( "--linkopt=${i}" "--host_linkopt=${i}" ) - done - echo "${fs[*]}" -} - -pkg_setup() { - if has ccache ${FEATURES}; then - ewarn "${PN} usually fails to compile with ccache, you have been warned" - fi - java-pkg-2_pkg_setup -} - -src_unpack() { - # Only unpack the main distfile - unpack ${P}-dist.zip -} - -src_prepare() { - default - - # F: fopen_wr - # S: deny - # P: /proc/self/setgroups - # A: /proc/self/setgroups - # R: /proc/24939/setgroups - # C: /usr/lib/systemd/systemd - addpredict /proc - - eapply "${FILESDIR}/${PN}-3.2.0-include-limits-for-gcc-11.patch" -} - -src_compile() { - export EXTRA_BAZEL_ARGS="--jobs=$(makeopts_jobs) $(bazel-get-flags) --host_javabase=@local_jdk//:jdk" - if use static-libs; then - export BAZEL_LINKOPTS=-static-libs:-static-libgcc BAZEL_LINKLIBS=-l%:libstdc++.a:-lm - fi - VERBOSE=yes ./compile.sh || die - - ./scripts/generate_bash_completion.sh \ - --bazel=output/bazel \ - --output=bazel-complete.bash \ - --prepend=scripts/bazel-complete-header.bash \ - --prepend=scripts/bazel-complete-template.bash -} - -src_test() { - output/bazel test \ - --verbose_failures \ - --spawn_strategy=standalone \ - --genrule_strategy=standalone \ - --verbose_test_summary \ - examples/cpp:hello-success_test || die - output/bazel shutdown -} - -src_install() { - dobin output/bazel - newbashcomp bazel-complete.bash ${PN} - bashcomp_alias ${PN} ibazel - insinto /usr/share/zsh/site-functions - doins scripts/zsh_completion/_bazel - - if use examples; then - docinto examples - dodoc -r examples/* - docompress -x /usr/share/doc/${PF}/examples - fi - # could really build tools but I don't know which ones - # are actually used - if use tools; then - docinto tools - dodoc -r tools/* - docompress -x /usr/share/doc/${PF}/tools - docompress -x /usr/share/doc/${PF}/tools/build_defs/pkg/testdata - fi -} -- cgit v1.2.3