<pre style='margin:0'>
Perry E. Metzger (pmetzger) pushed a commit to branch master
in repository macports-ports.

</pre>
<p><a href="https://github.com/macports/macports-ports/commit/aaf483288203693301bdf763cafb58294cc9dafb">https://github.com/macports/macports-ports/commit/aaf483288203693301bdf763cafb58294cc9dafb</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'>     new aaf4832  sbt: fix warning when launching with Java 8+
</span>aaf4832 is described below

<span style='display:block; white-space:pre;color:#808000;'>commit aaf483288203693301bdf763cafb58294cc9dafb
</span>Author: Aaron Madlon-Kay <amake@macports.org>
AuthorDate: Wed Aug 29 16:41:52 2018 +0900

<span style='display:block; white-space:pre;color:#404040;'>    sbt: fix warning when launching with Java 8+
</span>---
 devel/sbt/Portfile     | 1 +
 devel/sbt/files/sbt.sh | 8 +++++++-
 2 files changed, 8 insertions(+), 1 deletion(-)

<span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/sbt/Portfile b/devel/sbt/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index ba1f0ff..a86e984 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/devel/sbt/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/sbt/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -4,6 +4,7 @@ PortSystem      1.0
</span> 
 name            sbt
 version         0.13.17
<span style='display:block; white-space:pre;background:#e0ffe0;'>+revision        1
</span> categories      devel java
 license         BSD
 maintainers     {blair @blair} openmaintainer
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/sbt/files/sbt.sh b/devel/sbt/files/sbt.sh
</span><span style='display:block; white-space:pre;color:#808080;'>index 341f932..4e63fea 100755
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/devel/sbt/files/sbt.sh
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/sbt/files/sbt.sh
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -25,7 +25,13 @@ fi
</span> if [ -z "$JAVA_OPTS" ]; then
     # Ensure enough heap space is created for sbt.  These settings are
     # the default settings from Typesafe's sbt wrapper.
<span style='display:block; white-space:pre;background:#ffe0e0;'>-    JAVA_OPTS="-XX:+CMSClassUnloadingEnabled -Xms1536m -Xmx1536m -XX:MaxPermSize=384m -XX:ReservedCodeCacheSize=192m -Dfile.encoding=UTF8"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    JAVA_VERSION=$(java -version 2>&1 | awk -F '"' '/version/ {print $2}')
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    if [ "$JAVA_VERSION" \< "1.8" ]; then
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+        CLASS_METADATA_OPT="MaxPermSize"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    else
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+        CLASS_METADATA_OPT="MaxMetaspaceSize"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    fi
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    JAVA_OPTS="-XX:+CMSClassUnloadingEnabled -Xms1536m -Xmx1536m -XX:$CLASS_METADATA_OPT=384m -XX:ReservedCodeCacheSize=192m -Dfile.encoding=UTF8"
</span> fi
 
 # Assume java is already in the shell path.
</pre><pre style='margin:0'>

</pre>