1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-23 04:23:08 +00:00
freebsd-ports/devel/py-lxml/Makefile
2020-02-13 15:46:21 +00:00

52 lines
1.2 KiB
Makefile

# Created by: Robert Gogolok <gogo@cs.uni-sb.de>
# $FreeBSD$
PORTNAME= lxml
PORTVERSION= 4.5.0
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 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 <bsd.port.pre.mk>
# if using gcc, force modern GCC due to use of #pragma
.if ${CHOSEN_COMPILER_TYPE} == gcc
USE_GCC= yes
.endif
.include <bsd.port.post.mk>