summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Schmaus <flow@gentoo.org>2023-07-17 21:48:38 +0200
committerFlorian Schmaus <flow@gentoo.org>2023-07-17 22:05:31 +0200
commitae9d2720be9922d7037dfc4226092097f55ca20f (patch)
tree749057b2706daa9962bc6ba6cd0fbcb3785bebc8 /dev-java/scala-cli-bin
parentdev-python/numpy: allow cython-3 (diff)
downloadgentoo-ae9d2720be9922d7037dfc4226092097f55ca20f.tar.gz
gentoo-ae9d2720be9922d7037dfc4226092097f55ca20f.tar.bz2
gentoo-ae9d2720be9922d7037dfc4226092097f55ca20f.zip
dev-java/scala-cli-bin: add 1.0.2
Signed-off-by: Florian Schmaus <flow@gentoo.org>
Diffstat (limited to 'dev-java/scala-cli-bin')
-rw-r--r--dev-java/scala-cli-bin/Manifest3
-rw-r--r--dev-java/scala-cli-bin/scala-cli-bin-1.0.2.ebuild78
2 files changed, 81 insertions, 0 deletions
diff --git a/dev-java/scala-cli-bin/Manifest b/dev-java/scala-cli-bin/Manifest
index 9dce4c2d5f13..d28575079b1b 100644
--- a/dev-java/scala-cli-bin/Manifest
+++ b/dev-java/scala-cli-bin/Manifest
@@ -1,9 +1,12 @@
DIST scala-cli-amd64-0.2.1.gz 32642273 BLAKE2B f30dde2a5408032942e5676b0274473fe0db6ccab9e74830c33fa37a8283438cc848fda15d79f076be1eeb45f0463769acc4f82b2e0fc4a1c0e141c9df40d502 SHA512 773206656b35dea9312f8c8a2db6cd98e1a7c0d03840f661185f276b69dcc1dafe699e1db3cdfb9fd2891fec56cc6ad1cf03e7e53761afd9a1f3596fae31e05c
DIST scala-cli-amd64-1.0.0.gz 33061895 BLAKE2B 9261617e7f9ed15ce8294eedcec2c81ad60d72b83663fb97559fa68b3578706637316e0e58966d690e64147743dcdf81e3e1f41d6bb9ebf55414e316370d7ec1 SHA512 6a37fae85faa2965ea816f2a72e89300e66bdd3ef741ba5bff575a8127255866822575b3708d2bd63d89f4a812d368bc7796494c90def8c2498f956e4b229264
DIST scala-cli-amd64-1.0.1.gz 33066567 BLAKE2B 6f03e9f825b901344de61ddda2df5b899f99ce5c5b7ce64e5db3aa81b5c35808e50f3cae453554dc567fb4e1801ff6accc186480a4a9813005b8564558315ac6 SHA512 a9a51320e160692b49cb41637a89aa1adef89eab6c4cebe19cb7600b9b7fae963f9b9522b6d77a9b2d845ec652ba7533b6090a42b3383725ce56c6e7f32512e7
+DIST scala-cli-amd64-1.0.2.gz 33215510 BLAKE2B 288475cbd346260423188b4db038dd8cce2f5885bf0346e8a74b08cd02a2c44204fec37aaf6207ff6447beb4740df725bae6a0a129682ebedc1028ae5f0ec316 SHA512 ac18b43bd37717b2aab6b1056b727aba40f57eed33d1fc5f1903c3729f0344ed30ed595f2a60bff2c65ee3a6d4439e8ee4bcf95fc38baf059d4a66de9696cded
DIST scala-cli-arm64-0.2.1.gz 32498301 BLAKE2B 6ffd39f37bbcd33a59855e7226435dfea6ae99bc5cf30d182cd6920636e6b2e9ff627bd028b90f7cfbff4ed1829545697fe839290990d2938a24c64784f7e549 SHA512 b6609cb52bdfd4dffe4060343c652b477b5730c1f3f5f7267a39577c13e894b23982bfe80ae065472103bcbd1573675434e91128d31cbf3c83242f9aa60243b1
DIST scala-cli-arm64-1.0.0.gz 32902399 BLAKE2B deff1fad9204572aafa8da88cb368d85e0ec39a51d71b00eed0a1933ea713cbeafd1cff3ec882eb32283770f1eb741e32969fa1e75aa46a6b6aab542a5d23447 SHA512 e6020c305d8ed06f8531994483079ee095f0d2bd9a0095ec417929620ee3e6a45507214a6f68756b70518af20d53e64b531793bb940872921302ad4f6566972c
DIST scala-cli-arm64-1.0.1.gz 32915001 BLAKE2B db6e34f3534c3ffb873000893c0b07df26d91710b6de0075669fbf51a0f238303c77e7953a890eb50eac54087cf2ac77e916d3e1765b7e2b7de1145e0b1d605e SHA512 90a1c550e898b429ab8bc3722a40cb90752d7ee9c41fd61018f58d761704b5cd8b8b6b3381e3f7c3a9b3e7fffabf9b46bfa8cb4336604392b6443c1554f6482f
+DIST scala-cli-arm64-1.0.2.gz 33058672 BLAKE2B a82b18eec6235100cbbd7ff1503283e5ef29ba0798f67b44f69b329aa0f1f525cc910a7b4a923f98c8b113d06bac6e1c5ba963d62204462635ef4eed3d0b7f85 SHA512 b1dc9de26d30336f283202aa23ba1c76baddcea21d4c8c4c0e5114de979c62ba3e2b483302d4f396c84e802497127a36d589dae2826f76e1d02760314f6f0765
DIST scala-cli-non-native-0.2.1 9468051 BLAKE2B 9a9b5694261b769fafa3f3747f5e83869324e341f264dbfa463382e217acd5a2c994fb6e67e9e36175d97520938a40add424f5e9a77c62056eec6a828d4ea61a SHA512 547e9786527b7e7d34f4f912a6b9ae0c8f15eca3aa90f11f704283c63e5105363464f1e81f6dbb363fa71fb17e3e48b4db86e70f3b37b5059c40c02cd47382f5
DIST scala-cli-non-native-1.0.0 9540019 BLAKE2B fd7c920216fbba76be116cac2a2439ee0f983dbb1811e60a7095611b75bd1af86e8597f74dab4e994f3dd73694e2c93b910f9162e0fe8d4c8ada3f0012fb8b35 SHA512 6e09be3adf75f957a787b5cb5031824892d0606742ae12988b008d0fab1c743f2dff7169a547d77795af78679bde051a8f457284f339990bb343807e47005499
DIST scala-cli-non-native-1.0.1 9554667 BLAKE2B bac0d8b61cf2a14386791dd27cf3ebfbafccfaec5e13aa223d41bfd6ee30c3f1252ba903e2cc0434920633dcfa3c35e67f647f10713956f8fd372899b301562d SHA512 54029ad8ade9fffc8334ffedeaddd604ac75027447b0d7835db318909dc44946dfb039e0dcae4c3da8349922ee9af65d0d7cef389fdae2d11d5cac7d900e7504
+DIST scala-cli-non-native-1.0.2 9633113 BLAKE2B d63fe324533393158ac945c3070843787c844584c3f8bdc141f6106fa22adf244c2ca5e010801c549b0a56ecf500495c754ed9e6186f74359b373c4d776645ff SHA512 c6e6262af236a315960a3d16dfebc7adaf88f830d43e68f89220f2cf250d57d083bd2b9231fd13a0b3adc723ed17200592b55a2a17ccd582b9cc3ceebf52a29b
diff --git a/dev-java/scala-cli-bin/scala-cli-bin-1.0.2.ebuild b/dev-java/scala-cli-bin/scala-cli-bin-1.0.2.ebuild
new file mode 100644
index 000000000000..10fc71222c73
--- /dev/null
+++ b/dev-java/scala-cli-bin/scala-cli-bin-1.0.2.ebuild
@@ -0,0 +1,78 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit bash-completion-r1
+
+UPSTREAM_PV=${PV/_/-}
+UPSTREAM_PV=${UPSTREAM_PV/rc/RC}
+
+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${UPSTREAM_PV}/scala-cli
+ -> scala-cli-non-native-${UPSTREAM_PV}
+ ) )
+ amd64? (
+ https://github.com/VirtusLab/scala-cli/releases/download/v${UPSTREAM_PV}/scala-cli-x86_64-pc-linux.gz
+ -> scala-cli-amd64-${UPSTREAM_PV}.gz
+ )
+ arm64? (
+ https://github.com/VirtusLab/scala-cli/releases/download/v${UPSTREAM_PV}/scala-cli-aarch64-pc-linux.gz
+ -> scala-cli-arm64-${UPSTREAM_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 anyway, and having JRE
+# in RDEPEND reduces the chances that scala-cli needs to install one
+# for the user.
+RDEPEND="
+ >=virtual/jre-11
+ sys-libs/zlib
+"
+BDEPEND="!amd64? ( !arm64? ( >=virtual/jre-11 ) )"
+
+QA_TEXTRELS="*"
+QA_FLAGS_IGNORED="/usr/bin/scala-cli"
+
+src_prepare() {
+ default
+
+ if use amd64; then
+ mv scala-cli-amd64-${UPSTREAM_PV} scala-cli || die
+ elif use arm64; then
+ mv scala-cli-arm64-${UPSTREAM_PV} scala-cli || die
+ else
+ mv scala-cli-non-native-${UPSTREAM_PV} scala-cli || die
+ fi
+
+ chmod +x scala-cli || die
+}
+
+src_compile() {
+ for shell in bash zsh; do
+ ./scala-cli install-completions \
+ --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
+}