svn commit: r411444 - in head/devel: . py-re2

Jan Beich jbeich at FreeBSD.org
Sun Mar 20 13:33:03 UTC 2016


Author: jbeich
Date: Sun Mar 20 13:33:02 2016
New Revision: 411444
URL: https://svnweb.freebsd.org/changeset/ports/411444

Log:
  devel/py-re2: add new port
  
  PR:		207637
  Submitted by:	edwardchuang at gmail.com
  
  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.
  
  https://pypi.python.org/pypi/re2/

Added:
  head/devel/py-re2/
  head/devel/py-re2/Makefile   (contents, props changed)
  head/devel/py-re2/distinfo   (contents, props changed)
  head/devel/py-re2/pkg-descr   (contents, props changed)
Modified:
  head/devel/Makefile   (contents, props changed)

Modified: head/devel/Makefile
==============================================================================
--- head/devel/Makefile	Sun Mar 20 12:43:49 2016	(r411443)
+++ head/devel/Makefile	Sun Mar 20 13:33:02 2016	(r411444)
@@ -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

Added: head/devel/py-re2/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/py-re2/Makefile	Sun Mar 20 13:33:02 2016	(r411444)
@@ -0,0 +1,28 @@
+# Created by: Edward Chuang <edwardchuang at gmail.com>
+# $FreeBSD$
+
+PORTNAME=	re2
+PORTVERSION=	0.2.22
+CATEGORIES=	devel python
+MASTER_SITES=	CHEESESHOP
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	edwardchuang at 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 <bsd.port.mk>

Added: head/devel/py-re2/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/py-re2/distinfo	Sun Mar 20 13:33:02 2016	(r411444)
@@ -0,0 +1,2 @@
+SHA256 (re2-0.2.22.tar.gz) = 1d3903832351b9a4bdcc1da68ad75529d4fa69adfcad40bbdb2bf43869d4743f
+SIZE (re2-0.2.22.tar.gz) = 1927331

Added: head/devel/py-re2/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/py-re2/pkg-descr	Sun Mar 20 13:33:02 2016	(r411444)
@@ -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/


More information about the svn-ports-head mailing list