diff --git a/devel/Makefile b/devel/Makefile index 16f16e315421..3ea4fcdd10e5 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -4331,6 +4331,7 @@ SUBDIR += py-rauth SUBDIR += py-raven SUBDIR += py-rcsparse + SUBDIR += py-re2 SUBDIR += py-rednose SUBDIR += py-repl SUBDIR += py-repoze.lru diff --git a/devel/py-re2/Makefile b/devel/py-re2/Makefile new file mode 100644 index 000000000000..69e28922ea9d --- /dev/null +++ b/devel/py-re2/Makefile @@ -0,0 +1,28 @@ +# Created by: Edward Chuang +# $FreeBSD$ + +PORTNAME= re2 +PORTVERSION= 0.2.22 +CATEGORIES= devel python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= edwardchuang@gmail.com +COMMENT= Python wrapper for Google RE2 using Cython + +LICENSE= BSD3CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= cython:lang/cython +LIB_DEPENDS= libre2.so:devel/re2 + +USES= python:-2.7 +USE_PYTHON= autoplist distutils +PYDISTUTILS_BUILDARGS= --cython +EXTRACT_AFTER_ARGS= --exclude src/re2.cpp + +post-install: + @${FIND} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} \ + -name '*.so' -exec ${STRIP_CMD} {} + + +.include diff --git a/devel/py-re2/distinfo b/devel/py-re2/distinfo new file mode 100644 index 000000000000..82fd9acf3d83 --- /dev/null +++ b/devel/py-re2/distinfo @@ -0,0 +1,2 @@ +SHA256 (re2-0.2.22.tar.gz) = 1d3903832351b9a4bdcc1da68ad75529d4fa69adfcad40bbdb2bf43869d4743f +SIZE (re2-0.2.22.tar.gz) = 1927331 diff --git a/devel/py-re2/pkg-descr b/devel/py-re2/pkg-descr new file mode 100644 index 000000000000..fa44e6f507a4 --- /dev/null +++ b/devel/py-re2/pkg-descr @@ -0,0 +1,5 @@ +pyre2 is a Python extension that wraps Google's RE2 regular expression +library. It implements many of the features of Python's built-in re +module with compatible interfaces. + +WWW: https://pypi.python.org/pypi/re2/