diff options
Diffstat (limited to 'devel/py-lxml/Makefile')
-rw-r--r-- | devel/py-lxml/Makefile | 30 |
1 files changed, 12 insertions, 18 deletions
diff --git a/devel/py-lxml/Makefile b/devel/py-lxml/Makefile index 3b8e6743d44b..e444b1aed608 100644 --- a/devel/py-lxml/Makefile +++ b/devel/py-lxml/Makefile @@ -1,11 +1,10 @@ PORTNAME= lxml -PORTVERSION= 4.9.3 -PORTREVISION= 2 +DISTVERSION= 6.0.0 CATEGORIES= devel python MASTER_SITES= PYPI PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} -MAINTAINER= amdmi3@FreeBSD.org +MAINTAINER= vishwin@FreeBSD.org COMMENT= Pythonic binding for the libxml2 and libxslt libraries WWW= https://lxml.de/ \ https://github.com/lxml/lxml @@ -13,9 +12,12 @@ WWW= https://lxml.de/ \ LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/doc/licenses/BSD.txt -USES= compiler cpe gnome python uniquefiles:dirs +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools>0:devel/py-setuptools@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR} + +USES= compiler cpe gnome python USE_GNOME= libxml2 libxslt -USE_PYTHON= autoplist concurrent cython distutils +USE_PYTHON= autoplist concurrent cython3 pep517 LDFLAGS+= -Wl,-rpath=${LOCALBASE}/lib @@ -24,23 +26,12 @@ PORTDOCS= * OPTIONS_DEFINE= DOCS -# needed for test to work -PYDISTUTILS_BUILD_TARGET= build_ext -PYDISTUTILS_BUILDARGS= --inplace - # force regeneration of cython files post-extract: @${FIND} ${WRKSRC} -name "*.c" -delete -pre-configure: # remove with update to 5.x - @if ! xml2-config --version | ${GREP} -q ^2\.11; then \ - ${REINPLACE_CMD} -e 's|, xmlerror.xmlError\*|, const xmlerror.xmlError*|' \ - ${WRKSRC}/src/lxml/*.pxi; \ - fi - post-install: - @${FIND} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} \ - -name '*.so' -exec ${STRIP_CMD} {} + + @${FIND} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} -name '*.so' -exec ${STRIP_CMD} {} + post-install-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR} @@ -48,8 +39,11 @@ post-install-DOCS-on: @cd ${WRKSRC} && ${COPYTREE_SHARE} doc ${STAGEDIR}${DOCSDIR} # see upstream Makefile, test target +# tests require compiled extensions in the source directories do-test: - cd ${WRKSRC} && ${PYTHON_CMD} test.py -p -v + cd ${BUILD_WRKSRC} && \ + ${SETENV} ${MAKE_ENV} ${PYTHON_CMD} ${PYDISTUTILS_SETUP} build_ext --inplace && \ + ${PYTHON_CMD} test.py -p -v .include <bsd.port.pre.mk> |