Date: Sat, 1 Feb 2014 14:31:40 +0000 (UTC) From: Kubilay Kocak <koobs@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r342144 - head/security/py-pycrypto Message-ID: <201402011431.s11EVeRe007128@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: koobs Date: Sat Feb 1 14:31:40 2014 New Revision: 342144 URL: http://svnweb.freebsd.org/changeset/ports/342144 QAT: https://qat.redports.org/buildarchive/r342144/ Log: security/py-pycrypto: Modernise: STAGE, AUTOPLIST and more - Enable STAGE support - Enable AUTOPLIST, delete pkg-plist - Modernise LIB_DEPENDS - Trim MASTER_SITES to PyPI only - Deprecate OPTIONSFILE override - Use OPTIONS helpers - Remove test: target, leaving regression-test: - Whitespace alignment in OPTIONS Deleted: head/security/py-pycrypto/pkg-plist Modified: head/security/py-pycrypto/Makefile Modified: head/security/py-pycrypto/Makefile ============================================================================== --- head/security/py-pycrypto/Makefile Sat Feb 1 14:23:20 2014 (r342143) +++ head/security/py-pycrypto/Makefile Sat Feb 1 14:31:40 2014 (r342144) @@ -4,8 +4,7 @@ PORTNAME= pycrypto PORTVERSION= 2.6.1 CATEGORIES= security python -MASTER_SITES= CHEESESHOP \ - https://ftp.dlitz.net/pub/dlitz/crypto/pycrypto/ +MASTER_SITES= CHEESESHOP PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= koobs@FreeBSD.org @@ -13,36 +12,25 @@ COMMENT= The Python Cryptography Toolkit USE_PYTHON= yes USE_PYDISTUTILS= yes +PYDISTUTILS_AUTOPLIST= yes HAS_CONFIGURE= yes USE_AUTOTOOLS= autoconf -OPTIONS_DEFINE= GMP +OPTIONS_DEFINE= GMP OPTIONS_DEFAULT= GMP -GMP_DESC= Use GMP for faster DSA/RSA operations -OPTIONSFILE?= ${PORT_DBDIR}/py-${PORTNAME}/options +GMP_DESC= Use GMP for faster DSA/RSA operations -NO_STAGE= yes -.include <bsd.port.options.mk> - -.if ${PORT_OPTIONS:MGMP} -LIB_DEPENDS+= gmp:${PORTSDIR}/math/gmp -CONFIGURE_ARGS+= --with-gmp -CPPFLAGS+= -I${LOCALBASE}/include -LDFLAGS+= -L${LOCALBASE}/lib -PLIST_SUB+= GMP="" -.else -CONFIGURE_ARGS+= --without-gmp -PLIST_SUB+= GMP="@comment " -.endif +GMP_CONFIGURE_WITH= gmp +GMP_CPPFLAGS= -I${LOCALBASE}/include +GMP_LDFLAGS= -L${LOCALBASE}/lib +GMP_LIB_DEPENDS= libgmp.so:${PORTSDIR}/math/gmp pre-patch: @${REINPLACE_CMD} -e "s|%%LOCALBASE%%|${LOCALBASE}|" ${WRKSRC}/setup.py -test: build +regression-test: build cd ${WRKSRC} && ${PYTHON_CMD} ${PYSETUP} test -regression-test: test - .include <bsd.port.mk>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201402011431.s11EVeRe007128>