aboutsummaryrefslogtreecommitdiffstats
path: root/java/eclipse-ecj
diff options
context:
space:
mode:
authorjgh <jgh@FreeBSD.org>2012-03-25 07:21:33 +0800
committerjgh <jgh@FreeBSD.org>2012-03-25 07:21:33 +0800
commit04c1bba7b653869bfab5c0874709fa26dbcb29aa (patch)
tree70b42ab695947271731356df228fe7fcb6378d6e /java/eclipse-ecj
parentbba3a2d5a300d9619e6316384916135a340ad10b (diff)
downloadfreebsd-ports-gnome-04c1bba7b653869bfab5c0874709fa26dbcb29aa.tar.gz
freebsd-ports-gnome-04c1bba7b653869bfab5c0874709fa26dbcb29aa.tar.zst
freebsd-ports-gnome-04c1bba7b653869bfab5c0874709fa26dbcb29aa.zip
- java 1.6+ is required
- bump PORTREVISION Submitted by: glewis@ (via email) Feature safe: yes
Diffstat (limited to 'java/eclipse-ecj')
-rw-r--r--java/eclipse-ecj/Makefile3
-rw-r--r--java/eclipse-ecj/files/ecj.sh.in2
2 files changed, 3 insertions, 2 deletions
diff --git a/java/eclipse-ecj/Makefile b/java/eclipse-ecj/Makefile
index 8104e3d31d5a..70ad55620c3c 100644
--- a/java/eclipse-ecj/Makefile
+++ b/java/eclipse-ecj/Makefile
@@ -6,7 +6,7 @@
PORTNAME= ecj
PORTVERSION= 3.7.2
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= java devel
MASTER_SITES= ECLIPSE
MASTER_SITE_SUBDIR= R-${PORTVERSION}-${DROPDATE}
@@ -25,6 +25,7 @@ EXTRACT_AFTER_ARGS= -C ${WRKDIR}
USE_ANT= yes
USE_JAVA= yes
+JAVA_VERSION= 1.6+
SUB_FILES= ecj.sh
SUB_LIST= PORTVERSION=${PORTVERSION}
NO_WRKSUBDIR= yes
diff --git a/java/eclipse-ecj/files/ecj.sh.in b/java/eclipse-ecj/files/ecj.sh.in
index 825e0a840bb8..bfbba17fc3d2 100644
--- a/java/eclipse-ecj/files/ecj.sh.in
+++ b/java/eclipse-ecj/files/ecj.sh.in
@@ -1,3 +1,3 @@
#!/bin/sh
-%%LOCALBASE%%/bin/java -classpath %%JAVAJARDIR%%/ecj-%%PORTVERSION%%.jar org.eclipse.jdt.internal.compiler.batch.Main ${@:--help}
+JAVA_VERSION="%%JAVA_VERSION%%" "%%LOCALBASE%%/bin/java" -classpath "%%JAVAJARDIR%%/ecj-%%PORTVERSION%%.jar" org.eclipse.jdt.internal.compiler.batch.Main "${@:--help}"