pycrypto: Port bep to recipe and bump to 2.6.1

This commit is contained in:
Alexander von Gluck IV
2016-03-14 17:12:49 -05:00
parent dfb75c230e
commit 731670e173
2 changed files with 49 additions and 25 deletions

View File

@@ -1,25 +0,0 @@
DESCRIPTION="
Download, build, install, upgrade, and uninstall Python packages -- easily!
"
HOMEPAGE="http://pypi.python.org/pypi/pycrypto/2.3"
SOURCE_URI="http://pypi.python.org/packages/source/p/pycrypto/pycrypto-2.3.tar.gz"
REVISION="1"
STATUS_HAIKU="unstable"
DEPEND=""
CHECKSUM_MD5="2b811cfbfc342d83ee614097effb8101"
BUILD()
{
cd pycrypto-2.3
python setup.py build
}
INSTALL()
{
cd pycrypto-2.3
if [ -n "${DESTDIR}" ];then
python setup.py install --root=${DESTDIR}
else
python setup.py install --prefix="/boot/common"
fi
}
LICENSE="pycrypto"
COPYRIGHT="2010 Dwayne C. Litzenberger"

View File

@@ -0,0 +1,49 @@
SUMMARY="The Python Cryptography Toolkit"
DESCRIPTION="
This is a collection of both secure hash functions (such as SHA256 and
RIPEMD160), and various encryption algorithms (AES, DES, RSA, ElGamal,
etc.).
"
HOMEPAGE="http://pypi.python.org/pypi/pycrypto/2.6"
SOURCE_URI="http://pypi.python.org/packages/source/p/pycrypto/pycrypto-2.6.1.tar.gz"
REVISION="1"
CHECKSUM_SHA256="f2ce1e989b272cfcb677616763e0a2e7ec659effa67a88aa92b3a65528f60a3c"
ARCHITECTURES="arm ppc x86 x86_gcc2 x86_64"
PROVIDES="
pycrypto = $portVersion
"
REQUIRES="
haiku
cmd:python
"
BUILD_REQUIRES="
haiku_devel
"
BUILD_PREREQUIRES="
cmd:python
cmd:sed
cmd:awk
cmd:cc
cmd:autoconf
"
BUILD()
{
runConfigure ./configure
python setup.py build
}
INSTALL()
{
python setup.py install --prefix=$prefix
}
LICENSE="pycrypto"
COPYRIGHT="2010 Dwayne C. Litzenberger"