diff options
author | miwi <miwi@FreeBSD.org> | 2011-06-26 15:15:35 +0800 |
---|---|---|
committer | miwi <miwi@FreeBSD.org> | 2011-06-26 15:15:35 +0800 |
commit | 3ed05b7ae851a248269daa27eea2ce8d507044cd (patch) | |
tree | 9b961e3dceb21318ae48339574054fd9e5005d2b | |
parent | 3f1192e0477594ee64cf9eaacf43491738bfcd12 (diff) | |
download | freebsd-ports-gnome-3ed05b7ae851a248269daa27eea2ce8d507044cd.tar.gz freebsd-ports-gnome-3ed05b7ae851a248269daa27eea2ce8d507044cd.tar.zst freebsd-ports-gnome-3ed05b7ae851a248269daa27eea2ce8d507044cd.zip |
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.
This port is used to run python code generated by ANTLR.
WWW: http://www.antlr2.org
PR: ports/155116
Submitted by: arrowdodger <6yearold at gmail.com>
-rw-r--r-- | devel/Makefile | 1 | ||||
-rw-r--r-- | devel/antlr2-python-runtime/Makefile | 34 | ||||
-rw-r--r-- | devel/antlr2-python-runtime/distinfo | 2 | ||||
-rw-r--r-- | devel/antlr2-python-runtime/pkg-descr | 8 | ||||
-rw-r--r-- | devel/antlr2-python-runtime/pkg-plist | 5 |
5 files changed, 50 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile index 97f4da97001b..1a0a09309da4 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -35,6 +35,7 @@ SUBDIR += anjuta SUBDIR += anjuta-extras SUBDIR += antlr + SUBDIR += antlr2-python-runtime SUBDIR += antlrworks SUBDIR += apache-ant SUBDIR += api-sanity-autotest diff --git a/devel/antlr2-python-runtime/Makefile b/devel/antlr2-python-runtime/Makefile new file mode 100644 index 000000000000..536e560a4538 --- /dev/null +++ b/devel/antlr2-python-runtime/Makefile @@ -0,0 +1,34 @@ +# New ports collection makefile for: antlr2-python-runtime +# Date created: 1 February 2011 +# Whom: arrowdodger <6yearold@gmail.com> +# +# $FreeBSD$ +# + +PORTNAME= antlr2-python-runtime +PORTVERSION= 2.7.7 +CATEGORIES= devel +MASTER_SITES= http://www.antlr2.org/download/ +DISTNAME= antlr-${PORTVERSION} + +MAINTAINER= 6yearold@gmail.com +COMMENT= ANTLR v2 python runtime library + +USE_PYTHON= yes +PYDISTUTILS_PKGNAME=antlr +PYDISTUTILS_PKGVERSION=2.7.5RC1 +INSTALLS_EGGINFO=yes + +ANTLR_PYTHON_DIR= ${WRKDIR}/${DISTNAME}/lib/python + +do-configure: + @(cd ${ANTLR_PYTHON_DIR} && ${PYTHON_CMD} setup.py config) + +do-build: + @(cd ${ANTLR_PYTHON_DIR} && ${PYTHON_CMD} setup.py build && \ + ${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py ${ANTLR_PYTHON_DIR}) + +do-install: + @(cd ${ANTLR_PYTHON_DIR} && ${PYTHON_CMD} setup.py install) + +.include <bsd.port.mk> diff --git a/devel/antlr2-python-runtime/distinfo b/devel/antlr2-python-runtime/distinfo new file mode 100644 index 000000000000..5e51e3eb05d9 --- /dev/null +++ b/devel/antlr2-python-runtime/distinfo @@ -0,0 +1,2 @@ +SHA256 (antlr-2.7.7.tar.gz) = 853aeb021aef7586bda29e74a6b03006bcb565a755c86b66032d8ec31b67dbb9 +SIZE (antlr-2.7.7.tar.gz) = 1816180 diff --git a/devel/antlr2-python-runtime/pkg-descr b/devel/antlr2-python-runtime/pkg-descr new file mode 100644 index 000000000000..67d662484d16 --- /dev/null +++ b/devel/antlr2-python-runtime/pkg-descr @@ -0,0 +1,8 @@ +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. + +This port is used to run python code generated by ANTLR. + +WWW: http://www.antlr2.org diff --git a/devel/antlr2-python-runtime/pkg-plist b/devel/antlr2-python-runtime/pkg-plist new file mode 100644 index 000000000000..b9b1bb9b6e8c --- /dev/null +++ b/devel/antlr2-python-runtime/pkg-plist @@ -0,0 +1,5 @@ +%%PYTHON_SITELIBDIR%%/antlr/__init__.py +%%PYTHON_SITELIBDIR%%/antlr/__init__.pyc +%%PYTHON_SITELIBDIR%%/antlr/antlr.py +%%PYTHON_SITELIBDIR%%/antlr/antlr.pyc +@dirrm %%PYTHON_SITELIBDIR%%/antlr |