Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 Sep 2024 06:19:32 GMT
From:      Po-Chuan Hsieh <sunpoet@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: f83ff47b96db - main - devel/py-python-pcre: Convert to USE_PYTHON=pep517
Message-ID:  <202409180619.48I6JWZR033695@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by sunpoet:

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

commit f83ff47b96db4ebaf12d38a0bc9819c39441b515
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2024-09-18 05:56:34 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2024-09-18 06:13:15 +0000

    devel/py-python-pcre: Convert to USE_PYTHON=pep517
    
    - Use USES=localbase:ldflags
    - Update pkg-descr
    - Bump PORTREVISION for package change
---
 devel/py-python-pcre/Makefile             | 12 ++++++------
 devel/py-python-pcre/files/patch-setup.py | 11 -----------
 devel/py-python-pcre/pkg-descr            |  2 +-
 3 files changed, 7 insertions(+), 18 deletions(-)

diff --git a/devel/py-python-pcre/Makefile b/devel/py-python-pcre/Makefile
index 8c911e1a38b3..5db3acbc7d18 100644
--- a/devel/py-python-pcre/Makefile
+++ b/devel/py-python-pcre/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	python-pcre
 DISTVERSION=	0.7
+PORTREVISION=	1
 CATEGORIES=	devel python
 MASTER_SITES=	PYPI
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -11,15 +12,14 @@ WWW=		https://github.com/awahlig/python-pcre
 LICENSE=	BSD3CLAUSE
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}setuptools>=0:devel/py-setuptools@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR}
 LIB_DEPENDS=	libpcre.so:devel/pcre
 
-USES=		python
-USE_PYTHON=	autoplist concurrent distutils
-
-post-patch:
-	@${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|' ${WRKSRC}/setup.py
+USES=		localbase:ldflags python
+USE_PYTHON=	autoplist concurrent pep517
 
 post-install:
-	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/python${PYTHON_VER}/site-packages/_pcre*.so
+	${FIND} ${STAGEDIR}${PYTHON_SITELIBDIR} -name '*.so' -exec ${STRIP_CMD} {} +
 
 .include <bsd.port.mk>
diff --git a/devel/py-python-pcre/files/patch-setup.py b/devel/py-python-pcre/files/patch-setup.py
deleted file mode 100644
index e678a0114e7f..000000000000
--- a/devel/py-python-pcre/files/patch-setup.py
+++ /dev/null
@@ -1,11 +0,0 @@
---- 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'])
- 
- 
diff --git a/devel/py-python-pcre/pkg-descr b/devel/py-python-pcre/pkg-descr
index 4c075e0aa162..7a7b980dcf74 100644
--- a/devel/py-python-pcre/pkg-descr
+++ b/devel/py-python-pcre/pkg-descr
@@ -1 +1 @@
-A Python PCRE library
+python-pcre is a Python bindings for PCRE regex engine.



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