git: c4d00da330ff - main - devel/py-lxml: force regeneration of cython files

From: Dmitry Marakasov <amdmi3_at_FreeBSD.org>
Date: Wed, 17 Nov 2021 20:49:49 UTC
The branch main has been updated by amdmi3:

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

commit c4d00da330ffa3ea2745072c4b84dca9bb8c60fd
Author:     Dmitry Marakasov <amdmi3@FreeBSD.org>
AuthorDate: 2021-11-17 20:41:45 +0000
Commit:     Dmitry Marakasov <amdmi3@FreeBSD.org>
CommitDate: 2021-11-17 20:41:47 +0000

    devel/py-lxml: force regeneration of cython files
    
    This fixes build with upcoming python 3.11 and potential future
    version compatibility problems. While here, add another WWW:.
---
 devel/py-lxml/Makefile  | 8 ++++++--
 devel/py-lxml/pkg-descr | 1 +
 2 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/devel/py-lxml/Makefile b/devel/py-lxml/Makefile
index deafb73ffae6..40be577cb179 100644
--- a/devel/py-lxml/Makefile
+++ b/devel/py-lxml/Makefile
@@ -14,7 +14,7 @@ LICENSE_FILE=	${WRKSRC}/doc/licenses/BSD.txt
 
 USES=		compiler cpe gnome python:3.6+ uniquefiles:dirs
 USE_GNOME=	libxml2 libxslt
-USE_PYTHON=	autoplist concurrent distutils
+USE_PYTHON=	autoplist concurrent cython distutils
 
 LDFLAGS+=	-Wl,-rpath=${LOCALBASE}/lib
 
@@ -25,7 +25,11 @@ OPTIONS_DEFINE=	DOCS
 
 # needed for test to work
 PYDISTUTILS_BUILD_TARGET=	build_ext
-PYDISTUTILS_BUILDARGS=	--inplace
+PYDISTUTILS_BUILDARGS=		--inplace
+
+# force regeneration of cython files
+post-extract:
+	@${FIND} ${WRKSRC} -name "*.c" -delete
 
 post-install:
 	@${FIND} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} \
diff --git a/devel/py-lxml/pkg-descr b/devel/py-lxml/pkg-descr
index 7022da9aeec2..fffd699a75b2 100644
--- a/devel/py-lxml/pkg-descr
+++ b/devel/py-lxml/pkg-descr
@@ -7,3 +7,4 @@ lxml is a Python binding for libxml2 and libxslt. Its aim:
   * No manual memory management!
 
 WWW: https://lxml.de/
+WWW: https://github.com/lxml/lxml