2010-11-27 21:31:08 +00:00
|
|
|
# Template file for 'pycrypto'
|
|
|
|
pkgname=pycrypto
|
2013-02-21 18:55:18 +00:00
|
|
|
version=2.6
|
|
|
|
revision=1
|
2010-11-27 21:31:08 +00:00
|
|
|
build_style=python-module
|
2012-05-23 16:26:56 +00:00
|
|
|
makedepends="gmp-devel python-devel"
|
2010-11-27 21:31:08 +00:00
|
|
|
short_desc="The Python Cryptography Toolkit"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2013-02-21 18:55:18 +00:00
|
|
|
homepage="https://www.dlitz.net/software/pycrypto/"
|
|
|
|
license="PSF, Public domain"
|
|
|
|
distfiles="http://ftp.dlitz.net/pub/dlitz/crypto/pycrypto/$pkgname-$version.tar.gz"
|
|
|
|
checksum=7293c9d7e8af2e44a82f86eb9c3b058880f4bcc884bf3ad6c8a34b64986edde8
|
2010-11-27 21:31:08 +00:00
|
|
|
long_desc="
|
|
|
|
The Python cryptography toolkit is intended to provide a reliable and stable
|
|
|
|
base for writing Python programs that require cryptographic functions."
|
|
|
|
|
2013-05-26 08:41:55 +00:00
|
|
|
if [ "$CROSS_BUILD" ]; then
|
|
|
|
hostmakedepends="python"
|
|
|
|
fi
|
|
|
|
|
2013-02-21 18:55:18 +00:00
|
|
|
pre_build() {
|
2013-04-08 23:49:27 +00:00
|
|
|
if [ "$CROSS_BUILD" ]; then
|
2013-02-21 18:55:18 +00:00
|
|
|
sed -e "s|'/usr/include/'|''|g" -i setup.py
|
2013-05-26 08:41:55 +00:00
|
|
|
configure_args+=" ac_cv_func_malloc_0_nonnull=yes "
|
2013-02-21 18:55:18 +00:00
|
|
|
fi
|
2013-05-26 08:41:55 +00:00
|
|
|
./configure ${configure_args}
|
2013-02-21 18:55:18 +00:00
|
|
|
}
|
2013-04-14 09:13:30 +00:00
|
|
|
|
|
|
|
pycrypto_package() {
|
|
|
|
pycompile_module="Crypto"
|
|
|
|
pkg_install() {
|
|
|
|
vmove usr
|
|
|
|
}
|
|
|
|
}
|