aboutsummaryrefslogtreecommitdiff
path: root/devel/antlr3
diff options
context:
space:
mode:
authorKurt Jaeger <pi@FreeBSD.org>2015-10-17 18:19:14 +0000
committerKurt Jaeger <pi@FreeBSD.org>2015-10-17 18:19:14 +0000
commit2c2306afabbea6c00855846a68156822a9752803 (patch)
tree7dba1f1e59cd676e0fb667a604b7238b80773172 /devel/antlr3
parentd791a4add6ce57752a7eadd4f65225d8afb8743d (diff)
downloadports-2c2306afabbea6c00855846a68156822a9752803.tar.gz
ports-2c2306afabbea6c00855846a68156822a9752803.zip
Notes
Diffstat (limited to 'devel/antlr3')
-rw-r--r--devel/antlr3/Makefile33
-rw-r--r--devel/antlr3/distinfo2
-rw-r--r--devel/antlr3/files/antlr.sh.in5
-rw-r--r--devel/antlr3/pkg-descr6
4 files changed, 46 insertions, 0 deletions
diff --git a/devel/antlr3/Makefile b/devel/antlr3/Makefile
new file mode 100644
index 000000000000..c75da8799d43
--- /dev/null
+++ b/devel/antlr3/Makefile
@@ -0,0 +1,33 @@
+# Created by: Takumi Takahashi <takumiiinn@gmail.com>
+# $FreeBSD$
+
+PORTNAME= antlr3
+PORTVERSION= 3.5.2
+CATEGORIES= devel java
+MASTER_SITES= http://www.antlr3.org/download/
+DISTNAME= antlr-${PORTVERSION}-complete
+EXTRACT_SUFX= .jar
+EXTRACT_ONLY=
+
+MAINTAINER= takumiiinn@gmail.com
+COMMENT= ANother Tool for Language Recognition
+
+LICENSE= BSD3CLAUSE
+
+NO_BUILD= yes
+USE_JAVA= yes
+JAVA_VERSION= 1.7+
+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/antlr3/distinfo b/devel/antlr3/distinfo
new file mode 100644
index 000000000000..8cfe7e690797
--- /dev/null
+++ b/devel/antlr3/distinfo
@@ -0,0 +1,2 @@
+SHA256 (antlr-3.5.2-complete.jar) = 26ca659f47d77384f518cf2b6463892fcd4f0b0d4d8c0de2addf697e63e7326b
+SIZE (antlr-3.5.2-complete.jar) = 2456317
diff --git a/devel/antlr3/files/antlr.sh.in b/devel/antlr3/files/antlr.sh.in
new file mode 100644
index 000000000000..ffed4c4ae806
--- /dev/null
+++ b/devel/antlr3/files/antlr.sh.in
@@ -0,0 +1,5 @@
+#! /bin/sh
+#
+# $FreeBSD$
+
+JAVA_VERSION="%%JAVA_VERSION%%" "%%LOCALBASE%%/bin/java" -classpath "%%JAVAJARDIR%%/%%INSTALL_JAR%%" org.antlr.Tool "$@"
diff --git a/devel/antlr3/pkg-descr b/devel/antlr3/pkg-descr
new file mode 100644
index 000000000000..c7f3ad6c8f48
--- /dev/null
+++ b/devel/antlr3/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.antlr3.org