1 |
commit: 7231a8efa3d075e0debbca5fc37a9f3376d3234c |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Nov 3 07:50:42 2020 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Nov 3 08:23:57 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7231a8ef |
7 |
|
8 |
dev-python/pycryptodome: Bump to 3.9.9 |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/pycryptodome/Manifest | 1 + |
13 |
dev-python/pycryptodome/pycryptodome-3.9.9.ebuild | 49 +++++++++++++++++++++++ |
14 |
2 files changed, 50 insertions(+) |
15 |
|
16 |
diff --git a/dev-python/pycryptodome/Manifest b/dev-python/pycryptodome/Manifest |
17 |
index ddeadc268fc..03927272fd7 100644 |
18 |
--- a/dev-python/pycryptodome/Manifest |
19 |
+++ b/dev-python/pycryptodome/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST pycryptodome-3.9.8.tar.gz 15633268 BLAKE2B 8c4f8d4839be0fb09556677514ee6c7f832684f20eb4e355cee87eb5b52a5c09e12712c1865ff89fb5dd6c628ca027374c7cab8a2287aafa4eecedf1095f1a12 SHA512 894e763720df284804fd686d5805980853b86773bb3097bf03d929818b9944e5a257e47414275f302966864751e50ae34dea19ad749910f1ceac31833a53ef7c |
22 |
+DIST pycryptodome-3.9.9.tar.gz 15551299 BLAKE2B ac89bcc2bbe707cb2a9cf2496a2eb74ff5685f11017d60d67558de7ac6cad5c24c43b4074bff01e99378d7c88462e88e88f363c5329fb800e1a7872ad8a34dab SHA512 a1aad4d52256220fe3d5d7f399c2c5e7338d6eb88058da0571fe1c686d74d33ff4bc1c275d4b9373e0ff22f4ddcded75a25387e76fc65047f8612f8856c1bd4d |
23 |
|
24 |
diff --git a/dev-python/pycryptodome/pycryptodome-3.9.9.ebuild b/dev-python/pycryptodome/pycryptodome-3.9.9.ebuild |
25 |
new file mode 100644 |
26 |
index 00000000000..db3ad5cb9dd |
27 |
--- /dev/null |
28 |
+++ b/dev-python/pycryptodome/pycryptodome-3.9.9.ebuild |
29 |
@@ -0,0 +1,49 @@ |
30 |
+# Copyright 1999-2020 Gentoo Authors |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=7 |
34 |
+ |
35 |
+PYTHON_COMPAT=( python3_{6..9} pypy3 ) |
36 |
+PYTHON_REQ_USE="threads(+)" |
37 |
+ |
38 |
+inherit distutils-r1 |
39 |
+ |
40 |
+DESCRIPTION="A self-contained cryptographic library for Python" |
41 |
+HOMEPAGE="https://www.pycryptodome.org |
42 |
+ https://github.com/Legrandin/pycryptodome/ |
43 |
+ https://pypi.org/project/pycryptodome/" |
44 |
+SRC_URI=" |
45 |
+ https://github.com/Legrandin/pycryptodome/archive/v${PV}.tar.gz |
46 |
+ -> ${P}.tar.gz" |
47 |
+ |
48 |
+LICENSE="BSD-2 Unlicense" |
49 |
+SLOT="0" |
50 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~ppc-aix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
51 |
+IUSE="" |
52 |
+ |
53 |
+DEPEND=" |
54 |
+ dev-libs/gmp:0" |
55 |
+BDEPEND=" |
56 |
+ virtual/python-cffi[${PYTHON_USEDEP}]" |
57 |
+RDEPEND=" |
58 |
+ ${DEPEND} |
59 |
+ ${BDEPEND} |
60 |
+ !dev-python/pycrypto" |
61 |
+ |
62 |
+PATCHES=( |
63 |
+ "${FILESDIR}/pycryptodome-3.9.4-parallel-make.patch" |
64 |
+) |
65 |
+ |
66 |
+distutils_enable_tests setup.py |
67 |
+ |
68 |
+python_prepare_all() { |
69 |
+ # parallel make fixes |
70 |
+ # Multiple targets were compiling the same file, setuptools doesn't |
71 |
+ # understand this and you get race conditions where a file gets |
72 |
+ # overwritten while it's linking. This makes the files look like separate |
73 |
+ # files so this race won't happen |
74 |
+ ln src/blowfish.c src/blowfish_eks.c || die |
75 |
+ ln src/mont.c src/mont_math.c || die |
76 |
+ |
77 |
+ distutils-r1_python_prepare_all |
78 |
+} |