diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 13:49:04 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 17:38:18 -0700 |
commit | 56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch) | |
tree | 3f91093cdb475e565ae857f1c5a7fd339e2d781e /dev-python/pycrypto | |
download | gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2 gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip |
proj/gentoo: Initial commit
This commit represents a new era for Gentoo:
Storing the gentoo-x86 tree in Git, as converted from CVS.
This commit is the start of the NEW history.
Any historical data is intended to be grafted onto this point.
Creation process:
1. Take final CVS checkout snapshot
2. Remove ALL ChangeLog* files
3. Transform all Manifests to thin
4. Remove empty Manifests
5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$
5.1. Do not touch files with -kb/-ko keyword flags.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'dev-python/pycrypto')
-rw-r--r-- | dev-python/pycrypto/Manifest | 1 | ||||
-rw-r--r-- | dev-python/pycrypto/files/pycrypto-2.6.1-cross-compile.patch | 13 | ||||
-rw-r--r-- | dev-python/pycrypto/metadata.xml | 38 | ||||
-rw-r--r-- | dev-python/pycrypto/pycrypto-2.6.1-r1.ebuild | 70 | ||||
-rw-r--r-- | dev-python/pycrypto/pycrypto-2.6.1.ebuild | 54 |
5 files changed, 176 insertions, 0 deletions
diff --git a/dev-python/pycrypto/Manifest b/dev-python/pycrypto/Manifest new file mode 100644 index 000000000000..9239372fd28a --- /dev/null +++ b/dev-python/pycrypto/Manifest @@ -0,0 +1 @@ +DIST pycrypto-2.6.1.tar.gz 446240 SHA256 f2ce1e989b272cfcb677616763e0a2e7ec659effa67a88aa92b3a65528f60a3c SHA512 20a4aed4dac4e9e61d773ebc1d48ea577e9870c33f396be53d075a9bf8487d93e75e200179882d81e452efd0f6751789bac434f6f431b3e7c1c8ef9dba392847 WHIRLPOOL b63734145729f75838357002956297d1ea9e51288939e6f481eaaa12c7da256ab95e4d80d19e618445224fb46a8e2cb1ef5ee0b4b817767d472e3a7c4707371b diff --git a/dev-python/pycrypto/files/pycrypto-2.6.1-cross-compile.patch b/dev-python/pycrypto/files/pycrypto-2.6.1-cross-compile.patch new file mode 100644 index 000000000000..2ce24a49cc71 --- /dev/null +++ b/dev-python/pycrypto/files/pycrypto-2.6.1-cross-compile.patch @@ -0,0 +1,13 @@ +do not hardcode -I/usr/include as it's useless and breaks cross-compiles + +--- a/setup.py ++++ b/setup.py +@@ -370,7 +370,7 @@ kw = {'name':"pycrypto", + 'ext_modules': plat_ext + [ + # _fastmath (uses GNU mp library) + Extension("Crypto.PublicKey._fastmath", +- include_dirs=['src/','/usr/include/'], ++ include_dirs=['src/'], + libraries=['gmp'], + sources=["src/_fastmath.c"]), + diff --git a/dev-python/pycrypto/metadata.xml b/dev-python/pycrypto/metadata.xml new file mode 100644 index 000000000000..15b44a0ae34f --- /dev/null +++ b/dev-python/pycrypto/metadata.xml @@ -0,0 +1,38 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>python</herd> + <longdescription> +The Python Cryptography Toolkit is a collection of cryptographic +algorithms and protocols, implemented for use from Python. Among +the contents of the package: + + * Hash functions: MD2, MD4, RIPEMD, SHA256. + * Block encryption algorithms: AES, ARC2, Blowfish, CAST, DES, + Triple-DES, IDEA, RC5. + * Stream encryption algorithms: ARC4, simple XOR. + * Public-key algorithms: RSA, DSA, ElGamal, qNEW. + * Protocols: All-or-nothing transforms, chaffing/winnowing. + * Miscellaneous: RFC1751 module for converting 128-key keys into + a set of English words, primality testing. + * Some demo programs (currently all quite old and outdated). + +</longdescription> + <longdescription lang="ja"> +このPython言語のクリプトグラフィー・ツールキットは、暗号手法のアルゴリズムとプロ +トコルの集合で、Python言語から利用されるための実装です。このパッケージ内容は以下 +です。 + + + * Hash ファンクション: MD2, MD4, RIPEMD, SHA256. + * ブロック・エンクリプション・アルゴリズム: AES, ARC2, Blowfish, CAST, DES, + Triple-DES, IDEA, RC5. + * ストリーム・エンクリプション・アルゴリズム: ARC4, simple XOR. + * 公開鍵アルゴリズム: RSA, DSA, ElGamal, qNEW. + * プロトコル: All-or-nothing transforms, chaffing/winnowing. + * その他: RFC1751 module for converting 128-key keys into + a set of English words, primality testing. + * デモ・プログラム(現在では完全に古く時代遅れなもの) + +</longdescription> +</pkgmetadata> diff --git a/dev-python/pycrypto/pycrypto-2.6.1-r1.ebuild b/dev-python/pycrypto/pycrypto-2.6.1-r1.ebuild new file mode 100644 index 000000000000..608c0e50f160 --- /dev/null +++ b/dev-python/pycrypto/pycrypto-2.6.1-r1.ebuild @@ -0,0 +1,70 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +PYTHON_COMPAT=( python{2_7,3_3,3_4} ) + +inherit distutils-r1 + +DESCRIPTION="Python Cryptography Toolkit" +HOMEPAGE="http://www.dlitz.net/software/pycrypto/ http://pypi.python.org/pypi/pycrypto" +SRC_URI="http://ftp.dlitz.net/pub/dlitz/crypto/pycrypto/${P}.tar.gz" + +LICENSE="PSF-2 public-domain" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~ia64-hpux ~x86-interix ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~x86-solaris" +IUSE="doc +gmp test" + +RDEPEND="gmp? ( dev-libs/gmp )" +DEPEND="${RDEPEND} + doc? ( + dev-python/docutils[${PYTHON_USEDEP}] + $(python_gen_cond_dep '>=dev-python/epydoc-3[${PYTHON_USEDEP}]' python2_7) + )" + +REQUIRED_USE="test? ( gmp )" + +python_prepare_all() { + epatch "${FILESDIR}"/${P}-cross-compile.patch + # Fix Crypto.PublicKey.RSA._RSAobj.exportKey(format="OpenSSH") with Python 3 + # https://github.com/dlitz/pycrypto/commit/ab25c6fe95ee92fac3187dcd90e0560ccacb084a + sed \ + -e "/keyparts =/s/'ssh-rsa'/b('ssh-rsa')/" \ + -e "s/keystring = ''.join/keystring = b('').join/" \ + -e "s/return 'ssh-rsa '/return b('ssh-rsa ')/" \ + -i lib/Crypto/PublicKey/RSA.py || die + distutils-r1_python_prepare_all +} + +python_configure_all() { + # the configure does not interact with python in any way, + # it just sets up the C header file. + econf \ + $(use_with gmp) \ + --without-mpir +} + +python_compile_all() { + if use doc; then + rst2html.py Doc/pycrypt.rst > Doc/index.html + epydoc --config=Doc/epydoc-config --exclude-introspect="^Crypto\.(Random\.OSRNG\.nt|Util\.winrandom)$" || die + fi +} + +python_compile() { + python_is_python3 || local -x CFLAGS="${CFLAGS} -fno-strict-aliasing" + distutils-r1_python_compile +} + +python_test() { + esetup.py test +} + +python_install_all() { + local DOCS=( ACKS ChangeLog README TODO ) + use doc && local HTML_DOCS=( Doc/apidoc/. Doc/index.html ) + + distutils-r1_python_install_all +} diff --git a/dev-python/pycrypto/pycrypto-2.6.1.ebuild b/dev-python/pycrypto/pycrypto-2.6.1.ebuild new file mode 100644 index 000000000000..f3a4efd80a26 --- /dev/null +++ b/dev-python/pycrypto/pycrypto-2.6.1.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +PYTHON_COMPAT=( python{2_7,3_3,3_4} ) + +inherit distutils-r1 + +DESCRIPTION="Python Cryptography Toolkit" +HOMEPAGE="http://www.dlitz.net/software/pycrypto/ http://pypi.python.org/pypi/pycrypto" +SRC_URI="http://ftp.dlitz.net/pub/dlitz/crypto/pycrypto/${P}.tar.gz" + +LICENSE="PSF-2 public-domain" +SLOT="0" +KEYWORDS="alpha amd64 arm hppa ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh sparc x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~ia64-hpux ~x86-interix ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~x86-solaris" +IUSE="doc +gmp" + +RDEPEND="gmp? ( dev-libs/gmp )" +DEPEND="${RDEPEND} + doc? ( dev-python/docutils + >=dev-python/epydoc-3 )" + +python_configure_all() { + # the configure does not interact with python in any way, + # it just sets up the C header file. + econf \ + $(use_with gmp) \ + --without-mpir +} + +python_compile_all() { + if use doc; then + rst2html.py Doc/pycrypt.rst > Doc/index.html + epydoc --config=Doc/epydoc-config --exclude-introspect="^Crypto\.(Random\.OSRNG\.nt|Util\.winrandom)$" || die + fi +} + +python_compile() { + python_is_python3 || local -x CFLAGS="${CFLAGS} -fno-strict-aliasing" + distutils-r1_python_compile +} + +python_test() { + esetup.py test +} + +python_install_all() { + local DOCS=( ACKS ChangeLog README TODO ) + use doc && local HTML_DOCS=( Doc/apidoc/. Doc/index.html ) + + distutils-r1_python_install_all +} |