Skip to content

Commit

Permalink
dev-build/bazelisk: support bazel-symlink
Browse files Browse the repository at this point in the history
Closes: https://bugs.gentoo.org/926104
Signed-off-by: Maciej Barć <[email protected]>
  • Loading branch information
xgqt committed Mar 4, 2024
1 parent 546afd1 commit 6e4fb2b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ SRC_URI="
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64 ~arm64 ~x86"
IUSE="+bazel-symlink"

DOCS=( CONTRIBUTING.md README.md )

Expand All @@ -34,5 +35,9 @@ src_install() {
exeinto /usr/bin
doexe "bin/${PN}"

if use bazel-symlink ; then
dosym -r /usr/bin/bazelisk /usr/bin/bazel
fi

einstalldocs
}
7 changes: 5 additions & 2 deletions dev-build/bazelisk/metadata.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,15 @@
<name>Maciej Barć</name>
</maintainer>
<longdescription>
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.
</longdescription>
<use>
<flag name="bazel-symlink">Install bazel symlink that points to bazelisk</flag>
</use>
<upstream>
<bugs-to>https://github.com/bazelbuild/bazelisk/issues/</bugs-to>
<remote-id type="github">bazelbuild/bazelisk</remote-id>
Expand Down

0 comments on commit 6e4fb2b

Please sign in to comment.