summaryrefslogtreecommitdiff
blob: f5054d84a6637a8cf2706be59c5740fb1db4dad7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI=5

inherit java-pkg-2

DESCRIPTION="sbt, a build tool for Scala."
HOMEPAGE="http://scala-sbt.org"
SRC_URI="http://repo.scala-sbt.org/scalasbt/sbt-native-packages/org/scala-sbt/sbt/${PV}/sbt.tgz"

LICENSE="BSD"
SLOT="0.12"
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 jansi-license.txt || die
	fperms 0755 "${dest}/bin/sbt" || die

	dosym "${dest}/bin/sbt" /usr/bin/sbt || die
}