diff options
author | Patrice Clement <monsieurp@gentoo.org> | 2018-01-05 15:57:01 +0100 |
---|---|---|
committer | Patrice Clement <monsieurp@gentoo.org> | 2018-01-05 16:02:06 +0100 |
commit | f8c36299f3bcbb92a39644f67619b19bab204a75 (patch) | |
tree | 963320f64f5c491be06368af28343beb4bd55292 /dev-lang/scala-bin | |
parent | dev-db/etcd: Remove old (diff) | |
download | gentoo-f8c36299f3bcbb92a39644f67619b19bab204a75.tar.gz gentoo-f8c36299f3bcbb92a39644f67619b19bab204a75.tar.bz2 gentoo-f8c36299f3bcbb92a39644f67619b19bab204a75.zip |
dev-lang/scala-bin: version bump.
Package-Manager: Portage-2.3.13, Repoman-2.3.3
Diffstat (limited to 'dev-lang/scala-bin')
-rw-r--r-- | dev-lang/scala-bin/Manifest | 1 | ||||
-rw-r--r-- | dev-lang/scala-bin/scala-bin-2.12.4.ebuild | 79 |
2 files changed, 80 insertions, 0 deletions
diff --git a/dev-lang/scala-bin/Manifest b/dev-lang/scala-bin/Manifest index ddc24750b2f4..a491439fc321 100644 --- a/dev-lang/scala-bin/Manifest +++ b/dev-lang/scala-bin/Manifest @@ -1 +1,2 @@ DIST scala-2.11.8.tgz 28678231 BLAKE2B 3e75e941112afb094e99be76fa7d039b27a32b1cedd645bad43b776ee9136f6ac3951eabe7c7182280f442050a3c7c658d49906b42004965128dd048d2ad73d2 SHA512 c00a0eaa4317c3ffbdbbd9c817f06c5262f0549f22bd7f1886cc22643e34e8909648bbfb58f3a63c453baf045381a52128ff0b18b7a39274ef03aad7daea9fdf +DIST scala-2.12.4.tgz 19741785 BLAKE2B e782a4ac000ffcebc2faaac077cbb3cc13f8cc56deb9b3a78f1bddd3d0e6fd282d70f10cfef0780e4ab6a13e8d51b0401f84829b7974bd8823aecab54476ab02 SHA512 e6a9e11974d3bacc5f5dcdfdb379bdd1b430b1682141bed688f02f8b49395aff7c55cdb8da3319dff55da7bd7cfe7545e9b26db9558316ac8b3e29f6bb2c6d74 diff --git a/dev-lang/scala-bin/scala-bin-2.12.4.ebuild b/dev-lang/scala-bin/scala-bin-2.12.4.ebuild new file mode 100644 index 000000000000..40d1bd762124 --- /dev/null +++ b/dev-lang/scala-bin/scala-bin-2.12.4.ebuild @@ -0,0 +1,79 @@ +# Copyright 1999-2018 Gentoo Foundation +# 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 + java-pkg_newjar scala-parser-combinators_*.jar scala-parser-combinators.jar + java-pkg_newjar scala-swing_*.jar scala-swing.jar + java-pkg_newjar scala-xml_*.jar scala-xml.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 +} |