ports/devel/sbt/files/patch-bin_sbt
Alex Dupre 3691f07846 Update to 1.0.1 release.
PR:		222138
Submitted by:	j-keck <jhyphenkeck@gmail.com>
2017-09-08 13:33:26 +00:00

20 lines
1 KiB
Text

--- bin/sbt.orig 2017-08-29 21:39:02 UTC
+++ bin/sbt
@@ -63,7 +63,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="/etc/sbt/sbtopts"
+declare -r etc_sbt_opts_file="%%PREFIX%%/etc/sbtopts"
declare -r dist_sbt_opts_file="${sbt_home}/conf/sbtopts"
declare -r win_sbt_opts_file="${sbt_home}/conf/sbtconfig.txt"
@@ -101,7 +101,7 @@ Usage: $script_name [options]
SBT_OPTS environment variable, if unset uses "$default_sbt_opts"
.sbtopts if this file exists in the current directory, its contents
are prepended to the runner args
- /etc/sbt/sbtopts if this file exists, it is prepended to the runner args
+ %%PREFIX%%/etc/sbtopts if this file exists, it is prepended to the runner args
-Dkey=val pass -Dkey=val directly to the java runtime
-J-X pass option -X directly to the java runtime
(-J is stripped)