diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-09-28 21:15:05 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-09-28 21:15:05 +0100 |
commit | bd7d7f7f69423122e08209eefb1a8fa1d363e35e (patch) | |
tree | 0e400772206f4eb6774b2790628119c0f89ffd49 /dev-lang/scala-bin/scala-bin-2.13.9.ebuild | |
parent | e4faa07b4eb2f5e4f9756d33924b318b1349956a (diff) |
gentoo auto-resync : 28:09:2022 - 21:15:04
Diffstat (limited to 'dev-lang/scala-bin/scala-bin-2.13.9.ebuild')
-rw-r--r-- | dev-lang/scala-bin/scala-bin-2.13.9.ebuild | 77 |
1 files changed, 77 insertions, 0 deletions
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 +} |