diff options
author | pi <pi@FreeBSD.org> | 2015-11-07 22:05:11 +0800 |
---|---|---|
committer | pi <pi@FreeBSD.org> | 2015-11-07 22:05:11 +0800 |
commit | f25a9dd03e5225702d91241b109fd715cbbc3fe4 (patch) | |
tree | b6aaf405296cd03ca4ad395e6428b247fc247945 | |
parent | b22dac7503f1ae03f054893a119ec4a64b0361c0 (diff) | |
download | freebsd-ports-gnome-f25a9dd03e5225702d91241b109fd715cbbc3fe4.tar.gz freebsd-ports-gnome-f25a9dd03e5225702d91241b109fd715cbbc3fe4.tar.zst freebsd-ports-gnome-f25a9dd03e5225702d91241b109fd715cbbc3fe4.zip |
New Port: devel/antlr4
ANTLR, ANother Tool for Language Recognition, (formerly PCCTS) is a
language tool that provides a framework for constructing recognizers,
compilers, and translators from grammatical descriptions containing
C++ or Java actions.
WWW: http://www.antlr.org
-rw-r--r-- | devel/Makefile | 1 | ||||
-rw-r--r-- | devel/antlr4/Makefile | 32 | ||||
-rw-r--r-- | devel/antlr4/distinfo | 2 | ||||
-rw-r--r-- | devel/antlr4/files/antlr.sh.in | 6 | ||||
-rw-r--r-- | devel/antlr4/pkg-descr | 6 |
5 files changed, 47 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile index dc0049a08a22..889440c70759 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -74,6 +74,7 @@ SUBDIR += anjuta-extras SUBDIR += antlr SUBDIR += antlr3 + SUBDIR += antlr4 SUBDIR += antlrworks SUBDIR += apache-ant SUBDIR += api-sanity-autotest diff --git a/devel/antlr4/Makefile b/devel/antlr4/Makefile new file mode 100644 index 000000000000..b2590151a9e5 --- /dev/null +++ b/devel/antlr4/Makefile @@ -0,0 +1,32 @@ +# $FreeBSD$ + +PORTNAME= antlr4 +PORTVERSION= 4.5.1 +CATEGORIES= devel java +MASTER_SITES= http://www.antlr.org/download/ +DISTNAME= antlr-${PORTVERSION}-complete +EXTRACT_SUFX= .jar +EXTRACT_ONLY= + +MAINTAINER= pi@FreeBSD.org +COMMENT= ANother Tool for Language Recognition + +LICENSE= BSD3CLAUSE + +NO_BUILD= yes +USE_JAVA= yes +JAVA_VERSION= 1.8+ +INSTALL_JAR= ${DISTFILES} +SUB_LIST= INSTALL_JAR=${INSTALL_JAR} +SUB_FILES= antlr.sh +PLIST_FILES= bin/${PORTNAME} \ + ${JAVAJARDIR}/${INSTALL_JAR} + +.include <bsd.port.options.mk> + +do-install: + @${MKDIR} ${STAGEDIR}${JAVAJARDIR} + ${INSTALL_DATA} ${DISTDIR}/${DISTFILES} ${STAGEDIR}${JAVAJARDIR}/${INSTALL_JAR} + ${INSTALL_SCRIPT} ${WRKDIR}/antlr.sh ${STAGEDIR}${PREFIX}/bin/${PORTNAME} + +.include <bsd.port.mk> diff --git a/devel/antlr4/distinfo b/devel/antlr4/distinfo new file mode 100644 index 000000000000..46ef99e7ecc8 --- /dev/null +++ b/devel/antlr4/distinfo @@ -0,0 +1,2 @@ +SHA256 (antlr-4.5.1-complete.jar) = 9cff6c76bc5aafcbf51cac7f0974ae01e4f6119402e75436abbb97f8ab15c211 +SIZE (antlr-4.5.1-complete.jar) = 1478820 diff --git a/devel/antlr4/files/antlr.sh.in b/devel/antlr4/files/antlr.sh.in new file mode 100644 index 000000000000..9afc9fdeb708 --- /dev/null +++ b/devel/antlr4/files/antlr.sh.in @@ -0,0 +1,6 @@ +#! /bin/sh +# +# $FreeBSD$ + +JAVA_VERSION="%%JAVA_VERSION%%" "%%LOCALBASE%%/bin/java" -classpath "%%JAVAJARDIR%%/%%INSTALL_JAR%%" -jar %%JAVAJARDIR%%/%%INSTALL_JAR%% "$@" + diff --git a/devel/antlr4/pkg-descr b/devel/antlr4/pkg-descr new file mode 100644 index 000000000000..59e8d74ad1c2 --- /dev/null +++ b/devel/antlr4/pkg-descr @@ -0,0 +1,6 @@ +ANTLR, ANother Tool for Language Recognition, (formerly PCCTS) is a +language tool that provides a framework for constructing recognizers, +compilers, and translators from grammatical descriptions containing +C++ or Java actions. + +WWW: http://www.antlr.org |