gentoo-ebuilds/dev-java/sbt-bin/sbt-bin-1.8.0.ebuild
Arthur Zamarin 429cd19d73
dev-java/sbt-bin: Stabilize 1.8.0 amd64, #928974
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
2024-04-09 18:54:39 +03:00

49 lines
895 B
Bash

# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit java-pkg-2
DESCRIPTION="sbt, a build tool for Scala"
HOMEPAGE="https://www.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.8
!dev-java/sbt"
QA_TEXTRELS="usr/share/sbt-bin/lib/sbtn-x86_64-pc-linux"
QA_FLAGS_IGNORED="usr/share/sbt-bin/lib/sbtn-x86_64-pc-linux"
S="${WORKDIR}/sbt"
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 || die
insinto "${dest}/lib"
doins bin/*
insinto "${dest}"
doins -r conf
fperms 0755 "${dest}/lib/sbt"
dosym "${dest}/lib/sbt" /usr/bin/sbt
}