From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 13A0E15812D for ; Thu, 02 Jan 2025 14:35:37 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2084CE084A; Thu, 02 Jan 2025 14:35:36 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 1E147E084A for ; Thu, 02 Jan 2025 14:35:34 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 0734933BE12 for ; Thu, 02 Jan 2025 14:35:33 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 668171909 for ; Thu, 02 Jan 2025 14:35:31 +0000 (UTC) From: "Florian Schmaus" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Florian Schmaus" Message-ID: <1735828495.d0c021643e3f72246ac9a27b3bb9256bc77ad56f.flow@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-java/scala-cli-bin/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-java/scala-cli-bin/Manifest dev-java/scala-cli-bin/scala-cli-bin-1.5.4.ebuild X-VCS-Directories: dev-java/scala-cli-bin/ X-VCS-Committer: flow X-VCS-Committer-Name: Florian Schmaus X-VCS-Revision: d0c021643e3f72246ac9a27b3bb9256bc77ad56f X-VCS-Branch: master Date: Thu, 02 Jan 2025 14:35:31 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: e41f20a2-9553-4b5f-afb7-c4eac91b89e5 X-Archives-Hash: e24cd64be3d69af5d16b07c4d1feebea commit: d0c021643e3f72246ac9a27b3bb9256bc77ad56f Author: Florian Schmaus gentoo org> AuthorDate: Thu Jan 2 14:33:57 2025 +0000 Commit: Florian Schmaus gentoo org> CommitDate: Thu Jan 2 14:34:55 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d0c02164 dev-java/scala-cli-bin: add 1.5.4 Signed-off-by: Florian Schmaus gentoo.org> dev-java/scala-cli-bin/Manifest | 3 + dev-java/scala-cli-bin/scala-cli-bin-1.5.4.ebuild | 78 +++++++++++++++++++++++ 2 files changed, 81 insertions(+) diff --git a/dev-java/scala-cli-bin/Manifest b/dev-java/scala-cli-bin/Manifest index 58df934e0a5f..6d82f7da4276 100644 --- a/dev-java/scala-cli-bin/Manifest +++ b/dev-java/scala-cli-bin/Manifest @@ -1,3 +1,6 @@ DIST scala-cli-amd64-1.5.1.gz 34375992 BLAKE2B 4af5f420df9ef15e4252bc65dc17b3c9df516e784cf5d5e48cc93686c6a068e13b5098c552d8c9155739eb56cecb7e410289025f3281135b9d7d4cfc5e0d5cd5 SHA512 0adcc503fd7de00d0df97c5c31c7fca18e6ce4e6f91b8a07ae4f94107b289f7301513d22ab6ab06f74a956b0ceb648cd487105ab5289c477c52287466e1d6e45 +DIST scala-cli-amd64-1.5.4.gz 34280702 BLAKE2B 9bbfa286a66bfb41dce3222496a302b30f45c021cf2c82a3657c4de786f91ce79b4c551213bbaa4cc3ca34b289c9c440203aeb65093633f79df538881c5cb08e SHA512 bc905499117e24b78c5beca91fb4cf34063c2bb48000b920c085346ae11db15b9c0905ec6846794ac706bd06874130e8981a2f5ff4a47f5f93a1238e530e3709 DIST scala-cli-arm64-1.5.1.gz 34284162 BLAKE2B 1db3c49d52a47ab276600d6e29179a920256ba56262cac0368dd8e8ddfd6f1b570a5124b64bc4005a7212801ad8615997a3f91f807e878a989e1359d053ea10e SHA512 026cfde5c108df8d91acf3394a53dfb49a962cd6ac1a1be78c4601afa4823d410205ad147bb8830b17923d209a0333d75b50dede1a00208081f64928e4198364 +DIST scala-cli-arm64-1.5.4.gz 34215069 BLAKE2B 0e54f4580a5c28c8992ca48ed96e5d31104016320060c2e56c1687267211b03401ed3f5486138f80abe5349bd218bf86966c9f57d44240aa6a2416e7af52f797 SHA512 ad90eb6436f1d82d9625cce250fc5c8d614dab9d9918dd8243993a5df6648f91f4969df96ead50774cf9712d22f161a5852ba47746f89b27f8225850f3f3395d DIST scala-cli-non-native-1.5.1 8105280 BLAKE2B 2957eeda0c27f6c91de9cb36f103d5f9bfdcff5110e8c5b51c6067c756c1592f6e5e94f59b9471260bcd50369f50874ca6901466e4bc2e654e51c3666763620e SHA512 600b66c8db534f6e04c8a3ada969b998bb5923e9ec2322dc1919032c4221bfb3c259dda7abdf7f862d9693d4658fedef607d6a85094d1e6c6ed7f4655d9a8146 +DIST scala-cli-non-native-1.5.4 8122943 BLAKE2B 10e3ef02dcdc72e3d3ca0de693242d82ea18fc6358c955a71be77a0086bd6f67ec7ceddabb1746a00f125a55a0bad2800d54dfc0d94fc53cbd6ffb8ae185f604 SHA512 f0068a4b7f338b5fd59020270a2fb7bc15773bee3fb12a52311ef3b587e2ceb7f3cbe81480d2198e68f3bb1997f2861ddd90f89a7c7bc0c153d4f541075fa6c3 diff --git a/dev-java/scala-cli-bin/scala-cli-bin-1.5.4.ebuild b/dev-java/scala-cli-bin/scala-cli-bin-1.5.4.ebuild new file mode 100644 index 000000000000..8265419c2174 --- /dev/null +++ b/dev-java/scala-cli-bin/scala-cli-bin-1.5.4.ebuild @@ -0,0 +1,78 @@ +# Copyright 1999-2025 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 + ) +" + +S="${WORKDIR}" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~arm64" + +# 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 +}