diff options
author | Florian Schmaus <flow@gentoo.org> | 2022-09-28 17:38:31 +0200 |
---|---|---|
committer | Florian Schmaus <flow@gentoo.org> | 2022-09-28 17:39:46 +0200 |
commit | e35d7d6b7a1e56e29fb6e515693208ab0ba370c9 (patch) | |
tree | 0bdc6a9940a99d6d9b88e173c8a85d0d95acdb6c /dev-lang | |
parent | dev-python/matplotlib: Keyword 3.6.0-r1 riscv, #872620 (diff) | |
download | gentoo-e35d7d6b7a1e56e29fb6e515693208ab0ba370c9.tar.gz gentoo-e35d7d6b7a1e56e29fb6e515693208ab0ba370c9.tar.bz2 gentoo-e35d7d6b7a1e56e29fb6e515693208ab0ba370c9.zip |
dev-lang/scala-bin: add 2.13.9
Bug: https://bugs.gentoo.org/872695
Signed-off-by: Florian Schmaus <flow@gentoo.org>
Diffstat (limited to 'dev-lang')
-rw-r--r-- | dev-lang/scala-bin/Manifest | 1 | ||||
-rw-r--r-- | dev-lang/scala-bin/scala-bin-2.13.9.ebuild | 77 |
2 files changed, 78 insertions, 0 deletions
diff --git a/dev-lang/scala-bin/Manifest b/dev-lang/scala-bin/Manifest index 23816a53fc3a..bc6b95ce2154 100644 --- a/dev-lang/scala-bin/Manifest +++ b/dev-lang/scala-bin/Manifest @@ -1 +1,2 @@ DIST scala-2.13.6.tgz 23407489 BLAKE2B b65db49968dcbce2f5586aafaa4cd437156050050f209cce4a7d5edc18dfca3ebb60d2a726b4a26902723f993b78a673909c1139eb67e8eea4f35a4842b33c70 SHA512 445267cd7c1ddb8ef94d2edeb36567318c66429c88fcb183840998dc204a10253df09c33eb4de2f87b68b1a8cd4f557910fa3f061d4316314653eb64e91c0188 +DIST scala-2.13.9.tgz 23602967 BLAKE2B 93bbee93562143c72a4bdcfa3e7a8257064474cf38a2de448444bc5639f54e0ef17b9361e7144b39b3040b97683c2674bcc7611fc770c2fa985d9d0d9fd403d3 SHA512 da808ea65fe66c83dc55873662de92647675a2da15b87fb719f1c76d29588f725a466d8519c53f4c521d4defc7b66c023e52a6b264c58117f321ddcf50ebd2a6 diff --git a/dev-lang/scala-bin/scala-bin-2.13.9.ebuild b/dev-lang/scala-bin/scala-bin-2.13.9.ebuild new file mode 100644 index 000000000000..1f9dc34f8e61 --- /dev/null +++ b/dev-lang/scala-bin/scala-bin-2.13.9.ebuild @@ -0,0 +1,77 @@ +# Copyright 1999-2022 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="https://scala.epfl.ch/" +SRC_URI="https://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 +} |