diff options
author | Dmitry Marakasov <amdmi3@FreeBSD.org> | 2011-06-17 07:19:15 +0000 |
---|---|---|
committer | Dmitry Marakasov <amdmi3@FreeBSD.org> | 2011-06-17 07:19:15 +0000 |
commit | 06bb5998130914247c56359d9fc2ad071fdee053 (patch) | |
tree | 167d118ecafd98657a70344d80442ba3ead0dc6d | |
parent | 9c9e9e1e13e2aff7c21ee8ae1a4270fd06bbc2af (diff) | |
download | ports-06bb5998130914247c56359d9fc2ad071fdee053.tar.gz ports-06bb5998130914247c56359d9fc2ad071fdee053.zip |
Notes
-rw-r--r-- | devel/antlrworks/Makefile | 28 | ||||
-rw-r--r-- | devel/antlrworks/distinfo | 5 | ||||
-rw-r--r-- | devel/antlrworks/files/antlrworks.sh | 6 |
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 "$@" + |