diff options
author | Mike Frysinger <vapier@gentoo.org> | 2006-01-06 23:08:29 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2006-01-06 23:08:29 +0000 |
commit | 6f63bf68410b283bf56b0599790b141c054d25d4 (patch) | |
tree | 1e77bb474047820f076569e69fe74f9bb3e6901e /dev-python/pycrypto/files | |
parent | add RESTRICT=test to fix bug 118042; adding missing metadata.xml (diff) | |
download | gentoo-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/files')
-rw-r--r-- | dev-python/pycrypto/files/pycrypto-2.0.1-bindist.patch | 45 |
1 files changed, 45 insertions, 0 deletions
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' + ] + |