ports/123154: New port: devel/py-yapps2 (an easy-to-use parser generator that generates Python code)

Matthew X. Economou xenophon+fbsdports at irtnog.org
Mon Apr 28 01:20:04 UTC 2008


>Number:         123154
>Category:       ports
>Synopsis:       New port: devel/py-yapps2 (an easy-to-use parser generator that generates Python code)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Apr 28 01:20:04 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     Matthew X. Economou
>Release:        6.3-RELEASE
>Organization:
IRTNOG
>Environment:
FreeBSD cinip101bsdlog.irtnog.net 6.3-RELEASE-p2 FreeBSD 6.3-RELEASE-p2 #4: Fri Apr 18 14:11:55 EDT 2008     root at cinip101bsdlog.irtnog.net:/usr/obj/usr/src/sys/SMP  i386

>Description:
Yapps (Yet Another Python Parser System) is an easy to use parser
generator that is written in Python and generates Python code.  Yapps
is simple, is easy to use, and produces human-readable parsers. It is
not fast, powerful, or particularly flexible.  Yapps is designed to be
used when regular expressions are not enough and other parser systems
are too much: situations where you may write your own recursive
descent parser.  Yapps 1 is more like a functional language (concise
grammars of the form when you see this, return this), while Yapps 2 is
more like an imperative language (more verbose grammars of the form
if/while you see this, do this).  Yapps 2 is more flexible than Yapps
1 but it requires Python 1.5 and is not backwards-compatible with
Yapps 1.

This is the development version of Yapps 2.

WWW: http://theory.stanford.edu/~amitp/yapps/

>How-To-Repeat:
N/A
>Fix:
N/A

Patch attached with submission follows:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	devel/py-yapps2
#	devel/py-yapps2/distinfo
#	devel/py-yapps2/Makefile
#	devel/py-yapps2/pkg-plist
#	devel/py-yapps2/pkg-descr
#
echo c - devel/py-yapps2
mkdir -p devel/py-yapps2 > /dev/null 2>&1
echo x - devel/py-yapps2/distinfo
sed 's/^X//' >devel/py-yapps2/distinfo << 'END-of-devel/py-yapps2/distinfo'
XMD5 (yapps2.1.1.tar.gz) = 7d5ac9cfb2de690adf26d5e83ca7679f
XSHA256 (yapps2.1.1.tar.gz) = e7a0d087b237d1b949bc1643b8e2529ff870005ad38953732ff1c347b0b2fea3
XSIZE (yapps2.1.1.tar.gz) = 19685
END-of-devel/py-yapps2/distinfo
echo x - devel/py-yapps2/Makefile
sed 's/^X//' >devel/py-yapps2/Makefile << 'END-of-devel/py-yapps2/Makefile'
X# New ports collection makefile for:	Yapps2
X# Date created:				27 April 2008
X# Whom:					xenophon+fbsdports at irtnog.org
X#
X# $FreeBSD$
X#
X
XPORTNAME=	yapps2
XPORTVERSION=	2.1.1
XCATEGORIES=	devel python
XMASTER_SITES=	http://theory.stanford.edu/~amitp/yapps/
XPKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
XDISTNAME=	yapps${PORTVERSION}
X
XMAINTAINER=	xenophon+fbsdports at irtnog.org
XCOMMENT=	An easy-to-use parser generator that generates Python code
X
XWRKSRC=		${WRKDIR}/Yapps-${PORTVERSION}
XUSE_PYTHON=	yes
XUSE_PYDISTUTILS=yes
X
X.include <bsd.port.mk>
END-of-devel/py-yapps2/Makefile
echo x - devel/py-yapps2/pkg-plist
sed 's/^X//' >devel/py-yapps2/pkg-plist << 'END-of-devel/py-yapps2/pkg-plist'
Xbin/yapps2
X%%PYTHON_SITELIBDIR%%/yapps/__init__.py
X%%PYTHON_SITELIBDIR%%/yapps/__init__.pyc
X%%PYTHON_SITELIBDIR%%/yapps/__init__.pyo
X%%PYTHON_SITELIBDIR%%/yapps/grammar.py
X%%PYTHON_SITELIBDIR%%/yapps/grammar.pyc
X%%PYTHON_SITELIBDIR%%/yapps/grammar.pyo
X%%PYTHON_SITELIBDIR%%/yapps/parsetree.py
X%%PYTHON_SITELIBDIR%%/yapps/parsetree.pyc
X%%PYTHON_SITELIBDIR%%/yapps/parsetree.pyo
X%%PYTHON_SITELIBDIR%%/yapps/yapps_grammar.py
X%%PYTHON_SITELIBDIR%%/yapps/yapps_grammar.pyc
X%%PYTHON_SITELIBDIR%%/yapps/yapps_grammar.pyo
X%%PYTHON_SITELIBDIR%%/yapps/yappsrt.py
X%%PYTHON_SITELIBDIR%%/yapps/yappsrt.pyc
X%%PYTHON_SITELIBDIR%%/yapps/yappsrt.pyo
X at dirrm %%PYTHON_SITELIBDIR%%/yapps
END-of-devel/py-yapps2/pkg-plist
echo x - devel/py-yapps2/pkg-descr
sed 's/^X//' >devel/py-yapps2/pkg-descr << 'END-of-devel/py-yapps2/pkg-descr'
XYapps (Yet Another Python Parser System) is an easy to use parser
Xgenerator that is written in Python and generates Python code.  Yapps
Xis simple, is easy to use, and produces human-readable parsers. It is
Xnot fast, powerful, or particularly flexible.  Yapps is designed to be
Xused when regular expressions are not enough and other parser systems
Xare too much: situations where you may write your own recursive
Xdescent parser.  Yapps 1 is more like a functional language (concise
Xgrammars of the form when you see this, return this), while Yapps 2 is
Xmore like an imperative language (more verbose grammars of the form
Xif/while you see this, do this).  Yapps 2 is more flexible than Yapps
X1 but it requires Python 1.5 and is not backwards-compatible with
XYapps 1.
X
XThis is the development version of Yapps 2.
X
XWWW: http://theory.stanford.edu/~amitp/yapps/
END-of-devel/py-yapps2/pkg-descr
exit



>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list