diff options
-rw-r--r-- | dev-build/bazelisk/bazelisk-1.19.0-r1.ebuild (renamed from dev-build/bazelisk/bazelisk-1.19.0.ebuild) | 5 | ||||
-rw-r--r-- | dev-build/bazelisk/metadata.xml | 7 |
2 files changed, 10 insertions, 2 deletions
diff --git a/dev-build/bazelisk/bazelisk-1.19.0.ebuild b/dev-build/bazelisk/bazelisk-1.19.0-r1.ebuild index 4cea472f3598..9b18306d7e1b 100644 --- a/dev-build/bazelisk/bazelisk-1.19.0.ebuild +++ b/dev-build/bazelisk/bazelisk-1.19.0-r1.ebuild @@ -16,6 +16,7 @@ SRC_URI=" LICENSE="Apache-2.0" SLOT="0" KEYWORDS="~amd64 ~arm64 ~x86" +IUSE="+bazel-symlink" DOCS=( CONTRIBUTING.md README.md ) @@ -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 } 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 @@ <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> |