Add py-pyPEG2.

I am currently in the process of creating ports for various components
related to CloudABI, including ARPC (an RPC framework that supports file
descriptor passing) and Flower (a capability-based network backplane).

The former comes with a script called 'aprotoc' for creating C++
bindings for messages and RPC services. This script depends on Python's
pyPEG2 package to parse (a subset of) Protobuf's .proto grammar.

Reviewed by:	wg
Differential Revision:	https://reviews.freebsd.org/D12048
This commit is contained in:
Ed Schouten 2017-08-17 09:45:13 +00:00
parent 42b2ed0e2f
commit 77320676ab
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=448083
4 changed files with 31 additions and 0 deletions

View File

@ -1305,6 +1305,7 @@
SUBDIR += py-parsimonious
SUBDIR += py-pdfminer
SUBDIR += py-pss
SUBDIR += py-pyPEG2
SUBDIR += py-pyctpp2
SUBDIR += py-pyelasticsearch
SUBDIR += py-pyes

View File

@ -0,0 +1,20 @@
# Created by: Ed Schouten <ed@FreeBSD.org>
# $FreeBSD$
PORTNAME= pyPEG2
PORTVERSION= 2.15.2
CATEGORIES= textproc python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= ed@FreeBSD.org
COMMENT= Parsing Expression Grammar (PEG) parser for Python
LICENSE= GPLv2+
LICENSE_FILE= ${WRKSRC}/LICENSE.txt
USES?= python
USE_PYTHON= autoplist distutils
NO_ARCH= yes
.include <bsd.port.mk>

View File

@ -0,0 +1,3 @@
TIMESTAMP = 1502893061
SHA256 (pyPEG2-2.15.2.tar.gz) = 2b2d4f80d8e1a9370b2a91f4a25f4abf7f69b85c8da84cd23ec36451958a1f6d
SIZE (pyPEG2-2.15.2.tar.gz) = 40334

View File

@ -0,0 +1,7 @@
PyPEG2 is a parser-interpreter for Parsing Expression Grammars (PEGs).
PEGs look similar to context-free grammars (CFGs), except that the choice
operator always picks the first matching option. This allows for parsing
in linear time.
WWW: https://fdik.org/pyPEG/