Date: Mon, 1 Feb 2016 19:48:25 +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: r407751 - head/security/py-m2crypto Message-ID: <201602011948.u11JmPqj003525@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: sunpoet Date: Mon Feb 1 19:48:24 2016 New Revision: 407751 URL: https://svnweb.freebsd.org/changeset/ports/407751 Log: - Update to 0.23.0 - Add LICENSE_FILE - Relax USES=python Changes: https://gitlab.com/m2crypto/m2crypto/commits/master Modified: head/security/py-m2crypto/Makefile head/security/py-m2crypto/distinfo Modified: head/security/py-m2crypto/Makefile ============================================================================== --- head/security/py-m2crypto/Makefile Mon Feb 1 19:48:20 2016 (r407750) +++ head/security/py-m2crypto/Makefile Mon Feb 1 19:48:24 2016 (r407751) @@ -2,7 +2,7 @@ # $FreeBSD$ PORTNAME= m2crypto -PORTVERSION= 0.22.5 +PORTVERSION= 0.23.0 CATEGORIES= security python MASTER_SITES= CHEESESHOP PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} @@ -12,20 +12,18 @@ MAINTAINER= sunpoet@FreeBSD.org COMMENT= Crypto and SSL toolkit for Python LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENCE BUILD_DEPENDS= swig3.0:${PORTSDIR}/devel/swig30 PYDISTUTILS_BUILDARGS= build_ext --openssl=${OPENSSLBASE} --swig=${LOCALBASE}/bin/swig3.0 USE_OPENSSL= yes USE_PYTHON= autoplist distutils -USES= python:2 +USES= python PLIST_FILES= %%PYTHON_SITELIBDIR%%/M2Crypto/_m2crypto.py \ - %%PYTHON_SITELIBDIR%%/M2Crypto/_m2crypto.pyc \ - %%PYTHON_SITELIBDIR%%/M2Crypto/_m2crypto.pyo - -post-install: - ${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/M2Crypto/__m2crypto.so + %%PYTHON_SITELIBDIR%%/M2Crypto/${PYCACHE_DIR}${PYCACHE_FILE}.pyc \ + %%PYTHON_SITELIBDIR%%/M2Crypto/${PYCACHE_DIR}${PYCACHE_FILE}.${PYOEXTENSION} .include <bsd.port.pre.mk> @@ -33,4 +31,21 @@ post-install: IGNORE= py-m2crypto requires OpenSSL 1.0.1e+ .endif +.if ${PYTHON_REL} < 3200 +PYCACHE_DIR= # empty +PYCACHE_FILE= _${PORTNAME} +.else +PYCACHE_DIR= __pycache__/ +PYCACHE_FILE= _${PORTNAME}.cpython-${PYTHON_SUFFIX} +.endif + +.if ${PYTHON_REL} < 3500 +PYOEXTENSION= pyo +.else +PYOEXTENSION= opt-1.pyc +.endif + +post-install: + ${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/M2Crypto/__m2crypto.so + .include <bsd.port.post.mk> Modified: head/security/py-m2crypto/distinfo ============================================================================== --- head/security/py-m2crypto/distinfo Mon Feb 1 19:48:20 2016 (r407750) +++ head/security/py-m2crypto/distinfo Mon Feb 1 19:48:24 2016 (r407751) @@ -1,2 +1,2 @@ -SHA256 (M2Crypto-0.22.5.tar.gz) = b5ce9b09062a2c453e9d9c28dde96b7f90834313e60f419b143d751eb4109fdc -SIZE (M2Crypto-0.22.5.tar.gz) = 80986 +SHA256 (M2Crypto-0.23.0.tar.gz) = 1ac3b6eafa5ff7e2a0796675316d7569b28aada45a7ab74042ad089d15a9567f +SIZE (M2Crypto-0.23.0.tar.gz) = 183590
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201602011948.u11JmPqj003525>