diff options
| author | Dmitry Marakasov <amdmi3@FreeBSD.org> | 2024-06-25 16:38:23 +0000 |
|---|---|---|
| committer | Dmitry Marakasov <amdmi3@FreeBSD.org> | 2024-06-25 19:13:58 +0000 |
| commit | 12f25812833887fbdfdc82c3747f9f8b0e808ae3 (patch) | |
| tree | e62f0f59a60813fdf109e8e5c8e0fe94e3ad7bf7 | |
| parent | c8a36ed58fae02809fb60be49c6b55dec733967e (diff) | |
| download | ports-12f25812833887fbdfdc82c3747f9f8b0e808ae3.tar.gz ports-12f25812833887fbdfdc82c3747f9f8b0e808ae3.zip | |
devel/py-lxml: fix build with libxml 2.13
PR: 279798
Reported by: diizzy
| -rw-r--r-- | devel/py-lxml/Makefile | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/devel/py-lxml/Makefile b/devel/py-lxml/Makefile index ca21958269f5..0f756bd2fcfb 100644 --- a/devel/py-lxml/Makefile +++ b/devel/py-lxml/Makefile @@ -31,6 +31,12 @@ PYDISTUTILS_BUILDARGS= --inplace 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} {} + |
