aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoramdmi3 <amdmi3@FreeBSD.org>2011-06-17 15:19:15 +0800
committeramdmi3 <amdmi3@FreeBSD.org>2011-06-17 15:19:15 +0800
commitd95f5beb14c609d7ae320f08cef63b13dc7a761f (patch)
tree0c9035b5400915ef3e6a9222c717cd83f4d42d6c
parent8583c5e9a054daae8711b09e9d786354ae8927c0 (diff)
downloadfreebsd-ports-gnome-d95f5beb14c609d7ae320f08cef63b13dc7a761f.tar.gz
freebsd-ports-gnome-d95f5beb14c609d7ae320f08cef63b13dc7a761f.tar.zst
freebsd-ports-gnome-d95f5beb14c609d7ae320f08cef63b13dc7a761f.zip
- Update to 1.4.2
PR: 155063 Submitted by: arrowdodger <6yearold@gmail.com> Approved by: Matthias Sund <m.sund@arcor.de> (maintainer)
-rw-r--r--devel/antlrworks/Makefile28
-rw-r--r--devel/antlrworks/distinfo5
-rw-r--r--devel/antlrworks/files/antlrworks.sh6
3 files changed, 28 insertions, 11 deletions
diff --git a/devel/antlrworks/Makefile b/devel/antlrworks/Makefile
index 7ea533f9138b..44b776a7ac0e 100644
--- a/devel/antlrworks/Makefile
+++ b/devel/antlrworks/Makefile
@@ -5,7 +5,7 @@
# $FreeBSD$
PORTNAME= antlrworks
-PORTVERSION= 1.3.1
+PORTVERSION= 1.4.2
PORTEPOCH= 1
CATEGORIES= devel java
MASTER_SITES= http://www.antlr.org/download/
@@ -14,9 +14,10 @@ EXTRACT_SUFX= .jar
MAINTAINER= m.sund@arcor.de
COMMENT= The ANTLR GUI Development Environment
+NO_BUILD= yes
+
USE_JAVA= yes
JAVA_VERSION= 1.5+
-NO_BUILD= yes
DESKTOP_ENTRIES="ANTLRWorks" \
"ANTLR GUI Development Environment" \
@@ -25,13 +26,24 @@ DESKTOP_ENTRIES="ANTLRWorks" \
"Application;Development;" \
true
+PLIST_FILES= bin/antlrworks \
+ ${JAVAJARDIR:C,${PREFIX}/?,,}/${PORTNAME}.jar \
+ share/pixmaps/antlrworks.png
+
do-install:
- @${MKDIR} ${JAVASHAREDIR}/${PORTNAME}
- @${INSTALL_DATA} ${DISTDIR}/${DISTNAME}.jar ${JAVASHAREDIR}/${PORTNAME}/${DISTNAME}.jar
- @${ECHO_CMD} '#!/bin/sh' > ${WRKDIR}/antlrworks
- @${ECHO_CMD} "exec java -Xmx400m -jar ${JAVASHAREDIR}/${PORTNAME}/${DISTNAME}.jar" >> ${WRKDIR}/antlrworks
- @${INSTALL_SCRIPT} ${WRKDIR}/antlrworks ${PREFIX}/bin
+ ${SED} -e 's|%%JAVAJARDIR%%|${JAVAJARDIR}|' \
+ -e 's|%%LOCALBASE%%|${LOCALBASE}|' \
+ -e 's|%%PORTNAME%%|${PORTNAME}|' \
+ -e 's|%%JAVA_VERSION%%|${JAVA_VERSION}|' ${FILESDIR}/antlrworks.sh > ${WRKDIR}/antlrworks.sh
+
+ @${MKDIR} ${JAVAJARDIR}
+ @${ECHO_MSG} -n ">> Installing JAR as ${JAVAJARDIR}/${PORTNAME}.jar..."
+ @${INSTALL_DATA} ${DISTDIR}/${DISTFILES} ${JAVAJARDIR}/${PORTNAME}.jar
+ @${ECHO_MSG} " [ DONE ]"
+ @${ECHO_MSG} -n ">> Installing antlrworks script as ${PREFIX}/bin/antlrworks..."
+ @${INSTALL_SCRIPT} ${WRKDIR}/antlrworks.sh ${PREFIX}/bin/antlrworks
+ @${ECHO_MSG} " [ DONE ]"
@${MKDIR} ${PREFIX}/share/pixmaps
- @${INSTALL_DATA} ${WRKDIR}/icons/app_32x32.png ${PREFIX}/share/pixmaps/antlrworks.png
+ @${INSTALL_DATA} ${WRKDIR}/icons/app_64x64.png ${PREFIX}/share/pixmaps/antlrworks.png
.include <bsd.port.mk>
diff --git a/devel/antlrworks/distinfo b/devel/antlrworks/distinfo
index fcf6fc67d84d..1ea1e14590cd 100644
--- a/devel/antlrworks/distinfo
+++ b/devel/antlrworks/distinfo
@@ -1,3 +1,2 @@
-MD5 (antlrworks-1.3.1.jar) = 35d52e00f054f02f17f08cbf9149681d
-SHA256 (antlrworks-1.3.1.jar) = e623449c2ca8d220e7e4cac9783a3f9e24a742c5f136cccbd23a356e1f46fc4f
-SIZE (antlrworks-1.3.1.jar) = 3155789
+SHA256 (antlrworks-1.4.2.jar) = 717496f20fbfd0ff8c54984e4aeb92926bc9e9ee9c495e890728dea030aeba79
+SIZE (antlrworks-1.4.2.jar) = 3134659
diff --git a/devel/antlrworks/files/antlrworks.sh b/devel/antlrworks/files/antlrworks.sh
new file mode 100644
index 000000000000..b9301ff0b81a
--- /dev/null
+++ b/devel/antlrworks/files/antlrworks.sh
@@ -0,0 +1,6 @@
+#! /bin/sh
+#
+# $FreeBSD$
+
+JAVA_VERSION="%%JAVA_VERSION%%" "%%LOCALBASE%%/bin/java" -classpath "%%JAVAJARDIR%%/%%PORTNAME%%.jar" org.antlr.works.IDE "$@"
+