diff options
author | Florian Schmaus <flo@geekplace.eu> | 2021-06-08 15:12:54 +0200 |
---|---|---|
committer | Patrice Clement <monsieurp@gentoo.org> | 2021-06-08 15:25:16 +0200 |
commit | ab949a71e4b7749694cea921e96786b1667a7524 (patch) | |
tree | 782f068d868ad80b3c45a3256d0df1a6dd942d5a /dev-lang/scala-bin/scala-bin-2.13.6.ebuild | |
parent | www-client/luakit: sync live (diff) | |
download | gentoo-ab949a71e4b7749694cea921e96786b1667a7524.tar.gz gentoo-ab949a71e4b7749694cea921e96786b1667a7524.tar.bz2 gentoo-ab949a71e4b7749694cea921e96786b1667a7524.zip |
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 <flo@geekplace.eu>
Closes: https://github.com/gentoo/gentoo/pull/21160
Signed-off-by: Patrice Clement <monsieurp@gentoo.org>
Diffstat (limited to 'dev-lang/scala-bin/scala-bin-2.13.6.ebuild')
-rw-r--r-- | dev-lang/scala-bin/scala-bin-2.13.6.ebuild | 77 |
1 files changed, 77 insertions, 0 deletions
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 000000000000..cdb8e4a5f113 --- /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 +} |