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 @@ -1,50 +1,54 @@ # Created by: Robert Gogolok PORTNAME= lxml PORTVERSION= 4.6.4 CATEGORIES= devel python MASTER_SITES= CHEESESHOP PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= amdmi3@FreeBSD.org COMMENT= Pythonic binding for the libxml2 and libxslt libraries LICENSE= BSD3CLAUSE 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 DOCS_FILES= CHANGES.txt CREDITS.txt TODO.txt README.rst PORTDOCS= * 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} \ -name '*.so' -exec ${STRIP_CMD} {} + post-install-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${DOCS_FILES:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR} @cd ${WRKSRC} && ${COPYTREE_SHARE} doc ${STAGEDIR}${DOCSDIR} # see upstream Makefile, test target do-test: cd ${WRKSRC} && ${PYTHON_CMD} test.py -p -v .include # if using gcc, force modern GCC due to use of #pragma .if ${CHOSEN_COMPILER_TYPE} == gcc USE_GCC= yes .endif .include 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 @@ -1,9 +1,10 @@ lxml is a Python binding for libxml2 and libxslt. Its aim: * Pythonic API. * Documented. * Use Python unicode strings in API. * Safe (no segfaults). * No manual memory management! WWW: https://lxml.de/ +WWW: https://github.com/lxml/lxml