From owner-svn-ports-head@freebsd.org Mon Feb 1 19:48:26 2016 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8A3ECA979AB; Mon, 1 Feb 2016 19:48:26 +0000 (UTC) (envelope-from sunpoet@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4364511F6; Mon, 1 Feb 2016 19:48:26 +0000 (UTC) (envelope-from sunpoet@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u11JmP90003527; Mon, 1 Feb 2016 19:48:25 GMT (envelope-from sunpoet@FreeBSD.org) Received: (from sunpoet@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u11JmPqj003525; Mon, 1 Feb 2016 19:48:25 GMT (envelope-from sunpoet@FreeBSD.org) Message-Id: <201602011948.u11JmPqj003525@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: sunpoet set sender to sunpoet@FreeBSD.org using -f From: Sunpoet Po-Chuan Hsieh Date: Mon, 1 Feb 2016 19:48:25 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r407751 - head/security/py-m2crypto X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Feb 2016 19:48:26 -0000 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 @@ -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 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