aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorЖунёва Мария Михайловна <zhunyova@mts.ru>2024-07-11 19:31:23 +0000
committerGleb Popov <arrowd@FreeBSD.org>2024-07-12 19:00:36 +0000
commit833dbc268993b5c1a167b9d03460d28ebca56bcd (patch)
treee361550c8b24a01863f7f1eee51fb19184452e02
parentafaf77cbc532f9bc7c150f8edfe3d88b33674ce8 (diff)
textproc/py-parsec: universal Python parser combinator library
Sponsored by: Serenity Cybersecurity, LLC
-rw-r--r--textproc/Makefile1
-rw-r--r--textproc/py-parsec/Makefile21
-rw-r--r--textproc/py-parsec/distinfo3
-rw-r--r--textproc/py-parsec/pkg-descr6
4 files changed, 31 insertions, 0 deletions
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 <bsd.port.mk>
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.