/[gentoo-alt]/trunk/prefix/dev-python/pycrypto/pycrypto-2.0.1-r5.ebuild
Gentoo

Contents of /trunk/prefix/dev-python/pycrypto/pycrypto-2.0.1-r5.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1531 - (show annotations) (download)
Tue Sep 19 20:45:53 2006 UTC (8 years, 1 month ago) by grobian
File size: 1465 byte(s)
Sync with main tree


1 # Copyright 1999-2006 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-python/pycrypto/pycrypto-2.0.1-r5.ebuild,v 1.14 2006/09/08 21:24:58 grobian Exp $
4
5 EAPI="prefix"
6
7 inherit eutils distutils toolchain-funcs flag-o-matic
8
9 DESCRIPTION="Python Cryptography Toolkit"
10 HOMEPAGE="http://www.amk.ca/python/code/crypto.html"
11 SRC_URI="http://www.amk.ca/files/python/crypto/${P}.tar.gz"
12
13 LICENSE="freedist"
14 SLOT="0"
15 KEYWORDS="~amd64 ~ppc-macos ~x86 ~x86-macos"
16 IUSE="bindist gmp test"
17
18 RDEPEND="virtual/python
19 gmp? ( dev-libs/gmp )"
20 DEPEND="${RDEPEND}
21 test? ( =dev-python/sancho-0.11-r1 )"
22
23 src_unpack() {
24 unpack ${A}
25 cd "${S}"
26 use bindist && epatch "${FILESDIR}"/${P}-bindist.patch
27 epatch "${FILESDIR}"/${P}-sha256.patch
28 epatch "${FILESDIR}"/${P}-gmp.patch
29 epatch "${FILESDIR}"/pycrypto-2.0.1-uint32.patch
30 epatch "${FILESDIR}"/${P}-sancho-package-rename.patch
31 }
32
33 src_compile() {
34 use gmp \
35 && export USE_GMP=1 \
36 || export USE_GMP=0
37 # sha256 hashes occasionally trigger ssp when built with
38 # -finline-functions (implied by -O3).
39 gcc-specs-ssp && append-flags -fno-inline-functions
40 distutils_src_compile
41 }
42
43 src_test() {
44 export PYTHONPATH=$(ls -d "${S}"/build/lib.*/)
45 python ./test.py || die "test failed"
46 if use test ; then
47 local x
48 cd test
49 for x in test_*.py ; do
50 python ${x} || die "${x} failed"
51 done
52 fi
53 }
54
55 DOCS="ACKS ChangeLog PKG-INFO README TODO Doc/pycrypt.tex"

  ViewVC Help
Powered by ViewVC 1.1.20