summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-java/sbt-bin/sbt-bin-0.13.6.ebuild')
-rw-r--r--dev-java/sbt-bin/sbt-bin-0.13.6.ebuild37
1 files changed, 37 insertions, 0 deletions
diff --git a/dev-java/sbt-bin/sbt-bin-0.13.6.ebuild b/dev-java/sbt-bin/sbt-bin-0.13.6.ebuild
new file mode 100644
index 000000000000..77ce8de74c1a
--- /dev/null
+++ b/dev-java/sbt-bin/sbt-bin-0.13.6.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=5
+
+DESCRIPTION="sbt, a build tool for Scala."
+HOMEPAGE="http://scala-sbt.org"
+SRC_URI="http://dl.bintray.com/sbt/native-packages/sbt/${PV}/sbt-${PV}.tgz"
+
+LICENSE="BSD"
+SLOT="0.13"
+KEYWORDS="amd64"
+
+IUSE=""
+
+DEPEND=">=virtual/jre-1.7"
+RDEPEND="${DEPEND}"
+
+src_unpack() {
+ default
+
+ mv "${WORKDIR}/sbt" "${S}" || die
+}
+
+src_install() {
+ local dest="/opt/${P}"
+
+ # Remove Windows batch file
+ rm -f "${S}/bin/sbt.bat" || die
+
+ insinto "${dest}"
+ doins -r bin conf || die
+ fperms 0755 "${dest}/bin/sbt" || die
+
+ dosym "${dest}/bin/sbt" /usr/bin/sbt || die
+}