From a45eaba8b74340f1b166bb2ba96d61d41fc11fad Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 4 Mar 2024 23:43:21 +0000 Subject: gentoo auto-resync : 04:03:2024 - 23:43:21 --- dev-build/bazelisk/Manifest | 4 +-- dev-build/bazelisk/bazelisk-1.19.0-r1.ebuild | 43 ++++++++++++++++++++++++++++ dev-build/bazelisk/bazelisk-1.19.0.ebuild | 38 ------------------------ dev-build/bazelisk/metadata.xml | 7 +++-- 4 files changed, 50 insertions(+), 42 deletions(-) create mode 100644 dev-build/bazelisk/bazelisk-1.19.0-r1.ebuild delete mode 100644 dev-build/bazelisk/bazelisk-1.19.0.ebuild (limited to 'dev-build/bazelisk') diff --git a/dev-build/bazelisk/Manifest b/dev-build/bazelisk/Manifest index 399247db16a6..d35b2c890c26 100644 --- a/dev-build/bazelisk/Manifest +++ b/dev-build/bazelisk/Manifest @@ -1,4 +1,4 @@ DIST bazelisk-1.19.0-deps.tar.xz 2414272 BLAKE2B d044bafa94ce8d4fd9bc6dceb76368653c5052ed579be6f6a6fd37c68c821442f86fabcebc88eff118a414bd99e0e9b49dde5321130107da9c3c3563e7cba01b SHA512 57bafd7bb370f49cf2ff90596e25be8672dc4ed4f8466f8a969b49ce6b1bc57d6aff917065ec07bb04c634efb259d8e045213acb04ba1288c6a5f2a441eb2607 DIST bazelisk-1.19.0.tar.gz 166002 BLAKE2B 052411a9f43ce511980b0d15fc87b9abe652759aa5b90e420bb3b248f5ae287000c84fb86df21b950bfc708addb36c9b109042526fc3c88d2d6939ce3e9cfc1a SHA512 32e4401d685f46f2b6cf0a26165fedc1f2eef71bcea939f96e0c03f0bb20f666dc3c7a191df51f978b79fcba7941d6a4a5cd211d9e5a42d3b24e4704a6df890e -EBUILD bazelisk-1.19.0.ebuild 761 BLAKE2B ab69210b110f51edcc9984cf4c4612161c6a1c98f73c7490c1efd5ef50a5aa02b72e71328e577e6a7b7fb1c5bfee1b60b22b7b17ccd9239f066011495e20432a SHA512 2caa6c27553d920aefdc308affd3180d017ae11d8ec8b797194980056f5c4b42284aaceb419adb17a74e32407875833586db31710d717fe4697d233112b352d8 -MISC metadata.xml 793 BLAKE2B 5a20f80f4909ca23049c80a048ae53806e797716069116004e38df17e4b7d822115da04f70c680308e2093c4c6c785e0480ed1b070ad742161c20da019ee6900 SHA512 d717047a3f960cf54e996a090bcf38d12ec12ce1798977c0d64f224f81d2b864afc020919e5b8204004687d4ff69ef7e0391f04902d2006723044d4b41333077 +EBUILD bazelisk-1.19.0-r1.ebuild 861 BLAKE2B 648f0ace1f5a21af3f10205e4fee5e50d6cda8961284762b96d06abc1180f116c4abbb763d3c253a97484423eaf4096797e30055622632e4757eb6e50881cc67 SHA512 49dfc38e3d64a1b16d8442cfce061ed4fc5e49abab2fbd5a9e8906b5275ec5a2e80c3210485ba32a56dc81ef394286099a7b3fbc88691d070ff3a2f1338248df +MISC metadata.xml 894 BLAKE2B 4346989ace750cbf341d14c28db0814020ceac6f4b9e7786e4a62b38c363cea25b2ddf500fe1c37168aff957d0d0c5ce40491f4a5e5af9ad4e000581d5ef267d SHA512 7cf7302b01589c587325fffb5a9707b532189996342c3a90fc10949409cea29881a8e476c12fa3724c5b98f7296085d4fd25a1c0976b8074f43061157430d032 diff --git a/dev-build/bazelisk/bazelisk-1.19.0-r1.ebuild b/dev-build/bazelisk/bazelisk-1.19.0-r1.ebuild new file mode 100644 index 000000000000..9b18306d7e1b --- /dev/null +++ b/dev-build/bazelisk/bazelisk-1.19.0-r1.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit go-module + +DESCRIPTION="A user-friendly launcher for Bazel written in Go" +HOMEPAGE="https://github.com/bazelbuild/bazelisk/" +SRC_URI=" + https://github.com/bazelbuild/${PN}/archive/refs/tags/v${PV}.tar.gz + -> ${P}.tar.gz + https://dev.gentoo.org/~xgqt/distfiles/deps/${P}-deps.tar.xz +" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~x86" +IUSE="+bazel-symlink" + +DOCS=( CONTRIBUTING.md README.md ) + +src_compile() { + mkdir -p bin || die + + local go_ldflags="-X main.BazeliskVersion=${PV}" + local -a go_buildargs=( + -ldflags "${go_ldflags}" + -o bin + ) + ego build "${go_buildargs[@]}" +} + +src_install() { + exeinto /usr/bin + doexe "bin/${PN}" + + if use bazel-symlink ; then + dosym -r /usr/bin/bazelisk /usr/bin/bazel + fi + + einstalldocs +} diff --git a/dev-build/bazelisk/bazelisk-1.19.0.ebuild b/dev-build/bazelisk/bazelisk-1.19.0.ebuild deleted file mode 100644 index 4cea472f3598..000000000000 --- a/dev-build/bazelisk/bazelisk-1.19.0.ebuild +++ /dev/null @@ -1,38 +0,0 @@ -# Copyright 1999-2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -inherit go-module - -DESCRIPTION="A user-friendly launcher for Bazel written in Go" -HOMEPAGE="https://github.com/bazelbuild/bazelisk/" -SRC_URI=" - https://github.com/bazelbuild/${PN}/archive/refs/tags/v${PV}.tar.gz - -> ${P}.tar.gz - https://dev.gentoo.org/~xgqt/distfiles/deps/${P}-deps.tar.xz -" - -LICENSE="Apache-2.0" -SLOT="0" -KEYWORDS="~amd64 ~arm64 ~x86" - -DOCS=( CONTRIBUTING.md README.md ) - -src_compile() { - mkdir -p bin || die - - local go_ldflags="-X main.BazeliskVersion=${PV}" - local -a go_buildargs=( - -ldflags "${go_ldflags}" - -o bin - ) - ego build "${go_buildargs[@]}" -} - -src_install() { - exeinto /usr/bin - doexe "bin/${PN}" - - einstalldocs -} diff --git a/dev-build/bazelisk/metadata.xml b/dev-build/bazelisk/metadata.xml index 032d00abaf95..de81e5f355e3 100644 --- a/dev-build/bazelisk/metadata.xml +++ b/dev-build/bazelisk/metadata.xml @@ -7,12 +7,15 @@ Maciej Barć - Bazelisk is a wrapper for Bazel written in Go. It automatically picks - a good version of Bazel given your current working directory, downloads it + Bazelisk is a wrapper for Bazel written in Go. It automatically picks a + good version of Bazel given your current working directory, downloads it from the official server (if required) and then transparently passes through all command-line arguments to the real Bazel binary. You can call it just like you would call Bazel. + + Install bazel symlink that points to bazelisk + https://github.com/bazelbuild/bazelisk/issues/ bazelbuild/bazelisk -- cgit v1.2.3