summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarien Zwart <marienz@gentoo.org>2006-02-13 21:26:38 +0000
committerMarien Zwart <marienz@gentoo.org>2006-02-13 21:26:38 +0000
commitc1467215a72a1b88fd79b94e37f016a004a33e08 (patch)
treee503dabf78b0a088da549bfa5e788f2ecee9e3ab /dev-python/pycrypto
parentmodular X dep (diff)
downloadgentoo-2-c1467215a72a1b88fd79b94e37f016a004a33e08.tar.gz
gentoo-2-c1467215a72a1b88fd79b94e37f016a004a33e08.tar.bz2
gentoo-2-c1467215a72a1b88fd79b94e37f016a004a33e08.zip
Use the slotted/renamed sancho for testing.
(Portage version: 2660-svn)
Diffstat (limited to 'dev-python/pycrypto')
-rw-r--r--dev-python/pycrypto/ChangeLog9
-rw-r--r--dev-python/pycrypto/Manifest19
-rw-r--r--dev-python/pycrypto/files/digest-pycrypto-2.0.1-r43
-rw-r--r--dev-python/pycrypto/files/pycrypto-2.0.1-sancho-package-rename.patch78
-rw-r--r--dev-python/pycrypto/pycrypto-2.0.1-r4.ebuild52
5 files changed, 150 insertions, 11 deletions
diff --git a/dev-python/pycrypto/ChangeLog b/dev-python/pycrypto/ChangeLog
index af8a48f4bb73..2704bdde6bfa 100644
--- a/dev-python/pycrypto/ChangeLog
+++ b/dev-python/pycrypto/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for dev-python/pycrypto
# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/pycrypto/ChangeLog,v 1.31 2006/02/06 03:01:34 agriffis Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/pycrypto/ChangeLog,v 1.32 2006/02/13 21:26:38 marienz Exp $
+
+*pycrypto-2.0.1-r4 (13 Feb 2006)
+
+ 13 Feb 2006; Marien Zwart <marienz@gentoo.org>
+ +files/pycrypto-2.0.1-sancho-package-rename.patch,
+ +pycrypto-2.0.1-r4.ebuild:
+ Use the slotted/renamed sancho for testing.
06 Feb 2006; Aron Griffis <agriffis@gentoo.org> pycrypto-2.0.1-r2.ebuild:
Mark 2.0.1-r2 stable on alpha
diff --git a/dev-python/pycrypto/Manifest b/dev-python/pycrypto/Manifest
index d5fc1159c945..e3775eb26f2e 100644
--- a/dev-python/pycrypto/Manifest
+++ b/dev-python/pycrypto/Manifest
@@ -1,6 +1,3 @@
------BEGIN PGP SIGNED MESSAGE-----
-Hash: SHA1
-
MD5 24896560d8822ed80de0a53178700ca3 ChangeLog 4328
RMD160 e1f5303a0e2fae1ce27609720da4db76fa0f0963 ChangeLog 4328
SHA256 62d075161d1ddeeb36428c0dc854f258a1af2d38838acc82410fbee601bc7f09 ChangeLog 4328
@@ -19,6 +16,9 @@ SHA256 94427cf1651edc0397aa2b3124298a998b809ac7a5522e9fb6f7ed7edc3d89a0 files/di
MD5 e4a3877aceb3f8d3124d9c742f9eef06 files/digest-pycrypto-2.0.1-r3 244
RMD160 7388a77e1c70274a3d2fb079e1c3e1aa47024256 files/digest-pycrypto-2.0.1-r3 244
SHA256 94427cf1651edc0397aa2b3124298a998b809ac7a5522e9fb6f7ed7edc3d89a0 files/digest-pycrypto-2.0.1-r3 244
+MD5 e4a3877aceb3f8d3124d9c742f9eef06 files/digest-pycrypto-2.0.1-r4 244
+RMD160 7388a77e1c70274a3d2fb079e1c3e1aa47024256 files/digest-pycrypto-2.0.1-r4 244
+SHA256 94427cf1651edc0397aa2b3124298a998b809ac7a5522e9fb6f7ed7edc3d89a0 files/digest-pycrypto-2.0.1-r4 244
MD5 1cef0f805deeb0a9632606f1f97cce29 files/pycrypto-2.0.1-bindist.patch 1561
RMD160 b0064385698a1cb9ed741b2e68ed682b4d395a61 files/pycrypto-2.0.1-bindist.patch 1561
SHA256 c95a6b3628d5472f749004c5d9a95a812d1b9c1fc7bfa5a538fa64210a021d9a files/pycrypto-2.0.1-bindist.patch 1561
@@ -28,6 +28,9 @@ SHA256 c20f8d91ee74c4c0347957386c60b38a510c368e3778ae80f015af68c963d29d files/py
MD5 f069c9d2982308d3b8043000d596c6a7 files/pycrypto-2.0.1-ia64.patch 442
RMD160 c027362c20b414ec07e7eda9ee0002d4c75c78c4 files/pycrypto-2.0.1-ia64.patch 442
SHA256 7ccfa05d0b5ebe9bc9a9edc40226f6bc8adbff27aaae0da70881f53afdaf506c files/pycrypto-2.0.1-ia64.patch 442
+MD5 61b567525b9971f7bb752436fa4f1d50 files/pycrypto-2.0.1-sancho-package-rename.patch 2540
+RMD160 349ab449ecb5c5e40e87548fe8da2dd1ae3ae544 files/pycrypto-2.0.1-sancho-package-rename.patch 2540
+SHA256 a739df1d1f84fc5abf369482ceabf0469d6cfc627e4b843645f8071b27c78358 files/pycrypto-2.0.1-sancho-package-rename.patch 2540
MD5 b3a3f729857328b1801aa072802cc955 files/pycrypto-2.0.1-uint32.patch 1078
RMD160 40f20f4d3a89b8927eaee415418e1d9f2b2be33b files/pycrypto-2.0.1-uint32.patch 1078
SHA256 b8cb928cbf1713eff06c6899cb773c9a02f28e85de02e7d6f45ed1be413b47dd files/pycrypto-2.0.1-uint32.patch 1078
@@ -46,13 +49,9 @@ SHA256 3a9a0216d8e8ec9fa606bd437dc6dd4b8a0b37e9f9040df80f3e074633e3b10b pycrypto
MD5 bcdf12d03a9c589211be5dff838905ee pycrypto-2.0.1-r3.ebuild 1393
RMD160 92242c8d06a430f0d160f4ae7e541de0767edeab pycrypto-2.0.1-r3.ebuild 1393
SHA256 90537f23d195480233a35ff5d1204d39c79b22f6c6a1f9404d294556d21c99fa pycrypto-2.0.1-r3.ebuild 1393
+MD5 6b87e2ed8351144a2e6582a80d2c6cc2 pycrypto-2.0.1-r4.ebuild 1451
+RMD160 fe7bb1e2b918ac73a091a7b25134a03b956430a5 pycrypto-2.0.1-r4.ebuild 1451
+SHA256 6e86fb308216b35f86e657efd021ef7a0912a2c4ebbbf00e21db2df8b5afe29e pycrypto-2.0.1-r4.ebuild 1451
MD5 13d0293b0075a1d14f88ce4df3a1188b pycrypto-2.0.1.ebuild 762
RMD160 70e38bec63b2448e0cfdbbfe8fbf3ab07a30fe17 pycrypto-2.0.1.ebuild 762
SHA256 b85d654c25a7403b351ac536c0a855d4f8c898d59a98b88b0e68d7e808b03870 pycrypto-2.0.1.ebuild 762
------BEGIN PGP SIGNATURE-----
-Version: GnuPG v1.4.2 (GNU/Linux)
-
-iD8DBQFD5rwYJrHF4yAQTrARAmLVAJ0Z+slBFD6DXsiIWKL6dQCdIkjFEgCeP90W
-dC5L+ffSI9JnccVLjdioQGA=
-=WDJk
------END PGP SIGNATURE-----
diff --git a/dev-python/pycrypto/files/digest-pycrypto-2.0.1-r4 b/dev-python/pycrypto/files/digest-pycrypto-2.0.1-r4
new file mode 100644
index 000000000000..4e5b88462ffb
--- /dev/null
+++ b/dev-python/pycrypto/files/digest-pycrypto-2.0.1-r4
@@ -0,0 +1,3 @@
+MD5 4d5674f3898a573691ffb335e8d749cd pycrypto-2.0.1.tar.gz 154292
+RMD160 5ce938a24f77f414e42680c17ef9b6dc8de94a2e pycrypto-2.0.1.tar.gz 154292
+SHA256 b08d4ed54c9403c77778a3803e53a4f33f359b42d94f6f3e14abb1bf4941e6ea pycrypto-2.0.1.tar.gz 154292
diff --git a/dev-python/pycrypto/files/pycrypto-2.0.1-sancho-package-rename.patch b/dev-python/pycrypto/files/pycrypto-2.0.1-sancho-package-rename.patch
new file mode 100644
index 000000000000..fddf7c045adb
--- /dev/null
+++ b/dev-python/pycrypto/files/pycrypto-2.0.1-sancho-package-rename.patch
@@ -0,0 +1,78 @@
+=== modified file 'test/test_chaffing.py'
+--- test/test_chaffing.py
++++ test/test_chaffing.py
+@@ -4,7 +4,7 @@
+
+ __revision__ = "$Id: pycrypto-2.0.1-sancho-package-rename.patch,v 1.1 2006/02/13 21:26:38 marienz Exp $"
+
+-from sancho.unittest import TestScenario, parse_args, run_scenarios
++from sancho0.unittest import TestScenario, parse_args, run_scenarios
+ from Crypto.Protocol import Chaffing
+
+ tested_modules = [ "Crypto.Protocol.Chaffing" ]
+
+=== modified file 'test/test_hashes.py'
+--- test/test_hashes.py
++++ test/test_hashes.py
+@@ -5,7 +5,7 @@
+ __revision__ = "$Id: pycrypto-2.0.1-sancho-package-rename.patch,v 1.1 2006/02/13 21:26:38 marienz Exp $"
+
+ import time, string, binascii
+-from sancho.unittest import TestScenario, parse_args, run_scenarios
++from sancho0.unittest import TestScenario, parse_args, run_scenarios
+
+ from Crypto.Hash import *
+ import testdata
+
+=== modified file 'test/test_number.py'
+--- test/test_number.py
++++ test/test_number.py
+@@ -4,7 +4,7 @@
+
+ __revision__ = "$Id: pycrypto-2.0.1-sancho-package-rename.patch,v 1.1 2006/02/13 21:26:38 marienz Exp $"
+
+-from sancho.unittest import TestScenario, parse_args, run_scenarios
++from sancho0.unittest import TestScenario, parse_args, run_scenarios
+ from Crypto.Util import number
+
+ tested_modules = [ "Crypto.Util.number" ]
+
+=== modified file 'test/test_publickey.py'
+--- test/test_publickey.py
++++ test/test_publickey.py
+@@ -5,7 +5,7 @@
+ __revision__ = "$Id: pycrypto-2.0.1-sancho-package-rename.patch,v 1.1 2006/02/13 21:26:38 marienz Exp $"
+
+ import sys, cPickle
+-from sancho.unittest import TestScenario, parse_args, run_scenarios
++from sancho0.unittest import TestScenario, parse_args, run_scenarios
+ from Crypto.PublicKey import *
+ from Crypto.Util.randpool import RandomPool
+ from Crypto.Util import number
+
+=== modified file 'test/test_randpool.py'
+--- test/test_randpool.py
++++ test/test_randpool.py
+@@ -4,7 +4,7 @@
+
+ __revision__ = "$Id: pycrypto-2.0.1-sancho-package-rename.patch,v 1.1 2006/02/13 21:26:38 marienz Exp $"
+
+-from sancho.unittest import TestScenario, parse_args, run_scenarios
++from sancho0.unittest import TestScenario, parse_args, run_scenarios
+ from Crypto.Hash import SHA
+ from Crypto.Util import randpool
+
+
+=== modified file 'test/test_rfc1751.py'
+--- test/test_rfc1751.py
++++ test/test_rfc1751.py
+@@ -5,7 +5,7 @@
+ __revision__ = "$Id: pycrypto-2.0.1-sancho-package-rename.patch,v 1.1 2006/02/13 21:26:38 marienz Exp $"
+
+ import binascii
+-from sancho.unittest import TestScenario, parse_args, run_scenarios
++from sancho0.unittest import TestScenario, parse_args, run_scenarios
+ from Crypto.Util import RFC1751
+
+ tested_modules = [ "Crypto.Util.RFC1751" ]
+
diff --git a/dev-python/pycrypto/pycrypto-2.0.1-r4.ebuild b/dev-python/pycrypto/pycrypto-2.0.1-r4.ebuild
new file mode 100644
index 000000000000..ad7186c1d105
--- /dev/null
+++ b/dev-python/pycrypto/pycrypto-2.0.1-r4.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-python/pycrypto/pycrypto-2.0.1-r4.ebuild,v 1.1 2006/02/13 21:26:38 marienz Exp $
+
+inherit eutils distutils toolchain-funcs flag-o-matic
+
+DESCRIPTION="Python Cryptography Toolkit"
+HOMEPAGE="http://www.amk.ca/python/code/crypto.html"
+SRC_URI="http://www.amk.ca/files/python/crypto/${P}.tar.gz"
+
+LICENSE="freedist"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc-macos ~ppc64 ~s390 ~sh ~sparc ~x86"
+IUSE="bindist gmp test"
+
+RDEPEND="virtual/python
+ gmp? ( dev-libs/gmp )"
+DEPEND="${RDEPEND}
+ test? ( =dev-python/sancho-0.11-r1 )"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ use bindist && epatch "${FILESDIR}"/${P}-bindist.patch
+ epatch "${FILESDIR}"/${P}-gmp.patch
+ epatch "${FILESDIR}"/pycrypto-2.0.1-uint32.patch
+ epatch "${FILESDIR}"/${P}-sancho-package-rename.patch
+}
+
+src_compile() {
+ use gmp \
+ && export USE_GMP=1 \
+ || export USE_GMP=0
+ # sha256 hashes occasionally trigger ssp when built with
+ # -finline-functions (implied by -O3).
+ gcc-specs-ssp && append-flags -fno-inline-functions
+ distutils_src_compile
+}
+
+src_test() {
+ export PYTHONPATH=$(ls -d "${S}"/build/lib.*/)
+ python ./test.py || die "test failed"
+ if use test ; then
+ local x
+ cd test
+ for x in test_*.py ; do
+ python ${x} || die "${x} failed"
+ done
+ fi
+}
+
+DOCS="ACKS ChangeLog PKG-INFO README TODO Doc/pycrypt.tex"