- Update to 0.23.0

- Add LICENSE_FILE
- Relax USES=python

Changes:	https://gitlab.com/m2crypto/m2crypto/commits/master
This commit is contained in:
Sunpoet Po-Chuan Hsieh 2016-02-01 19:48:24 +00:00
parent bab9479ccf
commit ac2b78c837
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=407751
2 changed files with 24 additions and 9 deletions

View file

@ -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>

View file

@ -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