summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorRuslan Makhmatkhanov <rm@FreeBSD.org>2014-12-18 14:54:12 +0000
committerRuslan Makhmatkhanov <rm@FreeBSD.org>2014-12-18 14:54:12 +0000
commitd5e5cb857db026d80ebd05ec86544955bed99431 (patch)
tree78b3aaf04463f095157bddddb73432fff84ed092 /devel
parent- Strip binary (diff)
devel/py-simpleparse: turn mxBase dependency into option (default off)
- turn mxBase dependency into option (default off). It's only needed because of mx.DateTime and is not obligatory - f.e. pip didn't install it as dependency - actualize comment and description - bump PORTREVISION because of dependency change
Notes
Notes: svn path=/head/; revision=374905
Diffstat (limited to 'devel')
-rw-r--r--devel/py-simpleparse/Makefile9
-rw-r--r--devel/py-simpleparse/pkg-descr29
2 files changed, 21 insertions, 17 deletions
diff --git a/devel/py-simpleparse/Makefile b/devel/py-simpleparse/Makefile
index fca4a8b54e40..896343f1d438 100644
--- a/devel/py-simpleparse/Makefile
+++ b/devel/py-simpleparse/Makefile
@@ -3,17 +3,20 @@
PORTNAME= simpleparse
PORTVERSION= 2.1.1
+PORTREVISION= 1
CATEGORIES= devel python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTNAME= SimpleParse-${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
-COMMENT= Python EBNF parser generator for use with mx.TextTools
+COMMENT= Python EBNF parser generator (with mx.TextTools derivative)
-RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}mx-base>0:${PORTSDIR}/lang/py-mx-base
+OPTIONS_DEFINE= MXBASE
+# This one is only needed because of mx.DateTime
+MXBASE_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}mx-base>0:${PORTSDIR}/lang/py-mx-base
USES= python:2
-USE_PYTHON= distutils autoplist
+USE_PYTHON= autoplist distutils
.include <bsd.port.mk>
diff --git a/devel/py-simpleparse/pkg-descr b/devel/py-simpleparse/pkg-descr
index 42cb95795a2b..4d19a80ba538 100644
--- a/devel/py-simpleparse/pkg-descr
+++ b/devel/py-simpleparse/pkg-descr
@@ -1,18 +1,19 @@
-SimpleParse is a BSD-licensed Python package providing a simple parser
-generator for use with the mxTextTools text-tagging engine. SimpleParse allows
-you to generate tagging tables for use with the text-tagging engine directly
-from your EBNF grammar.
+SimpleParse is a BSD-licensed Python package providing a simple and fast parser
+generator using a modified version of the mxTextTools text-tagging engine.
+SimpleParse allows you to generate parsers directly from your EBNF grammar.
-Unlike most parser generators, SimpleParse generates single-pass parsers
-(there is no distinct tokenization stage), an approach taken from the
-predecessor project (mcf.pars) which attempted to create "autonomously parsing
-regex objects". The resulting parsers are not as generalized as those created
-by, for instance, the Earley algorithm, but they do tend to be useful for the
-parsing of computer file formats and the like (as distinct from natural
-language and similar "hard" parsing problems).
+Unlike most parser generators, SimpleParse generates single-pass parsers (there
+is no distinct tokenization stage), an approach taken from the predecessor
+project (mcf.pars) which attempted to create "autonomously parsing regex
+objects". The resulting parsers are not as generalized as those created by, for
+instance, the Earley algorithm, but they do tend to be useful for the parsing
+of computer file formats and the like (as distinct from natural language and
+similar "hard" parsing problems).
-In addition to the parser generator, the SimpleParse project includes a
-sub-project to create a modified version of the mxTextTools engine which
-reorganizes the code to allow for certain common EBNF constructs.
+As of version 2.1.0 the SimpleParse project includes a patched copy of the
+mxTextTools tagging library with the non-recursive rewrite of the core parsing
+loop. This means that you will need to build the extension module to use
+SimpleParse, but the effect is to provide a uniform parsing platform where all
+of the features of a give SimpleParse version are always available.
WWW: http://simpleparse.sourceforge.net/