dev-lang/scala-bin: version bump.
authorPatrice Clement <monsieurp@gentoo.org>
Tue, 31 Mar 2020 18:18:09 +0000 (20:18 +0200)
committerPatrice Clement <monsieurp@gentoo.org>
Tue, 31 Mar 2020 18:18:53 +0000 (20:18 +0200)
Package-Manager: Portage-2.3.89, Repoman-2.3.20
Signed-off-by: Patrice Clement <monsieurp@gentoo.org>
dev-lang/scala-bin/Manifest
dev-lang/scala-bin/scala-bin-2.13.1.ebuild [new file with mode: 0644]

index 28df49eaab8319f638fb1bbc6c701b3ad68be230..f631039e86272ee69496e63f2206e3f42d051bf3 100644 (file)
@@ -1 +1,2 @@
 DIST scala-2.12.4.tgz 19741785 BLAKE2B e782a4ac000ffcebc2faaac077cbb3cc13f8cc56deb9b3a78f1bddd3d0e6fd282d70f10cfef0780e4ab6a13e8d51b0401f84829b7974bd8823aecab54476ab02 SHA512 e6a9e11974d3bacc5f5dcdfdb379bdd1b430b1682141bed688f02f8b49395aff7c55cdb8da3319dff55da7bd7cfe7545e9b26db9558316ac8b3e29f6bb2c6d74
+DIST scala-2.13.1.tgz 19685743 BLAKE2B aaff6db71023f539d08da521ab1ff505a626605d9c298472d0c2e98a9a13d6b8440e89cf5ff4a53b7b9bcc48cbc1e3b55cc253563f54f18c369e13fc8c00a6c2 SHA512 028aa237c471cada1501cd5764b3c384c3f50e9fc327cddd3fa7c79e9cc909d86bf84d5fc28103054600f879a60c546fc45a837cdca54964eb57ec77f9c1613e
diff --git a/dev-lang/scala-bin/scala-bin-2.13.1.ebuild b/dev-lang/scala-bin/scala-bin-2.13.1.ebuild
new file mode 100644 (file)
index 0000000..27531fa
--- /dev/null
@@ -0,0 +1,76 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+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="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc"
+
+RDEPEND="
+       >=virtual/jre-1.6
+       !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
+}