Date: Thu, 19 Jan 2017 19:26:08 +0000 (UTC) From: Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r431898 - head/security/py-m2crypto Message-ID: <201701191926.v0JJQ8kN094962@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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@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>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201701191926.v0JJQ8kN094962>