summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2006-01-06 23:08:29 +0000
committerMike Frysinger <vapier@gentoo.org>2006-01-06 23:08:29 +0000
commit6f63bf68410b283bf56b0599790b141c054d25d4 (patch)
tree1e77bb474047820f076569e69fe74f9bb3e6901e /dev-python/pycrypto
parentadd RESTRICT=test to fix bug 118042; adding missing metadata.xml (diff)
downloadgentoo-2-6f63bf68410b283bf56b0599790b141c054d25d4.tar.gz
gentoo-2-6f63bf68410b283bf56b0599790b141c054d25d4.tar.bz2
gentoo-2-6f63bf68410b283bf56b0599790b141c054d25d4.zip
Add support for USE=bindist and some sh love.
(Portage version: 2.1_pre3-r1)
Diffstat (limited to 'dev-python/pycrypto')
-rw-r--r--dev-python/pycrypto/ChangeLog9
-rw-r--r--dev-python/pycrypto/files/pycrypto-2.0.1-bindist.patch45
-rw-r--r--dev-python/pycrypto/pycrypto-2.0-r1.ebuild6
-rw-r--r--dev-python/pycrypto/pycrypto-2.0.1.ebuild27
4 files changed, 75 insertions, 12 deletions
diff --git a/dev-python/pycrypto/ChangeLog b/dev-python/pycrypto/ChangeLog
index 37645ddcefba..3e1f1c19653f 100644
--- a/dev-python/pycrypto/ChangeLog
+++ b/dev-python/pycrypto/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for dev-python/pycrypto
-# Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-python/pycrypto/ChangeLog,v 1.19 2005/11/19 10:56:44 chriswhite Exp $
+# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-python/pycrypto/ChangeLog,v 1.20 2006/01/06 23:08:29 vapier Exp $
+
+ 06 Jan 2006; Mike Frysinger <vapier@gentoo.org>
+ +files/pycrypto-2.0.1-bindist.patch, pycrypto-2.0-r1.ebuild,
+ pycrypto-2.0.1.ebuild:
+ Add support for USE=bindist and some sh love.
19 Nov 2005; Chris White <chriswhite@gentoo.org> metadata.xml:
Added japanese metadata.xml translation thanks to Yoshino-san.
diff --git a/dev-python/pycrypto/files/pycrypto-2.0.1-bindist.patch b/dev-python/pycrypto/files/pycrypto-2.0.1-bindist.patch
new file mode 100644
index 000000000000..be1d93260bdd
--- /dev/null
+++ b/dev-python/pycrypto/files/pycrypto-2.0.1-bindist.patch
@@ -0,0 +1,45 @@
+--- pycrypto/setup.py
++++ pycrypto/setup.py
+@@ -94,13 +94,6 @@
+ Extension("Crypto.Cipher.DES3",
+ include_dirs=['src/'],
+ sources=["src/DES3.c"]),
+- Extension("Crypto.Cipher.IDEA",
+- include_dirs=['src/'],
+- sources=["src/IDEA.c"],
+- libraries=HTONS_LIBS),
+- Extension("Crypto.Cipher.RC5",
+- include_dirs=['src/'],
+- sources=["src/RC5.c"]),
+
+ # Stream ciphers
+ Extension("Crypto.Cipher.ARC4",
+@@ -111,6 +104,17 @@
+ sources=["src/XOR.c"]),
+ ]
+
++ if not os.environ.has_key("BINDIST") or os.environ["BINDIST"]!="1":
++ self.extensions += [
++ Extension("Crypto.Cipher.IDEA",
++ include_dirs=['src/'],
++ sources=["src/IDEA.c"],
++ libraries=HTONS_LIBS),
++ Extension("Crypto.Cipher.RC5",
++ include_dirs=['src/'],
++ sources=["src/RC5.c"]),
++ ]
++
+ # Detect which modules should be compiled
+ self.detect_modules()
+ build_ext.build_extensions(self)
+--- pycrypto/Cipher/__init__.py
++++ pycrypto/Cipher/__init__.py
+@@ -24,7 +24,7 @@
+ """
+
+ __all__ = ['AES', 'ARC2', 'ARC4',
+- 'Blowfish', 'CAST', 'DES', 'DES3', 'IDEA', 'RC5',
++ 'Blowfish', 'CAST', 'DES', 'DES3',
+ 'XOR'
+ ]
+
diff --git a/dev-python/pycrypto/pycrypto-2.0-r1.ebuild b/dev-python/pycrypto/pycrypto-2.0-r1.ebuild
index 4239b4da3935..7ea564b49c06 100644
--- a/dev-python/pycrypto/pycrypto-2.0-r1.ebuild
+++ b/dev-python/pycrypto/pycrypto-2.0-r1.ebuild
@@ -1,13 +1,13 @@
-# Copyright 1999-2005 Gentoo Foundation
+# 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-r1.ebuild,v 1.7 2005/09/02 15:48:42 dang Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/pycrypto/pycrypto-2.0-r1.ebuild,v 1.8 2006/01/06 23:08:29 vapier Exp $
inherit distutils
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"
-KEYWORDS="alpha amd64 arm hppa ppc ~sparc x86"
+KEYWORDS="alpha amd64 arm hppa ppc sh ~sparc x86"
LICENSE="freedist"
DEPEND="dev-libs/gmp
virtual/python"
diff --git a/dev-python/pycrypto/pycrypto-2.0.1.ebuild b/dev-python/pycrypto/pycrypto-2.0.1.ebuild
index 85676f1cba3a..35144bf83935 100644
--- a/dev-python/pycrypto/pycrypto-2.0.1.ebuild
+++ b/dev-python/pycrypto/pycrypto-2.0.1.ebuild
@@ -1,15 +1,28 @@
-# Copyright 1999-2005 Gentoo Foundation
+# 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.ebuild,v 1.4 2005/08/27 20:04:33 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-python/pycrypto/pycrypto-2.0.1.ebuild,v 1.5 2006/01/06 23:08:29 vapier Exp $
-inherit distutils
+inherit eutils distutils
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"
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~sparc ~x86"
+
LICENSE="freedist"
-DEPEND="virtual/python"
SLOT="0"
-IUSE=""
-DOCS="ACKS ChangeLog LICENSE MANIFEST PKG-INFO README TODO Doc/pycrypt.tex"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~sh ~sparc ~x86"
+IUSE="bindist"
+
+DEPEND="virtual/python"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ use bindist && epatch "${FILESDIR}"/${P}-bindist.patch
+}
+
+src_test() {
+ python ./test.py || die "test failed"
+}
+
+DOCS="ACKS ChangeLog PKG-INFO README TODO Doc/pycrypt.tex"