mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-03 04:37:06 -08:00
* Since all ebuilds in the tree are EAPI>=4, `|| die` on builtin commands is redundant and dead code. Closes: https://github.com/gentoo/gentoo/pull/13940 Reviewed-by: Ulrich Müller <ulm@gentoo.org> Reviewed-by: Michał Górny <mgorny@gentoo.org> Reviewed-by: Andreas K. Hüttel <dilfridge@gentoo.org> Signed-off-by: David Seifert <soap@gentoo.org>
50 lines
829 B
Bash
50 lines
829 B
Bash
# Copyright 1999-2019 Gentoo Authors
|
|
# 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="https://scala-sbt.org"
|
|
SRC_URI="https://github.com/sbt/sbt/releases/download/v${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/*
|
|
|
|
insinto "${dest}"
|
|
doins -r conf
|
|
|
|
fperms 0755 "${dest}/lib/sbt"
|
|
dosym "${dest}/lib/sbt" /usr/bin/sbt
|
|
}
|