openbsd-ports/security/py-crypto/Makefile

44 lines
1.1 KiB
Makefile

# $OpenBSD: Makefile,v 1.21 2011/10/10 10:08:05 mpi Exp $
SHARED_ONLY = Yes
COMMENT = cryptographic tools for Python
MODPY_EGG_VERSION = 2.3
DISTNAME = pycrypto-${MODPY_EGG_VERSION}
PKGNAME = py-crypto-${MODPY_EGG_VERSION}
CATEGORIES = security devel
HOMEPAGE = https://www.dlitz.net/software/pycrypto/
MAINTAINER = Martin Pieuchot <mpi@openbsd.org>
# Public domain (patented algorithms removed by patch)
PERMIT_PACKAGE_CDROM = Yes
PERMIT_PACKAGE_FTP = Yes
PERMIT_DISTFILES_CDROM = Yes
PERMIT_DISTFILES_FTP = Yes
MASTER_SITES = http://ftp.dlitz.net/pub/dlitz/crypto/pycrypto/
MODULES = lang/python
LIB_DEPENDS = devel/gmp
WANTLIB = gmp>=6
DOCSDIR = ${PREFIX}/share/doc/py-crypto
pre-configure:
@${SUBST_CMD} ${WRKSRC}/setup.py
rm ${WRKSRC}/lib/Crypto/SelfTest/Cipher/test_ARC2.py
rm ${WRKSRC}/lib/Crypto/SelfTest/Hash/test_MD2.py
post-install:
${INSTALL_DATA_DIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
do-regress: fake
cd ${WRKSRC} && ${MAKE_ENV} \
PYTHONPATH=${WRKINST}${MODPY_SITEPKG} ${MODPY_BIN} setup.py test
.include <bsd.port.mk>