From 833dbc268993b5c1a167b9d03460d28ebca56bcd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=96=D1=83=D0=BD=D1=91=D0=B2=D0=B0=20=D0=9C=D0=B0=D1=80?= =?UTF-8?q?=D0=B8=D1=8F=20=D0=9C=D0=B8=D1=85=D0=B0=D0=B9=D0=BB=D0=BE=D0=B2?= =?UTF-8?q?=D0=BD=D0=B0?= Date: Thu, 11 Jul 2024 22:31:23 +0300 Subject: [PATCH] textproc/py-parsec: universal Python parser combinator library Sponsored by: Serenity Cybersecurity, LLC --- textproc/Makefile | 1 + textproc/py-parsec/Makefile | 21 +++++++++++++++++++++ textproc/py-parsec/distinfo | 3 +++ textproc/py-parsec/pkg-descr | 6 ++++++ 4 files changed, 31 insertions(+) create mode 100644 textproc/py-parsec/Makefile create mode 100644 textproc/py-parsec/distinfo create mode 100644 textproc/py-parsec/pkg-descr diff --git a/textproc/Makefile b/textproc/Makefile index c8a8cfa769e1..252bcc32031a 100644 --- a/textproc/Makefile +++ b/textproc/Makefile @@ -1480,6 +1480,7 @@ SUBDIR += py-paragrep SUBDIR += py-parse SUBDIR += py-parse-type + SUBDIR += py-parsec SUBDIR += py-parsel SUBDIR += py-parsimonious SUBDIR += py-parso diff --git a/textproc/py-parsec/Makefile b/textproc/py-parsec/Makefile new file mode 100644 index 000000000000..1107190bdf4d --- /dev/null +++ b/textproc/py-parsec/Makefile @@ -0,0 +1,21 @@ +PORTNAME= parsec +PORTVERSION= 3.17 +CATEGORIES= textproc python +MASTER_SITES= PYPI + +MAINTAINER= awoonyaa@gmail.com +COMMENT= Universal Python parser combinator library +WWW= https://github.com/sighingnow/parsec.py + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools>=61:devel/py-setuptools@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR} + +USES= python +USE_PYTHON= autoplist pep517 + +NO_ARCH= yes + +.include diff --git a/textproc/py-parsec/distinfo b/textproc/py-parsec/distinfo new file mode 100644 index 000000000000..2867c260c6a4 --- /dev/null +++ b/textproc/py-parsec/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1720723267 +SHA256 (parsec-3.17.tar.gz) = 9748d64af43184c2e5887b88f9fca45065df2bf00a18e42df185ebb2c92aea53 +SIZE (parsec-3.17.tar.gz) = 17269 diff --git a/textproc/py-parsec/pkg-descr b/textproc/py-parsec/pkg-descr new file mode 100644 index 000000000000..17509f43abfb --- /dev/null +++ b/textproc/py-parsec/pkg-descr @@ -0,0 +1,6 @@ +A universal Python parser combinator library inspired by Parsec library of +Haskell. +A parser combinator is a function (higher-order function) that accepts several +parsers as arguments and return a new parser as result. Parser combinators +enable a recursive descent parsing strategy, this parsing technique facilitates +modular piecewise construction and testing.