summaryrefslogtreecommitdiff
path: root/lang/jruby/files/patch-jruby
blob: 30e0693338388c40629d8b078f617e4d261ac009 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
--- ./bin/jruby.old	2008-04-23 11:36:44.368716680 +0800
+++ ./bin/jruby	2008-04-23 11:40:04.632441243 +0800
@@ -37,6 +37,9 @@
 JRUBY_HOME_1=`dirname "$PRG"`           # the ./bin dir
 JRUBY_HOME=`dirname "$JRUBY_HOME_1"`  # the . dir

+# Set JAVA_HOME to the value the port was built with
+JAVA_HOME=%%JAVA_HOME%%
+
 if [ -z "$JRUBY_OPTS" ] ; then
   JRUBY_OPTS=""
 fi