git: 833dbc268993 - main - textproc/py-parsec: universal Python parser combinator library

From: Gleb Popov <arrowd_at_FreeBSD.org>
Date: Fri, 12 Jul 2024 19:00:56 UTC
The branch main has been updated by arrowd:

URL: https://cgit.FreeBSD.org/ports/commit/?id=833dbc268993b5c1a167b9d03460d28ebca56bcd

commit 833dbc268993b5c1a167b9d03460d28ebca56bcd
Author:     Жунёва Мария Михайловна <zhunyova@mts.ru>
AuthorDate: 2024-07-11 19:31:23 +0000
Commit:     Gleb Popov <arrowd@FreeBSD.org>
CommitDate: 2024-07-12 19:00:36 +0000

    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(+)

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.