svn commit: r431898 - head/security/py-m2crypto
Sunpoet Po-Chuan Hsieh
sunpoet at FreeBSD.org
Thu Jan 19 19:26:09 UTC 2017
Author: sunpoet
Date: Thu Jan 19 19:26:08 2017
New Revision: 431898
URL: https://svnweb.freebsd.org/changeset/ports/431898
Log:
Fix swig detection
- Add conditional RUN_DEPENDS
- Bump PORTREVISION for dependency and package change
PR: 216257
Submitted by: Luca Pizzamiglio <luca.pizzamiglio at gmail.com>
Modified:
head/security/py-m2crypto/Makefile
Modified: head/security/py-m2crypto/Makefile
==============================================================================
--- head/security/py-m2crypto/Makefile Thu Jan 19 19:26:03 2017 (r431897)
+++ head/security/py-m2crypto/Makefile Thu Jan 19 19:26:08 2017 (r431898)
@@ -3,6 +3,7 @@
PORTNAME= m2crypto
PORTVERSION= 0.25.1
+PORTREVISION= 1
CATEGORIES= security python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -20,7 +21,16 @@ PYDISTUTILS_BUILDARGS= build_ext --opens
USE_PYTHON= autoplist concurrent distutils
USES= python ssl
+post-patch:
+ @${REINPLACE_CMD} -e "s|swig\(', '-version\)|swig3.0\1|" ${WRKSRC}/${PYSETUP}
+
post-install:
${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/M2Crypto/__m2crypto.so
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${PYTHON_REL} < 3500
+RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}typing>=0:devel/py-typing
+.endif
+
+.include <bsd.port.post.mk>
More information about the svn-ports-all
mailing list