# Created by: Robert Gogolok # $FreeBSD: head/devel/py-lxml/Makefile 569412 2021-03-28 20:38:58Z amdmi3 $ PORTNAME= lxml PORTVERSION= 4.6.3 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 gnome python:3.6+ uniquefiles:dirs USE_GNOME= libxml2 libxslt USE_PYTHON= autoplist concurrent 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 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