1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-24 00:45:52 +00:00

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
This commit is contained in:
Ruslan Makhmatkhanov 2014-12-18 14:54:12 +00:00
parent 2156aff470
commit d5e5cb857d
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=374905
2 changed files with 21 additions and 17 deletions

View File

@ -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>

View File

@ -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/