diff options
Diffstat (limited to 'dev-java/sbt-bin/sbt-bin-0.13.15.ebuild')
-rw-r--r-- | dev-java/sbt-bin/sbt-bin-0.13.15.ebuild | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/dev-java/sbt-bin/sbt-bin-0.13.15.ebuild b/dev-java/sbt-bin/sbt-bin-0.13.15.ebuild new file mode 100644 index 000000000000..f058123e44bc --- /dev/null +++ b/dev-java/sbt-bin/sbt-bin-0.13.15.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit java-pkg-2 + +DESCRIPTION="sbt, a build tool for Scala" +HOMEPAGE="http://scala-sbt.org" +SRC_URI="https://dl.bintray.com/sbt/native-packages/sbt/${PV}/${PN/-bin}-${PV}.tgz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64" + +RDEPEND=" + >=virtual/jre-1.7 + !dev-java/sbt" + +src_unpack() { + default + mv "${WORKDIR}/sbt" "${S}" || die +} + +src_prepare() { + default + java-pkg_init_paths_ +} + +src_compile() { + :; +} + +src_install() { + local dest="${JAVA_PKG_SHAREPATH}" + + rm -v bin/sbt.bat || die + sed -i -e 's#bin/sbt-launch.jar#lib/sbt-launch.jar#g;' \ + bin/sbt-launch-lib.bash || die + + insinto "${dest}/lib" + doins bin/* || die + + insinto "${dest}" + doins -r conf || die + + fperms 0755 "${dest}/lib/sbt" || die + dosym "${dest}/lib/sbt" /usr/bin/sbt || die +} |