commit: 95ad330ee15476ba1db1427c0df754aaa95535f0 Author: Florian Schmaus <flow <AT> gentoo <DOT> org> AuthorDate: Wed Apr 26 09:34:53 2023 +0000 Commit: Florian Schmaus <flow <AT> gentoo <DOT> org> CommitDate: Wed Apr 26 09:37:55 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=95ad330e
dev-java/scala-cli-bin: add 1.0.0_rc1 Signed-off-by: Florian Schmaus <flow <AT> gentoo.org> dev-java/scala-cli-bin/Manifest | 3 + .../scala-cli-bin/scala-cli-bin-1.0.0_rc1.ebuild | 78 ++++++++++++++++++++++ 2 files changed, 81 insertions(+) diff --git a/dev-java/scala-cli-bin/Manifest b/dev-java/scala-cli-bin/Manifest index 9a5a4e3ea236..22c6709610b0 100644 --- a/dev-java/scala-cli-bin/Manifest +++ b/dev-java/scala-cli-bin/Manifest @@ -1,9 +1,12 @@ 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-amd64-0.2.1.gz 32642273 BLAKE2B f30dde2a5408032942e5676b0274473fe0db6ccab9e74830c33fa37a8283438cc848fda15d79f076be1eeb45f0463769acc4f82b2e0fc4a1c0e141c9df40d502 SHA512 773206656b35dea9312f8c8a2db6cd98e1a7c0d03840f661185f276b69dcc1dafe699e1db3cdfb9fd2891fec56cc6ad1cf03e7e53761afd9a1f3596fae31e05c +DIST scala-cli-amd64-1.0.0-RC1.gz 32431480 BLAKE2B 3ac9aa93a109493288397ca595c7364a79530a601baa2fdd11f6f0e618f9c1fb07068eb05a8242a5fcc00efc213b8225a60b8e2e75ef5dec782280665cad0cc8 SHA512 559fb6caa346e370b93778da5266b8d009cd4335e3a7baeee090c14110dcdf87fb45bee7c00eab50f3df875d88378dcfc0f6ef4a61cf8522918f9d49337e0767 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-arm64-0.2.1.gz 32498301 BLAKE2B 6ffd39f37bbcd33a59855e7226435dfea6ae99bc5cf30d182cd6920636e6b2e9ff627bd028b90f7cfbff4ed1829545697fe839290990d2938a24c64784f7e549 SHA512 b6609cb52bdfd4dffe4060343c652b477b5730c1f3f5f7267a39577c13e894b23982bfe80ae065472103bcbd1573675434e91128d31cbf3c83242f9aa60243b1 +DIST scala-cli-arm64-1.0.0-RC1.gz 32263782 BLAKE2B 4131187460fb9f4236d35ebe2e63913812eba85eb8a862f2f02b681a6914b1a21f1f426e6411cff14f6309d0a7e91e2ff7f61b0336245d178f38747d953473dc SHA512 c43ecaf1638c4aa092d2a823a931ceea77cebd940907a8c781caa7c526411a5c2c50a7468ef6efab816d9d26d6769c0df421abc60f099992b489478e804ec52e 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 DIST scala-cli-non-native-0.2.1 9468051 BLAKE2B 9a9b5694261b769fafa3f3747f5e83869324e341f264dbfa463382e217acd5a2c994fb6e67e9e36175d97520938a40add424f5e9a77c62056eec6a828d4ea61a SHA512 547e9786527b7e7d34f4f912a6b9ae0c8f15eca3aa90f11f704283c63e5105363464f1e81f6dbb363fa71fb17e3e48b4db86e70f3b37b5059c40c02cd47382f5 +DIST scala-cli-non-native-1.0.0-RC1 9560878 BLAKE2B a0e8a86f61c5d9baa9dd36fdd2abd974063bab40644cfafd6f93f917c10f3cae2b665a19058641f61f75f11b614415db5d624d1397c061fed299b32059919faf SHA512 9b8c2b0868ed38601c5f992fae425d486ca5ac026fa664a404ba0ef4813ea9351f196a694e111fe2bbf2ccaa17257982feee91a85444d778f6a3d20f6347a438 diff --git a/dev-java/scala-cli-bin/scala-cli-bin-1.0.0_rc1.ebuild b/dev-java/scala-cli-bin/scala-cli-bin-1.0.0_rc1.ebuild new file mode 100644 index 000000000000..92f68c415997 --- /dev/null +++ b/dev-java/scala-cli-bin/scala-cli-bin-1.0.0_rc1.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 +" +BEPEND="!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 +}