svn commit: r553856 - head/security/py-xmlsec
Danilo G. Baio
dbaio at FreeBSD.org
Sun Nov 1 20:16:17 UTC 2020
Author: dbaio
Date: Sun Nov 1 20:16:16 2020
New Revision: 553856
URL: https://svnweb.freebsd.org/changeset/ports/553856
Log:
security/py-xmlsec: Fix build with Python 2
Reported by: pkg-fallout, https://portsfallout.com/port/21147/
Approved by: portmgr blanket
Modified:
head/security/py-xmlsec/Makefile
Modified: head/security/py-xmlsec/Makefile
==============================================================================
--- head/security/py-xmlsec/Makefile Sun Nov 1 20:12:47 2020 (r553855)
+++ head/security/py-xmlsec/Makefile Sun Nov 1 20:16:16 2020 (r553856)
@@ -27,10 +27,16 @@ USE_PYTHON= autoplist distutils flavors
INSTALL_TARGET= install-strip
+.include <bsd.port.pre.mk>
+
+.if ${PYTHON_REL} < 3400
+BUILD_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}pathlib2>=0:devel/py-pathlib2@${PY_FLAVOR}
+.endif
+
post-install:
@${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/xmlsec.so
do-test:
@cd ${WRKSRC} && ${LOCALBASE}/bin/pytest-${PYTHON_VER} tests
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
More information about the svn-ports-head
mailing list