summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaciej Barć <xgqt@gentoo.org>2024-11-08 18:39:04 +0100
committerMaciej Barć <xgqt@gentoo.org>2024-11-08 20:34:41 +0100
commit50b2b502f11c964494a64c760308536f09120d4f (patch)
tree8242dff301e0b8ad6c83294fa4b30aa1a51f5472 /dev-build
parentdev-dotnet/fantomas: drop old 6.3.13 (diff)
downloadgentoo-50b2b502f11c964494a64c760308536f09120d4f.tar.gz
gentoo-50b2b502f11c964494a64c760308536f09120d4f.tar.bz2
gentoo-50b2b502f11c964494a64c760308536f09120d4f.zip
dev-build/bazelisk: bump to 1.23.0
Signed-off-by: Maciej Barć <xgqt@gentoo.org>
Diffstat (limited to 'dev-build')
-rw-r--r--dev-build/bazelisk/Manifest2
-rw-r--r--dev-build/bazelisk/bazelisk-1.23.0.ebuild43
2 files changed, 45 insertions, 0 deletions
diff --git a/dev-build/bazelisk/Manifest b/dev-build/bazelisk/Manifest
index 60b024400869..501abf132221 100644
--- a/dev-build/bazelisk/Manifest
+++ b/dev-build/bazelisk/Manifest
@@ -4,3 +4,5 @@ DIST bazelisk-1.22.0-deps.tar.xz 2495160 BLAKE2B 7f297c0e4d16c72981ff611bfd37f99
DIST bazelisk-1.22.0.tar.gz 150380 BLAKE2B e96f0e125af18e72674804c2f9c0b039a33cab2e35135128e71ca70faf3e498bcef3b8e1bf1df4d44d3cdc9ca7f8cf90bd72075a288f608ac622450a1cfb02ef SHA512 436394751b00a57ee44eb8d4a13a47b2365a1abebe28da9529b42b71043805b18b5f2ce1f08e23b2472f2d9a173d85336c539231e768e594ac9226d8f9e88a31
DIST bazelisk-1.22.1-deps.tar.xz 2499772 BLAKE2B 98d57705870d7bd7b8b9815237a51834e8ee63504d86478802ecd73c9ba6b15567cc44b351a75138fb3bc4c426742396918403f3f04b8b755b08a2b64335a1a8 SHA512 23d903a9d3016d82efcad7a6be0f9c807a4702092a2966df82d8cbabc92449123208b3d659aeb2f55403591d1b10a080d18aeb0d0b02405b3a6f889cf44b0790
DIST bazelisk-1.22.1.tar.gz 150482 BLAKE2B e96a36886dfbade7b4611c7f9932997c3c37059bc67f69aeeccbf4db470735be31edd836e9833d40cdea02370f94b56a30437f6f5def963fc2962f26ff4f3c37 SHA512 37e52ff5e2ff9cd467a0794fc8febed87a0f20063f3f74459b7e7296fcc6543eeabad370b4cc8f59eeada32a978edaeee4409c5c7c3c51b803774af72fae5068
+DIST bazelisk-1.23.0-deps.tar.xz 2499540 BLAKE2B 14d4b11348986a669b9b6ef1dabd14b778b5531eaaa4d6e6f18f7005d7c54b0a0ed1cc252cf9f6923dbf8103f0b555d408a8cc4e924bbb4f7be03602afde8bd2 SHA512 ad74e4333b0019676ed0b3017e0ee8ccd1e7893ad772f8a04c117cb62f7140d625ab08a0d2f1f909ad71ed27e0e0ecbe459a35de76dfde7337fee7257f63d5d1
+DIST bazelisk-1.23.0.tar.gz 150671 BLAKE2B 4328290d938c6af7b8eb27cc2555d7544eb8c06722f477af077150b20aac986830d766f87ce261d18474cfff14a95f014f21d4a19a6614def49bc92a1b52da29 SHA512 ac93598553d16651a6ab83dcbbfa15a870ba7cfbf99ae10ef9e3bff8038b121f84bdd765680c44f7d97e892f01cdf774a13ad3103f65303b26f490394eb1ce7e
diff --git a/dev-build/bazelisk/bazelisk-1.23.0.ebuild b/dev-build/bazelisk/bazelisk-1.23.0.ebuild
new file mode 100644
index 000000000000..9b18306d7e1b
--- /dev/null
+++ b/dev-build/bazelisk/bazelisk-1.23.0.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
+}