aboutsummaryrefslogtreecommitdiffstats
path: root/testing/sbt
diff options
context:
space:
mode:
authorEd Robinson <ed.robinson@reevoo.com>2017-02-17 11:52:32 +0000
committerWilliam Pitcock <nenolod@dereferenced.org>2017-03-02 20:15:08 +0000
commita8e62bcbe7f60ac9a99b086c8343bbe2615ea7e4 (patch)
treee52244c36b487c1f9bebb6363a7a52b0ebfa9a06 /testing/sbt
parentf15755e5e7c648936ec422aeb01b7a1e4ec5ff78 (diff)
downloadaports-a8e62bcbe7f60ac9a99b086c8343bbe2615ea7e4.tar.bz2
aports-a8e62bcbe7f60ac9a99b086c8343bbe2615ea7e4.tar.xz
testing/sbt: new aport
http://www.scala-sbt.org/ The interactive build tool, sbt is a build tool for Scala, Java, and more.
Diffstat (limited to 'testing/sbt')
-rw-r--r--testing/sbt/APKBUILD40
-rw-r--r--testing/sbt/global-sbtopts.patch12
2 files changed, 52 insertions, 0 deletions
diff --git a/testing/sbt/APKBUILD b/testing/sbt/APKBUILD
new file mode 100644
index 0000000000..29fe6a43d5
--- /dev/null
+++ b/testing/sbt/APKBUILD
@@ -0,0 +1,40 @@
+# Contributor: Ed Robinson <ed@reevoo.com>
+# Maintainer: Ed Robinson <ed@reevoo.com>
+pkgname=sbt
+pkgver=0.13.13
+pkgrel=0
+pkgdesc="The interactive build tool, sbt is a build tool for Scala, Java, and more."
+url="http://www.scala-sbt.org/"
+arch="noarch"
+license="BSD-3"
+depends="openjdk8-jre bash"
+source="https://dl.bintray.com/$pkgname/native-packages/$pkgname/$pkgver/$pkgname-$pkgver.tgz
+global-sbtopts.patch"
+
+builddir="$srcdir/$pkgname-launcher-packaging-$pkgver"
+_basedir="/usr/share/java/$pkgname"
+
+package() {
+ local destdir="$pkgdir/$_basedir"
+ local confdir="$pkgdir/etc/$pkgname"
+ cd "$builddir"
+
+ install -dm755 "$destdir"/bin || return 1
+ install -m755 -t "$destdir"/bin bin/* || return 1
+
+ install -dm755 "$confdir" || return 1
+ install -m644 -t "$confdir" conf/* || return 1
+
+ mkdir -p "$pkgdir"/usr/bin
+ ln -s "$_basedir/bin/sbt" "$pkgdir/usr/bin/sbt" || return 1
+
+ # Remove windows specific files
+ rm $destdir/bin/sbt.bat
+ rm $confdir/sbtconfig.txt
+}
+md5sums="30a238d1b0cc2821da2b9b4e830ef204 sbt-0.13.13.tgz
+5444222ab18abc16542a008a56c03f7e global-sbtopts.patch"
+sha256sums="40d03d21a260c5a6a43f8349298f41c9d047f97972057d9d915afd8945faf979 sbt-0.13.13.tgz
+a4e413f3b39ed6a51e266c3ab17b3ecee803ed1013ddedcf1acf2f4fdc56ac2a global-sbtopts.patch"
+sha512sums="f9733a4705bc04479711f522f5483a712791403a1445967945a8ec1613d49a95f7de49599b44294e7df09a1d2415225ff57895fb2005bfea94a56d3229e2eacf sbt-0.13.13.tgz
+a7f4eedf389024d6c10a523a3456f57dd901b43b9234e12e35c4131a13a95ceac9fe3614b0266193f8700712c26ca45554444d9dd2433ed79069ae2b5ee1d58e global-sbtopts.patch"
diff --git a/testing/sbt/global-sbtopts.patch b/testing/sbt/global-sbtopts.patch
new file mode 100644
index 0000000000..c3ad414a80
--- /dev/null
+++ b/testing/sbt/global-sbtopts.patch
@@ -0,0 +1,12 @@
+diff -urp sbt-launcher-packaging-0.13.13/bin/sbt patched/bin/sbt
+--- sbt-launcher-packaging-0.13.13/bin/sbt 2016-10-28 18:46:00.000000000 +0100
++++ patched/bin/sbt 2017-02-17 11:11:51.000000000 +0000
+@@ -62,7 +62,7 @@ cygwinpath() {
+
+ declare -r noshare_opts="-Dsbt.global.base=project/.sbtboot -Dsbt.boot.directory=project/.boot -Dsbt.ivy.home=project/.ivy"
+ declare -r sbt_opts_file=".sbtopts"
+-declare -r etc_sbt_opts_file="${sbt_home}/conf/sbtopts"
++declare -r etc_sbt_opts_file="/etc/sbt/sbtopts"
+ declare -r win_sbt_opts_file="${sbt_home}/conf/sbtconfig.txt"
+
+ usage() {