git: 9b40ceaf9ad8 - main - devel/py-google-re2: Add py-google-re2 0.1.20210401

Po-Chuan Hsieh sunpoet at FreeBSD.org
Tue May 11 21:51:16 UTC 2021


The branch main has been updated by sunpoet:

URL: https://cgit.FreeBSD.org/ports/commit/?id=9b40ceaf9ad8d57f638e14274f060debcfdc7de5

commit 9b40ceaf9ad8d57f638e14274f060debcfdc7de5
Author:     Po-Chuan Hsieh <sunpoet at FreeBSD.org>
AuthorDate: 2021-05-11 21:13:11 +0000
Commit:     Po-Chuan Hsieh <sunpoet at FreeBSD.org>
CommitDate: 2021-05-11 21:46:54 +0000

    devel/py-google-re2: Add py-google-re2 0.1.20210401
    
    google-re2 is a rop-in replacement for the re module.
    
    It uses RE2 under the hood, of course, so various PCRE features (e.g.
    backreferences, look-around assertions) are not supported.
    
    WWW: https://github.com/google/re2/tree/abseil/python
---
 devel/Makefile                |  1 +
 devel/py-google-re2/Makefile  | 24 ++++++++++++++++++++++++
 devel/py-google-re2/distinfo  |  3 +++
 devel/py-google-re2/pkg-descr |  6 ++++++
 4 files changed, 34 insertions(+)

diff --git a/devel/Makefile b/devel/Makefile
index daf7feb5b66c..b3c7d42efbf0 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -4482,6 +4482,7 @@
     SUBDIR += py-google-crc32c0
     SUBDIR += py-google-i18n-address
     SUBDIR += py-google-pasta
+    SUBDIR += py-google-re2
     SUBDIR += py-googleapis-common-protos
     SUBDIR += py-grab
     SUBDIR += py-graphene
diff --git a/devel/py-google-re2/Makefile b/devel/py-google-re2/Makefile
new file mode 100644
index 000000000000..6ea5cc6b2dae
--- /dev/null
+++ b/devel/py-google-re2/Makefile
@@ -0,0 +1,24 @@
+# Created by: Po-Chuan Hsieh <sunpoet at FreeBSD.org>
+
+PORTNAME=	google-re2
+PORTVERSION=	0.1.20210401
+CATEGORIES=	devel python
+MASTER_SITES=	CHEESESHOP
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	sunpoet at FreeBSD.org
+COMMENT=	RE2 Python bindings
+
+LICENSE=	BSD3CLAUSE
+
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pybind11>=0:devel/py-pybind11@${PY_FLAVOR}
+LIB_DEPENDS=	libre2.so:devel/re2
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}six>=0:devel/py-six@${PY_FLAVOR}
+
+USES=		localbase python:3.6+
+USE_PYTHON=	autoplist concurrent distutils
+
+post-install:
+	${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/_re2*.so
+
+.include <bsd.port.mk>
diff --git a/devel/py-google-re2/distinfo b/devel/py-google-re2/distinfo
new file mode 100644
index 000000000000..cccd66b2f758
--- /dev/null
+++ b/devel/py-google-re2/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1620405333
+SHA256 (google-re2-0.1.20210401.tar.gz) = 9565650d9b89b17b7bf5edd75bf749384d3f0201bcda68ca1783b0e9716efd66
+SIZE (google-re2-0.1.20210401.tar.gz) = 9140
diff --git a/devel/py-google-re2/pkg-descr b/devel/py-google-re2/pkg-descr
new file mode 100644
index 000000000000..53abed3ebf05
--- /dev/null
+++ b/devel/py-google-re2/pkg-descr
@@ -0,0 +1,6 @@
+google-re2 is a rop-in replacement for the re module.
+
+It uses RE2 under the hood, of course, so various PCRE features (e.g.
+backreferences, look-around assertions) are not supported.
+
+WWW: https://github.com/google/re2/tree/abseil/python


More information about the dev-commits-ports-all mailing list