git: 3a4d59df3dbe - main - textproc/py-interegular: Add py-interegular 0.3.2

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Wed, 16 Aug 2023 18:30:30 UTC
The branch main has been updated by sunpoet:

URL: https://cgit.FreeBSD.org/ports/commit/?id=3a4d59df3dbeccd82ff6ccdc30eb7589a0153360

commit 3a4d59df3dbeccd82ff6ccdc30eb7589a0153360
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2023-08-16 18:06:54 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2023-08-16 18:25:07 +0000

    textproc/py-interegular: Add py-interegular 0.3.2
    
    Interegular is a library to check a subset of python regexes for intersections.
    Based on grennery by @qntm. Adapted for lark-parser.
    
    The primary difference with grennery library is that interegular is focused on
    speed and compatibility with python re syntax, whereas grennery has a way to
    reconstruct a regex from a FSM, which interegular lacks.
---
 textproc/Makefile                 |  1 +
 textproc/py-interegular/Makefile  | 19 +++++++++++++++++++
 textproc/py-interegular/distinfo  |  3 +++
 textproc/py-interegular/pkg-descr |  6 ++++++
 4 files changed, 29 insertions(+)

diff --git a/textproc/Makefile b/textproc/Makefile
index 77e2a36a5153..126df16034c9 100644
--- a/textproc/Makefile
+++ b/textproc/Makefile
@@ -1379,6 +1379,7 @@
     SUBDIR += py-humanfriendly
     SUBDIR += py-hunspell
     SUBDIR += py-ini2toml
+    SUBDIR += py-interegular
     SUBDIR += py-isbnlib
     SUBDIR += py-isbntools
     SUBDIR += py-iso-639
diff --git a/textproc/py-interegular/Makefile b/textproc/py-interegular/Makefile
new file mode 100644
index 000000000000..97a2a244fcee
--- /dev/null
+++ b/textproc/py-interegular/Makefile
@@ -0,0 +1,19 @@
+PORTNAME=	interegular
+PORTVERSION=	0.3.2
+CATEGORIES=	textproc python
+MASTER_SITES=	PYPI
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	sunpoet@FreeBSD.org
+COMMENT=	Regex intersection checker
+WWW=		https://github.com/MegaIng/interegular
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENSE.txt
+
+USES=		python
+USE_PYTHON=	autoplist concurrent distutils
+
+NO_ARCH=	yes
+
+.include <bsd.port.mk>
diff --git a/textproc/py-interegular/distinfo b/textproc/py-interegular/distinfo
new file mode 100644
index 000000000000..7ab9613f50e4
--- /dev/null
+++ b/textproc/py-interegular/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1691069908
+SHA256 (interegular-0.3.2.tar.gz) = ea4645abace93d9f39d341205686a60b79777a43d94400933effb9c8f2901825
+SIZE (interegular-0.3.2.tar.gz) = 24671
diff --git a/textproc/py-interegular/pkg-descr b/textproc/py-interegular/pkg-descr
new file mode 100644
index 000000000000..daab0d4b6cd0
--- /dev/null
+++ b/textproc/py-interegular/pkg-descr
@@ -0,0 +1,6 @@
+Interegular is a library to check a subset of python regexes for intersections.
+Based on grennery by @qntm. Adapted for lark-parser.
+
+The primary difference with grennery library is that interegular is focused on
+speed and compatibility with python re syntax, whereas grennery has a way to
+reconstruct a regex from a FSM, which interegular lacks.