Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pycryptodome/, dev-python/pycryptodome/files/
Date: Sun, 31 Oct 2021 20:33:34
Message-Id: 1635712408.46a2594793fad37bb1568d848df0126d54183c92.mgorny@gentoo
1 commit: 46a2594793fad37bb1568d848df0126d54183c92
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sun Oct 31 20:32:45 2021 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sun Oct 31 20:33:28 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=46a25947
7
8 dev-python/pycryptodome: Remove old
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/pycryptodome/Manifest | 2 -
13 .../files/pycryptodome-3.10.1-parallel-make.patch | 22 ---------
14 dev-python/pycryptodome/pycryptodome-3.10.1.ebuild | 54 ----------------------
15 dev-python/pycryptodome/pycryptodome-3.10.4.ebuild | 45 ------------------
16 4 files changed, 123 deletions(-)
17
18 diff --git a/dev-python/pycryptodome/Manifest b/dev-python/pycryptodome/Manifest
19 index a65f0924ccc..33a931ee4c0 100644
20 --- a/dev-python/pycryptodome/Manifest
21 +++ b/dev-python/pycryptodome/Manifest
22 @@ -1,3 +1 @@
23 -DIST pycryptodome-3.10.1.tar.gz 15545471 BLAKE2B ef1922efd0b6bef6beaee76fe03a4201a6f1cf2a203abcb12b96a5ea7c8de59a34ac704fe7508a3728a214efc0755f289d66dc14a0adb3f2eac882bc8db691bf SHA512 4c7e7e989d5363064e7e184f6b00a174045e03916cdf1199626afd7fe75eb5efcd13888ecdee607b974e96faad465694b384eb6d91edb8de1d0277ad71888c52
24 -DIST pycryptodome-3.10.4.tar.gz 15552675 BLAKE2B aaa6e6768d099b7b229f2b920671577800baea11b8b5a8efdd818f3d5685e46ac51d1c79d9c987f1d93cc9df98c786028137348c946da7aff35fc436ff21894c SHA512 1ee2f6c499d7ea73bdeafc94b1e91b45bf888f84ea214a01db180e030b4724264ba05e16241c465484ec13075f5300f6c489229bedb84e54b93e2852906b634f
25 DIST pycryptodome-3.11.0.tar.gz 15555515 BLAKE2B fee6a2f2ac0659c82efed2cfdaf7c4d1e4813aaa2203c41c249a7e512a4ec1c955f443022e81847fbfd095cd95f205c054b8c3ef90f4741063c679798cd8c5e5 SHA512 9a6f94a78909b236e9b9224915495f092891951b76836396706c11e8e87717ff84fd92fe04ad641d6a5a0ef1f3b339990d7f21a326e72b95b166a76169240964
26
27 diff --git a/dev-python/pycryptodome/files/pycryptodome-3.10.1-parallel-make.patch b/dev-python/pycryptodome/files/pycryptodome-3.10.1-parallel-make.patch
28 deleted file mode 100644
29 index 3b8f503bb29..00000000000
30 --- a/dev-python/pycryptodome/files/pycryptodome-3.10.1-parallel-make.patch
31 +++ /dev/null
32 @@ -1,22 +0,0 @@
33 -diff -dupr a/setup.py b/setup.py
34 ---- a/setup.py 2021-02-09 13:46:16.138626317 +0100
35 -+++ b/setup.py 2021-02-09 13:46:51.116065599 +0100
36 -@@ -360,7 +360,7 @@ ext_modules = [
37 - Extension("Crypto.Cipher._raw_eksblowfish",
38 - include_dirs=['src/'],
39 - define_macros=[('EKS',None),],
40 -- sources=["src/blowfish.c"],
41 -+ sources=["src/blowfish_eks.c"],
42 - py_limited_api=True),
43 - Extension("Crypto.Cipher._raw_cast",
44 - include_dirs=['src/'],
45 -@@ -442,7 +442,8 @@ ext_modules = [
46 - # Math
47 - Extension("Crypto.Math._modexp",
48 - include_dirs=['src/'],
49 -- sources=['src/modexp.c', 'src/siphash.c', 'src/modexp_utils.c', 'src/mont.c'],
50 -+ sources=['src/modexp.c', 'src/siphash.c', 'src/modexp_utils.c',
51 -+ 'src/mont_math.c'],
52 - py_limited_api=True,
53 - ),
54 - ]
55
56 diff --git a/dev-python/pycryptodome/pycryptodome-3.10.1.ebuild b/dev-python/pycryptodome/pycryptodome-3.10.1.ebuild
57 deleted file mode 100644
58 index 16d872aebcf..00000000000
59 --- a/dev-python/pycryptodome/pycryptodome-3.10.1.ebuild
60 +++ /dev/null
61 @@ -1,54 +0,0 @@
62 -# Copyright 1999-2021 Gentoo Authors
63 -# Distributed under the terms of the GNU General Public License v2
64 -
65 -EAPI=7
66 -
67 -PYTHON_COMPAT=( python3_{8..10} pypy3 )
68 -PYTHON_REQ_USE="threads(+)"
69 -
70 -inherit distutils-r1
71 -
72 -DESCRIPTION="A self-contained cryptographic library for Python"
73 -HOMEPAGE="https://www.pycryptodome.org/
74 - https://github.com/Legrandin/pycryptodome/
75 - https://pypi.org/project/pycryptodome/"
76 -SRC_URI="
77 - https://github.com/Legrandin/pycryptodome/archive/v${PV}.tar.gz
78 - -> ${P}.tar.gz"
79 -
80 -LICENSE="BSD-2 Unlicense"
81 -SLOT="0"
82 -KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
83 -IUSE=""
84 -
85 -DEPEND="
86 - dev-libs/gmp:0=
87 - >=dev-libs/libtomcrypt-1.18.2-r1:="
88 -BDEPEND="
89 - virtual/python-cffi[${PYTHON_USEDEP}]"
90 -RDEPEND="
91 - ${DEPEND}
92 - ${BDEPEND}
93 - !dev-python/pycrypto"
94 -
95 -PATCHES=(
96 - "${FILESDIR}/pycryptodome-3.10.1-parallel-make.patch"
97 - "${FILESDIR}/pycryptodome-3.10.1-system-libtomcrypt.patch"
98 -)
99 -
100 -distutils_enable_tests setup.py
101 -
102 -python_prepare_all() {
103 - # parallel make fixes
104 - # Multiple targets were compiling the same file, setuptools doesn't
105 - # understand this and you get race conditions where a file gets
106 - # overwritten while it's linking. This makes the files look like separate
107 - # files so this race won't happen
108 - ln src/blowfish.c src/blowfish_eks.c || die
109 - ln src/mont.c src/mont_math.c || die
110 -
111 - # make sure we're unbundling it correctly
112 - rm -r src/libtom || die
113 -
114 - distutils-r1_python_prepare_all
115 -}
116
117 diff --git a/dev-python/pycryptodome/pycryptodome-3.10.4.ebuild b/dev-python/pycryptodome/pycryptodome-3.10.4.ebuild
118 deleted file mode 100644
119 index 9bf29ac5892..00000000000
120 --- a/dev-python/pycryptodome/pycryptodome-3.10.4.ebuild
121 +++ /dev/null
122 @@ -1,45 +0,0 @@
123 -# Copyright 1999-2021 Gentoo Authors
124 -# Distributed under the terms of the GNU General Public License v2
125 -
126 -EAPI=8
127 -
128 -PYTHON_COMPAT=( python3_{8..10} pypy3 )
129 -PYTHON_REQ_USE="threads(+)"
130 -
131 -inherit distutils-r1
132 -
133 -DESCRIPTION="A self-contained cryptographic library for Python"
134 -HOMEPAGE="https://www.pycryptodome.org/
135 - https://github.com/Legrandin/pycryptodome/
136 - https://pypi.org/project/pycryptodome/"
137 -SRC_URI="
138 - https://github.com/Legrandin/pycryptodome/archive/v${PV}.tar.gz
139 - -> ${P}.tar.gz"
140 -
141 -LICENSE="BSD-2 Unlicense"
142 -SLOT="0"
143 -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
144 -IUSE=""
145 -
146 -DEPEND="
147 - dev-libs/gmp:0=
148 - >=dev-libs/libtomcrypt-1.18.2-r1:="
149 -BDEPEND="
150 - virtual/python-cffi[${PYTHON_USEDEP}]"
151 -RDEPEND="
152 - ${DEPEND}
153 - ${BDEPEND}
154 - !dev-python/pycrypto"
155 -
156 -PATCHES=(
157 - "${FILESDIR}/pycryptodome-3.10.1-system-libtomcrypt.patch"
158 -)
159 -
160 -distutils_enable_tests setup.py
161 -
162 -python_prepare_all() {
163 - # make sure we're unbundling it correctly
164 - rm -r src/libtom || die
165 -
166 - distutils-r1_python_prepare_all
167 -}