Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 1 Jul 2015 08:07:49 +0000 (UTC)
From:      Johannes Jost Meixner <xmj@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r391035 - in head/devel: . py-python-pcre py-python-pcre/files
Message-ID:  <201507010807.t6187nTf063413@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: xmj
Date: Wed Jul  1 08:07:49 2015
New Revision: 391035
URL: https://svnweb.freebsd.org/changeset/ports/391035

Log:
  devel/py-python-pcre: add port.
  
  A Python PCRE library
  
  WWW: https://github.com/awahlig/python-pcre
  
  PR:		196947
  Differential Revision:	https://reviews.freebsd.org/D1596
  Submitted by:	Maxim Filimonov <che@bein.link>
  Reviewed by: koobs, swills (while still in mentorship)

Added:
  head/devel/py-python-pcre/
  head/devel/py-python-pcre/Makefile   (contents, props changed)
  head/devel/py-python-pcre/distinfo   (contents, props changed)
  head/devel/py-python-pcre/files/
  head/devel/py-python-pcre/files/patch-setup.py   (contents, props changed)
  head/devel/py-python-pcre/pkg-descr   (contents, props changed)
Modified:
  head/devel/Makefile

Modified: head/devel/Makefile
==============================================================================
--- head/devel/Makefile	Wed Jul  1 07:55:15 2015	(r391034)
+++ head/devel/Makefile	Wed Jul  1 08:07:49 2015	(r391035)
@@ -4085,6 +4085,7 @@
     SUBDIR += py-pytest-xdist
     SUBDIR += py-python-bugzilla
     SUBDIR += py-python-jenkins
+    SUBDIR += py-python-pcre
     SUBDIR += py-python-statsd
     SUBDIR += py-python2-pythondialog
     SUBDIR += py-pythonbrew

Added: head/devel/py-python-pcre/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/py-python-pcre/Makefile	Wed Jul  1 08:07:49 2015	(r391035)
@@ -0,0 +1,24 @@
+# $FreeBSD$
+
+PORTNAME=	python-pcre
+PORTVERSION=	0.6
+CATEGORIES=	devel python
+MASTER_SITES=	CHEESESHOP
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	che@bein.link
+COMMENT=	Python PCRE bindings
+
+LICENSE=	BSD3CLAUSE
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+BUILD_DEPENDS=	pcre>=6.0:${PORTSDIR}/devel/pcre
+LIB_DEPENDS=	libpcre.so:${PORTSDIR}/devel/pcre
+
+USES=		python:2
+USE_PYTHON=	autoplist distutils
+
+post-patch:
+	${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|' ${WRKSRC}/setup.py
+
+.include <bsd.port.mk>

Added: head/devel/py-python-pcre/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/py-python-pcre/distinfo	Wed Jul  1 08:07:49 2015	(r391035)
@@ -0,0 +1,2 @@
+SHA256 (python-pcre-0.6.tar.gz) = 7fed1460f844075a7b2fe22f728b4645a4440e55ad4337c9efc057b7f5ae1ccc
+SIZE (python-pcre-0.6.tar.gz) = 52690

Added: head/devel/py-python-pcre/files/patch-setup.py
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/py-python-pcre/files/patch-setup.py	Wed Jul  1 08:07:49 2015	(r391035)
@@ -0,0 +1,11 @@
+--- setup.py.orig	2014-08-17 09:21:38 UTC
++++ setup.py
+@@ -33,6 +33,8 @@ from distutils.core import setup, Extens
+ 
+ _pcre = Extension('_pcre', ['src/pcremodule.c'],
+                   libraries=['pcre'],
++                  include_dirs=['%%LOCALBASE%%/include'],
++                  library_dirs=['%%LOCALBASE%%/lib'],
+                   extra_compile_args=['-fno-strict-aliasing'])
+ 
+ 

Added: head/devel/py-python-pcre/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/py-python-pcre/pkg-descr	Wed Jul  1 08:07:49 2015	(r391035)
@@ -0,0 +1,3 @@
+A Python PCRE library
+
+WWW: https://github.com/awahlig/python-pcre



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201507010807.t6187nTf063413>