summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>2016-02-01 19:48:24 +0000
committerSunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>2016-02-01 19:48:24 +0000
commitac2b78c8372b86dde07c1bec698092deef9ceb17 (patch)
tree6bfb1e2c7042e6f5c82058cbb96df0389eb2d39b
parent- Update to 1.11.0 (diff)
- Update to 0.23.0
- Add LICENSE_FILE - Relax USES=python Changes: https://gitlab.com/m2crypto/m2crypto/commits/master
-rw-r--r--security/py-m2crypto/Makefile29
-rw-r--r--security/py-m2crypto/distinfo4
2 files changed, 24 insertions, 9 deletions
diff --git a/security/py-m2crypto/Makefile b/security/py-m2crypto/Makefile
index 6cc5c766396b..2f30830fbac3 100644
--- a/security/py-m2crypto/Makefile
+++ b/security/py-m2crypto/Makefile
@@ -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>
diff --git a/security/py-m2crypto/distinfo b/security/py-m2crypto/distinfo
index ed11197870b3..629fa637da06 100644
--- a/security/py-m2crypto/distinfo
+++ b/security/py-m2crypto/distinfo
@@ -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