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 (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 9BE3E15800F for ; Fri, 10 Feb 2023 13:03:49 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E5A35E0875; Fri, 10 Feb 2023 13:03:48 +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)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id C8B6BE0875 for ; Fri, 10 Feb 2023 13:03:48 +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)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id ED76C340D4C for ; Fri, 10 Feb 2023 13:03:47 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 400D4891 for ; Fri, 10 Feb 2023 13:03:46 +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: <1676034207.c05c68d65212c0e2ed02bfa8f1ec3fce0508939d.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/metadata.xml dev-java/scala-cli-bin/scala-cli-bin-0.1.20.ebuild X-VCS-Directories: dev-java/scala-cli-bin/ X-VCS-Committer: flow X-VCS-Committer-Name: Florian Schmaus X-VCS-Revision: c05c68d65212c0e2ed02bfa8f1ec3fce0508939d X-VCS-Branch: master Date: Fri, 10 Feb 2023 13:03:46 +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: 42e85a9a-7379-4093-8d29-4e8eae4ed96f X-Archives-Hash: 41fbb096703e9be1d71441c4bc1a0c2e commit: c05c68d65212c0e2ed02bfa8f1ec3fce0508939d Author: Florian Schmaus gentoo org> AuthorDate: Fri Feb 10 13:01:22 2023 +0000 Commit: Florian Schmaus gentoo org> CommitDate: Fri Feb 10 13:03:27 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c05c68d6 dev-java/scala-cli-bin: new package, add 0.1.20 Signed-off-by: Florian Schmaus gentoo.org> dev-java/scala-cli-bin/Manifest | 3 + dev-java/scala-cli-bin/metadata.xml | 12 ++++ dev-java/scala-cli-bin/scala-cli-bin-0.1.20.ebuild | 65 ++++++++++++++++++++++ 3 files changed, 80 insertions(+) diff --git a/dev-java/scala-cli-bin/Manifest b/dev-java/scala-cli-bin/Manifest new file mode 100644 index 000000000000..77747f4f6c83 --- /dev/null +++ b/dev-java/scala-cli-bin/Manifest @@ -0,0 +1,3 @@ +DIST scala-cli-amd64-0.1.20.gz 32520802 BLAKE2B b032e7ed3c5e340e03bbddde6b00289da7f7a7017266cd6f6b1500540a5c81d453180a88e11b3590a26e2188cf2206ac6fa4089b9f85cfce5745a7b15a5b44ee SHA512 a08632992fb9bf811f88b267ef587de673a5f59b5ba0e1d6b49aaf4057328cd738519afeb7f76a96ef569376b3d34dc11f4891729b5cbd900b0d8b348a0f3566 +DIST scala-cli-arm64-0.1.20.gz 32342696 BLAKE2B 54189891dce54d09869e5a0800683cf53e5613bb9ac74c137dbbbbdfea4e06f4a35dad07ec97db81e69a9fd704b1f44bda8b7466bdddaf9fdab07ca0a051d91f SHA512 040d287566f06b4d14a58cd9340ac15d8afa124d536053c0ee13db6d64e463162f7f2556004d593381377cc73b3a9075ee688937de4591fe6aa4a5cfe5121808 +DIST scala-cli-non-native-0.1.20 9239916 BLAKE2B 15d45ecd9b20cb5184626bd518b373e4ba12948b6fd14c11a55923118aa0e690ec0ffadd64c613a206555c3e2fbb580339c8b3cf3b9e039aea04551d5ce4f238 SHA512 1f7c8d22ae94bf79cd6d139ecbf4d73e2009a3ad727404051716e531271e01c31b252174e9b039bfcffa997d6ab9f18f0e30de7834de8f92ddbb0ad140a572e7 diff --git a/dev-java/scala-cli-bin/metadata.xml b/dev-java/scala-cli-bin/metadata.xml new file mode 100644 index 000000000000..c4efbfd85748 --- /dev/null +++ b/dev-java/scala-cli-bin/metadata.xml @@ -0,0 +1,12 @@ + + + + + flow@gentoo.org + Florian Schmaus + + + VirtusLab/scala-cli + https://github.com/VirtusLab/scala-cli/issues + + diff --git a/dev-java/scala-cli-bin/scala-cli-bin-0.1.20.ebuild b/dev-java/scala-cli-bin/scala-cli-bin-0.1.20.ebuild new file mode 100644 index 000000000000..c2bab1ad0205 --- /dev/null +++ b/dev-java/scala-cli-bin/scala-cli-bin-0.1.20.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 +}