1 |
commit: 54169befd882200bc6302990e6fcf3b7df176c2e |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed May 3 07:46:32 2017 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed May 3 09:26:00 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=54169bef |
7 |
|
8 |
dev-python/pycrypto: Clean old versions up |
9 |
|
10 |
dev-python/pycrypto/pycrypto-2.6.1-r1.ebuild | 70 ---------------------------- |
11 |
dev-python/pycrypto/pycrypto-2.6.1.ebuild | 54 --------------------- |
12 |
2 files changed, 124 deletions(-) |
13 |
|
14 |
diff --git a/dev-python/pycrypto/pycrypto-2.6.1-r1.ebuild b/dev-python/pycrypto/pycrypto-2.6.1-r1.ebuild |
15 |
deleted file mode 100644 |
16 |
index 1facacf5da7..00000000000 |
17 |
--- a/dev-python/pycrypto/pycrypto-2.6.1-r1.ebuild |
18 |
+++ /dev/null |
19 |
@@ -1,70 +0,0 @@ |
20 |
-# Copyright 1999-2017 Gentoo Foundation |
21 |
-# Distributed under the terms of the GNU General Public License v2 |
22 |
- |
23 |
-EAPI=5 |
24 |
- |
25 |
-PYTHON_COMPAT=( python2_7 python3_{4,5} ) |
26 |
-PYTHON_REQ_USE="threads(+)" |
27 |
- |
28 |
-inherit distutils-r1 |
29 |
- |
30 |
-DESCRIPTION="Python Cryptography Toolkit" |
31 |
-HOMEPAGE="http://www.dlitz.net/software/pycrypto/ https://pypi.python.org/pypi/pycrypto" |
32 |
-SRC_URI="http://ftp.dlitz.net/pub/dlitz/crypto/pycrypto/${P}.tar.gz" |
33 |
- |
34 |
-LICENSE="PSF-2 public-domain" |
35 |
-SLOT="0" |
36 |
-KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ppc64 ~s390 ~sh ~sparc x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~x86-solaris" |
37 |
-IUSE="doc +gmp test" |
38 |
- |
39 |
-RDEPEND="gmp? ( dev-libs/gmp:0= )" |
40 |
-DEPEND="${RDEPEND} |
41 |
- doc? ( |
42 |
- dev-python/docutils[${PYTHON_USEDEP}] |
43 |
- $(python_gen_cond_dep '>=dev-python/epydoc-3[${PYTHON_USEDEP}]' python2_7) |
44 |
- )" |
45 |
- |
46 |
-REQUIRED_USE="test? ( gmp )" |
47 |
- |
48 |
-python_prepare_all() { |
49 |
- local PATCHES=( "${FILESDIR}"/${P}-cross-compile.patch ) |
50 |
- # Fix Crypto.PublicKey.RSA._RSAobj.exportKey(format="OpenSSH") with Python 3 |
51 |
- # https://github.com/dlitz/pycrypto/commit/ab25c6fe95ee92fac3187dcd90e0560ccacb084a |
52 |
- sed \ |
53 |
- -e "/keyparts =/s/'ssh-rsa'/b('ssh-rsa')/" \ |
54 |
- -e "s/keystring = ''.join/keystring = b('').join/" \ |
55 |
- -e "s/return 'ssh-rsa '/return b('ssh-rsa ')/" \ |
56 |
- -i lib/Crypto/PublicKey/RSA.py || die |
57 |
- distutils-r1_python_prepare_all |
58 |
-} |
59 |
- |
60 |
-python_configure_all() { |
61 |
- # the configure does not interact with python in any way, |
62 |
- # it just sets up the C header file. |
63 |
- econf \ |
64 |
- $(use_with gmp) \ |
65 |
- --without-mpir |
66 |
-} |
67 |
- |
68 |
-python_compile_all() { |
69 |
- if use doc; then |
70 |
- rst2html.py Doc/pycrypt.rst > Doc/index.html || die |
71 |
- epydoc --config=Doc/epydoc-config --exclude-introspect="^Crypto\.(Random\.OSRNG\.nt|Util\.winrandom)$" || die |
72 |
- fi |
73 |
-} |
74 |
- |
75 |
-python_compile() { |
76 |
- python_is_python3 || local -x CFLAGS="${CFLAGS} -fno-strict-aliasing" |
77 |
- distutils-r1_python_compile |
78 |
-} |
79 |
- |
80 |
-python_test() { |
81 |
- esetup.py test |
82 |
-} |
83 |
- |
84 |
-python_install_all() { |
85 |
- local DOCS=( ACKS ChangeLog README TODO ) |
86 |
- use doc && local HTML_DOCS=( Doc/apidoc/. Doc/index.html ) |
87 |
- |
88 |
- distutils-r1_python_install_all |
89 |
-} |
90 |
|
91 |
diff --git a/dev-python/pycrypto/pycrypto-2.6.1.ebuild b/dev-python/pycrypto/pycrypto-2.6.1.ebuild |
92 |
deleted file mode 100644 |
93 |
index 507af963d16..00000000000 |
94 |
--- a/dev-python/pycrypto/pycrypto-2.6.1.ebuild |
95 |
+++ /dev/null |
96 |
@@ -1,54 +0,0 @@ |
97 |
-# Copyright 1999-2017 Gentoo Foundation |
98 |
-# Distributed under the terms of the GNU General Public License v2 |
99 |
- |
100 |
-EAPI=5 |
101 |
- |
102 |
-PYTHON_COMPAT=( python{2_7,3_4} ) |
103 |
-PYTHON_REQ_USE="threads(+)" |
104 |
- |
105 |
-inherit distutils-r1 |
106 |
- |
107 |
-DESCRIPTION="Python Cryptography Toolkit" |
108 |
-HOMEPAGE="http://www.dlitz.net/software/pycrypto/ https://pypi.python.org/pypi/pycrypto" |
109 |
-SRC_URI="http://ftp.dlitz.net/pub/dlitz/crypto/pycrypto/${P}.tar.gz" |
110 |
- |
111 |
-LICENSE="PSF-2 public-domain" |
112 |
-SLOT="0" |
113 |
-KEYWORDS="alpha amd64 arm ~arm64 hppa ia64 ~m68k ~mips ppc ppc64 ~s390 ~sh sparc x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~x86-solaris" |
114 |
-IUSE="doc +gmp" |
115 |
- |
116 |
-RDEPEND="gmp? ( dev-libs/gmp:0= )" |
117 |
-DEPEND="${RDEPEND} |
118 |
- doc? ( dev-python/docutils |
119 |
- >=dev-python/epydoc-3 )" |
120 |
- |
121 |
-python_configure_all() { |
122 |
- # the configure does not interact with python in any way, |
123 |
- # it just sets up the C header file. |
124 |
- econf \ |
125 |
- $(use_with gmp) \ |
126 |
- --without-mpir |
127 |
-} |
128 |
- |
129 |
-python_compile_all() { |
130 |
- if use doc; then |
131 |
- rst2html.py Doc/pycrypt.rst > Doc/index.html |
132 |
- epydoc --config=Doc/epydoc-config --exclude-introspect="^Crypto\.(Random\.OSRNG\.nt|Util\.winrandom)$" || die |
133 |
- fi |
134 |
-} |
135 |
- |
136 |
-python_compile() { |
137 |
- python_is_python3 || local -x CFLAGS="${CFLAGS} -fno-strict-aliasing" |
138 |
- distutils-r1_python_compile |
139 |
-} |
140 |
- |
141 |
-python_test() { |
142 |
- esetup.py test |
143 |
-} |
144 |
- |
145 |
-python_install_all() { |
146 |
- local DOCS=( ACKS ChangeLog README TODO ) |
147 |
- use doc && local HTML_DOCS=( Doc/apidoc/. Doc/index.html ) |
148 |
- |
149 |
- distutils-r1_python_install_all |
150 |
-} |