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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id F18DB1382C5 for ; Tue, 8 Jun 2021 13:25:21 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3E3ECE082B; Tue, 8 Jun 2021 13:25:21 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id E73D4E082B for ; Tue, 8 Jun 2021 13:25:20 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id D11C733C6B6 for ; Tue, 8 Jun 2021 13:25:19 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 6683274A for ; Tue, 8 Jun 2021 13:25:18 +0000 (UTC) From: "Patrice Clement" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Patrice Clement" Message-ID: <1623158716.ab949a71e4b7749694cea921e96786b1667a7524.monsieurp@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-lang/scala-bin/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-lang/scala-bin/Manifest dev-lang/scala-bin/scala-bin-2.13.6.ebuild X-VCS-Directories: dev-lang/scala-bin/ X-VCS-Committer: monsieurp X-VCS-Committer-Name: Patrice Clement X-VCS-Revision: ab949a71e4b7749694cea921e96786b1667a7524 X-VCS-Branch: master Date: Tue, 8 Jun 2021 13:25:18 +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: 446196b8-b75e-46e8-8277-ff8f52326a61 X-Archives-Hash: 038effeb85bbc186dc5c15b08a8a0a1d commit: ab949a71e4b7749694cea921e96786b1667a7524 Author: Florian Schmaus geekplace eu> AuthorDate: Tue Jun 8 13:12:54 2021 +0000 Commit: Patrice Clement gentoo org> CommitDate: Tue Jun 8 13:25:16 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ab949a71 dev-lang/scala-bin: add 2.13.6. This introduces the following changes to the ebuild: - correct license to Apache-2.0 - increase virutal/jre RDEPEND requirement to 1.8 - bump EAPI to 7 - update copyright header year to 2021 Signed-off-by: Florian Schmaus geekplace.eu> Closes: https://github.com/gentoo/gentoo/pull/21160 Signed-off-by: Patrice Clement gentoo.org> dev-lang/scala-bin/Manifest | 1 + dev-lang/scala-bin/scala-bin-2.13.6.ebuild | 77 ++++++++++++++++++++++++++++++ 2 files changed, 78 insertions(+) diff --git a/dev-lang/scala-bin/Manifest b/dev-lang/scala-bin/Manifest index 46dcb484038..3d736c36968 100644 --- a/dev-lang/scala-bin/Manifest +++ b/dev-lang/scala-bin/Manifest @@ -1 +1,2 @@ DIST scala-2.13.1.tgz 19685743 BLAKE2B aaff6db71023f539d08da521ab1ff505a626605d9c298472d0c2e98a9a13d6b8440e89cf5ff4a53b7b9bcc48cbc1e3b55cc253563f54f18c369e13fc8c00a6c2 SHA512 028aa237c471cada1501cd5764b3c384c3f50e9fc327cddd3fa7c79e9cc909d86bf84d5fc28103054600f879a60c546fc45a837cdca54964eb57ec77f9c1613e +DIST scala-2.13.6.tgz 23407489 BLAKE2B b65db49968dcbce2f5586aafaa4cd437156050050f209cce4a7d5edc18dfca3ebb60d2a726b4a26902723f993b78a673909c1139eb67e8eea4f35a4842b33c70 SHA512 445267cd7c1ddb8ef94d2edeb36567318c66429c88fcb183840998dc204a10253df09c33eb4de2f87b68b1a8cd4f557910fa3f061d4316314653eb64e91c0188 diff --git a/dev-lang/scala-bin/scala-bin-2.13.6.ebuild b/dev-lang/scala-bin/scala-bin-2.13.6.ebuild new file mode 100644 index 00000000000..cdb8e4a5f11 --- /dev/null +++ b/dev-lang/scala-bin/scala-bin-2.13.6.ebuild @@ -0,0 +1,77 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +JAVA_PKG_IUSE="doc" + +inherit java-pkg-2 + +MY_PN="${PN%-*}" +MY_P="${MY_PN}-${PV}" + +DESCRIPTION="The Scala Programming Language" +HOMEPAGE="http://scala.epfl.ch/" +SRC_URI="http://downloads.lightbend.com/${MY_PN}/${PV}/${MY_P}.tgz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="doc" + +RDEPEND=" + >=virtual/jre-1.8 + !dev-lang/scala" + +S="${WORKDIR}/${MY_P}" + +src_prepare() { + default + ebegin 'Cleaning .bat files' + rm -f bin/*.bat || die + eend $? + + ebegin 'Patching SCALA_HOME variable in bin/ directory' + local f + for f in bin/*; do + sed -i -e 's#\(SCALA_HOME\)=.*#\1=/usr/share/scala-bin#' "$f" || die + done + eend $? +} + +src_compile() { + :; +} + +src_install() { + ebegin 'Installing bin scripts' + dobin bin/* + eend $? + + ebegin 'Installing jar files' + + cd lib/ || die + + # Unversion those libs. + java-pkg_newjar jline-*.jar jline.jar + java-pkg_newjar scalap-*.jar scalap.jar + + # Install these the usual way. + java-pkg_dojar scala-compiler.jar + java-pkg_dojar scala-library.jar + java-pkg_dojar scala-reflect.jar + + eend $? + + cd ../ || die + + ebegin 'Installing man pages' + doman man/man1/*.1 + eend $? + + if use doc; then + ebegin 'Installing documentation' + java-pkg_dohtml -r doc/tools + eend $? + fi +}