diff options
author | Florian Schmaus <flow@gentoo.org> | 2023-02-23 16:08:04 +0100 |
---|---|---|
committer | Florian Schmaus <flow@gentoo.org> | 2023-02-23 16:08:42 +0100 |
commit | 026d62858784d79378d58f391e3bdeaf001a6a3c (patch) | |
tree | 6966cfff69e7e8752c82cf12718500eeabecaaf6 /dev-java | |
parent | www-apps/prowlarr: add 1.3.0.2757 (diff) | |
download | gentoo-026d62858784d79378d58f391e3bdeaf001a6a3c.tar.gz gentoo-026d62858784d79378d58f391e3bdeaf001a6a3c.tar.bz2 gentoo-026d62858784d79378d58f391e3bdeaf001a6a3c.zip |
dev-java/scala-cli-bin: add 0.2.0
Signed-off-by: Florian Schmaus <flow@gentoo.org>
Diffstat (limited to 'dev-java')
-rw-r--r-- | dev-java/scala-cli-bin/Manifest | 3 | ||||
-rw-r--r-- | dev-java/scala-cli-bin/scala-cli-bin-0.2.0.ebuild | 65 |
2 files changed, 68 insertions, 0 deletions
diff --git a/dev-java/scala-cli-bin/Manifest b/dev-java/scala-cli-bin/Manifest index 77747f4f6c83..df47a6fa9126 100644 --- a/dev-java/scala-cli-bin/Manifest +++ b/dev-java/scala-cli-bin/Manifest @@ -1,3 +1,6 @@ DIST scala-cli-amd64-0.1.20.gz 32520802 BLAKE2B b032e7ed3c5e340e03bbddde6b00289da7f7a7017266cd6f6b1500540a5c81d453180a88e11b3590a26e2188cf2206ac6fa4089b9f85cfce5745a7b15a5b44ee SHA512 a08632992fb9bf811f88b267ef587de673a5f59b5ba0e1d6b49aaf4057328cd738519afeb7f76a96ef569376b3d34dc11f4891729b5cbd900b0d8b348a0f3566 +DIST scala-cli-amd64-0.2.0.gz 32589377 BLAKE2B 1eebcf83a12d4aa0f981895b8ae8d5bea3d17ac02282410aff9c02a961cf305d81ebe19422f0d96c5e8246c51d0702c352d23900e690b774550a9720246c3c08 SHA512 50617a5006b738612f234e7acc5be9d7012cb525b2548286585c11d9ac9bad6f8711a41cb1210b50089709f5765ebacce27151420fa5922cd58496fccb9bc11e DIST scala-cli-arm64-0.1.20.gz 32342696 BLAKE2B 54189891dce54d09869e5a0800683cf53e5613bb9ac74c137dbbbbdfea4e06f4a35dad07ec97db81e69a9fd704b1f44bda8b7466bdddaf9fdab07ca0a051d91f SHA512 040d287566f06b4d14a58cd9340ac15d8afa124d536053c0ee13db6d64e463162f7f2556004d593381377cc73b3a9075ee688937de4591fe6aa4a5cfe5121808 +DIST scala-cli-arm64-0.2.0.gz 32460836 BLAKE2B 742848e3125886ffc49d3972efcc8087967457e9fe6a1fead0c12a263136da0da654e30d97e8d59ac9aa3b016126a969e4e70e2824aba628a685baaa82369fbb SHA512 61a3b3a45c73041d210ba483bc8eac19d4aa518de7342d7e96c2cb24cc2e9b22a4fb2da2e65b6dcf0dde8dc4cbef565c607ee8339090e4efa2161e6c5b13b35f DIST scala-cli-non-native-0.1.20 9239916 BLAKE2B 15d45ecd9b20cb5184626bd518b373e4ba12948b6fd14c11a55923118aa0e690ec0ffadd64c613a206555c3e2fbb580339c8b3cf3b9e039aea04551d5ce4f238 SHA512 1f7c8d22ae94bf79cd6d139ecbf4d73e2009a3ad727404051716e531271e01c31b252174e9b039bfcffa997d6ab9f18f0e30de7834de8f92ddbb0ad140a572e7 +DIST scala-cli-non-native-0.2.0 9395272 BLAKE2B 02236a18c380037bbf06649d883cc38af2f0bd4c0428838d6f551dd37a937c58e83c1ca6dc41b4052bb4e146b322d59179e2f81fb9261202003bbfdfb1f5de37 SHA512 fada2760148718d52a8b7b196479a4b5baa37275a525c1fbecc3cb039ef7e81952fc73560abd51fda6fc7a82bdb37ae2b502faf7fe43e406ac4cf7010ab617ab diff --git a/dev-java/scala-cli-bin/scala-cli-bin-0.2.0.ebuild b/dev-java/scala-cli-bin/scala-cli-bin-0.2.0.ebuild new file mode 100644 index 000000000000..c2bab1ad0205 --- /dev/null +++ b/dev-java/scala-cli-bin/scala-cli-bin-0.2.0.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit bash-completion-r1 + +DESCRIPTION="CLI to interact with Scala and Java" +HOMEPAGE="https://scala-cli.virtuslab.org/" +SRC_URI=" + !amd64? ( !arm64? ( https://github.com/VirtusLab/scala-cli/releases/download/v${PV}/scala-cli -> scala-cli-non-native-${PV} ) ) + amd64? ( https://github.com/VirtusLab/scala-cli/releases/download/v${PV}/scala-cli-x86_64-pc-linux.gz -> scala-cli-amd64-${PV}.gz ) + arm64? ( https://github.com/VirtusLab/scala-cli/releases/download/v${PV}/scala-cli-aarch64-pc-linux.gz -> scala-cli-arm64-${PV}.gz ) +" + +KEYWORDS="~amd64 ~arm64" +LICENSE="Apache-2.0" +SLOT="0" + +S="${WORKDIR}" + +# A JRE is not strictly required if native images of scala-cli are used +# (amd64, arm64). However we may want a system JRE anways so that the +# chances are less reduced scala-cli needs to install a local one. +RDEPEND=" + >=virtual/jre-11 + sys-libs/zlib +" + +QA_TEXTRELS="*" +QA_FLAGS_IGNORED="/usr/bin/scala-cli" + +src_prepare() { + default + + if use amd64; then + mv scala-cli-amd64-${PV} scala-cli || die + elif use arm64; then + mv scala-cli-arm64-${PV} scala-cli || die + else + mv scala-cli-non-native-${PV} scala-cli || die + fi + + chmod +x scala-cli || die +} + +src_compile() { + for shell in bash zsh; do + ./scala-cli install-completions \ + --home "${T}" \ + --shell ${shell} \ + --env \ + --output "${S}" \ + > ${shell}-completion || die + done +} + +src_install() { + dobin scala-cli + + newbashcomp bash-completion scala-cli + + insinto /usr/share/zsh/site-functions + doins zsh/_scala-cli +} |