summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaciej Barć <xgqt@gentoo.org>2024-05-13 18:11:11 +0200
committerMaciej Barć <xgqt@gentoo.org>2024-05-13 19:59:13 +0200
commit74566635c7783ee1093646f489e4c2f4dda72b90 (patch)
tree31e6c468c7933eff173a8579322fd740bc7b91b4 /dev-build
parentsci-electronics/nvc: bump to 1.12.1 (diff)
downloadgentoo-74566635c7783ee1093646f489e4c2f4dda72b90.tar.gz
gentoo-74566635c7783ee1093646f489e4c2f4dda72b90.tar.bz2
gentoo-74566635c7783ee1093646f489e4c2f4dda72b90.zip
dev-build/bazelisk: bump to 1.20.0
Signed-off-by: Maciej Barć <xgqt@gentoo.org>
Diffstat (limited to 'dev-build')
-rw-r--r--dev-build/bazelisk/Manifest1
-rw-r--r--dev-build/bazelisk/bazelisk-1.20.0.ebuild43
2 files changed, 44 insertions, 0 deletions
diff --git a/dev-build/bazelisk/Manifest b/dev-build/bazelisk/Manifest
index a893885a2db5..b1df71669f67 100644
--- a/dev-build/bazelisk/Manifest
+++ b/dev-build/bazelisk/Manifest
@@ -1,2 +1,3 @@
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
+DIST bazelisk-1.20.0.tar.gz 165942 BLAKE2B 2ff0c56bdbd9b8fe6a2fd35c0d2d733b3fa9be706875c2c466e3af22e06674ac23e92b6ee23c8c5150db449ae38f2f9ad313cd0e60a50446182b88f12333549c SHA512 05199786b007572544713653a1cdffb66e8db5edde4bbdb5c6c2e75d7436bfbb26311f1dca8ee107dd4088d8354fc81a6127977c998bdfff9bfddbd7cf7cbbb6
diff --git a/dev-build/bazelisk/bazelisk-1.20.0.ebuild b/dev-build/bazelisk/bazelisk-1.20.0.ebuild
new file mode 100644
index 000000000000..d201c8361161
--- /dev/null
+++ b/dev-build/bazelisk/bazelisk-1.20.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/${PN}-1.19.0-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
+}