diff options
author | Horea Christian <chr@chymera.eu> | 2022-03-31 13:54:51 -0400 |
---|---|---|
committer | Horea Christian <chr@chymera.eu> | 2022-03-31 13:56:49 -0400 |
commit | bbadf5f8a6418119e1179ac1beb457b9272fd20b (patch) | |
tree | 2ae0db481eb4682f123966b365fd352ffe87e841 | |
parent | dev-python/keyrings_alt: compatibility with pycryptodome (diff) | |
download | sci-bbadf5f8.tar.gz sci-bbadf5f8.tar.bz2 sci-bbadf5f8.zip |
dev-python/pycryptodomex: dropped in favour of pycryptodome::gentoo
Patch example can be seen in the dev-python/keyrings_alt package.
Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Horea Christian <chr@chymera.eu>
-rw-r--r-- | dev-python/pycryptodomex/Manifest | 2 | ||||
-rw-r--r-- | dev-python/pycryptodomex/files/pycryptodome-3.10.1-system-libtomcrypt.patch | 50 | ||||
-rw-r--r-- | dev-python/pycryptodomex/metadata.xml | 21 | ||||
-rw-r--r-- | dev-python/pycryptodomex/pycryptodomex-3.10.4.ebuild | 43 | ||||
-rw-r--r-- | dev-python/pycryptodomex/pycryptodomex-3.14.1.ebuild | 43 |
5 files changed, 0 insertions, 159 deletions
diff --git a/dev-python/pycryptodomex/Manifest b/dev-python/pycryptodomex/Manifest deleted file mode 100644 index 75f9dd4a1..000000000 --- a/dev-python/pycryptodomex/Manifest +++ /dev/null @@ -1,2 +0,0 @@ -DIST pycryptodomex-3.10.4.tar.gz 3797210 BLAKE2B d783b26f6bbe879f9323a24934963ca508c6e9c556c0bde2da9c34c83a4374e5614dcfd6eca897cd3ca4d3c1519bb462734a6fe5c552f0e7408c278c4e655578 SHA512 38a24f8a51c6b3d03e6fc7226921956bfaea4d8839a1e308de417d76931eedc969d913b62d7001bf2116ab613c31e6802194127af25cee2ff83971f871a62111 -DIST pycryptodomex-3.14.1.tar.gz 3372625 BLAKE2B d769f0b8cc558c84ee1b0fcb3b3d2eedffb0047f44f67698aa7b6b8818c018300821413f447b58cd035d61b8154a88b8bade3b2148d2e8872fec475eec6462e8 SHA512 cd01431b9178bcb27332741097cf020859c48df83219bac9d6ffa1f52db1f112b562478260baa1aed4674e2833d6e0cd5794a43dafb09fda007fdce7a7330495 diff --git a/dev-python/pycryptodomex/files/pycryptodome-3.10.1-system-libtomcrypt.patch b/dev-python/pycryptodomex/files/pycryptodome-3.10.1-system-libtomcrypt.patch deleted file mode 100644 index 51a5766c1..000000000 --- a/dev-python/pycryptodomex/files/pycryptodome-3.10.1-system-libtomcrypt.patch +++ /dev/null @@ -1,50 +0,0 @@ -diff -dupr a/setup.py b/setup.py ---- a/setup.py 2021-02-09 13:49:46.356455141 +0100 -+++ b/setup.py 2021-02-09 13:50:49.351076275 +0100 -@@ -367,13 +367,15 @@ ext_modules = [ - sources=["src/CAST.c"], - py_limited_api=True), - Extension("Crypto.Cipher._raw_des", -- include_dirs=['src/', 'src/libtom/'], -+ include_dirs=['src/'], - sources=["src/DES.c"], -- py_limited_api=True), -+ py_limited_api=True, -+ extra_link_args=["-ltomcrypt"]), - Extension("Crypto.Cipher._raw_des3", -- include_dirs=['src/', 'src/libtom/'], -+ include_dirs=['src/'], - sources=["src/DES3.c"], -- py_limited_api=True), -+ py_limited_api=True, -+ extra_link_args=["-ltomcrypt"]), - Extension("Crypto.Util._cpuid_c", - include_dirs=['src/'], - sources=['src/cpuid.c'], -@@ -410,9 +412,10 @@ ext_modules = [ - sources=["src/ARC4.c"], - py_limited_api=True), - Extension("Crypto.Cipher._Salsa20", -- include_dirs=['src/', 'src/libtom/'], -+ include_dirs=['src/'], - sources=["src/Salsa20.c"], -- py_limited_api=True), -+ py_limited_api=True, -+ extra_link_args=["-ltomcrypt"]), - Extension("Crypto.Cipher._chacha20", - include_dirs=['src/'], - sources=["src/chacha20.c"], -Only in b: setup.py.orig -Only in b: setup.py.rej -diff -dupr a/src/DES.c b/src/DES.c ---- a/src/DES.c 2021-02-09 13:49:46.336454729 +0100 -+++ b/src/DES.c 2021-02-09 13:50:02.640123617 +0100 -@@ -39,7 +39,7 @@ FAKE_INIT(raw_des3) - - /* Include the actial DES implementation */ - #define LTC_NO_PROTOTYPES --#include "libtom/tomcrypt_des.c" -+#include <tomcrypt.h> - - struct block_state { - symmetric_key sk; diff --git a/dev-python/pycryptodomex/metadata.xml b/dev-python/pycryptodomex/metadata.xml deleted file mode 100644 index f9c82e80b..000000000 --- a/dev-python/pycryptodomex/metadata.xml +++ /dev/null @@ -1,21 +0,0 @@ -<?xml version='1.0' encoding='UTF-8'?> -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> -<pkgmetadata> - <maintainer type="person"> - <email>gentoo@chymera.eu</email> - <name>Horea Christian</name> - </maintainer> - <maintainer type="project"> - <email>sci@gentoo.org</email> - <name>Gentoo Science Project</name> - </maintainer> - <longdescription lang="en"> - Equivalent package to dev-python/cryptodome which installs - modules under the Cryptodome package, so that PyCrypto and - PyCryptodome can coexist. - </longdescription> - <upstream> - <remote-id type="github">Legrandin/pycryptodome</remote-id> - <remote-id type="pypi">pycryptodomex</remote-id> - </upstream> -</pkgmetadata> diff --git a/dev-python/pycryptodomex/pycryptodomex-3.10.4.ebuild b/dev-python/pycryptodomex/pycryptodomex-3.10.4.ebuild deleted file mode 100644 index 0f5ad73c2..000000000 --- a/dev-python/pycryptodomex/pycryptodomex-3.10.4.ebuild +++ /dev/null @@ -1,43 +0,0 @@ -# Copyright 1999-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{8..10} pypy3) -PYTHON_REQ_USE="threads(+)" - -inherit distutils-r1 - -DESCRIPTION="Cryptographic library for Python" -HOMEPAGE="https://www.pycryptodome.org https://pypi.org/project/pycryptodomex/" -SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz" - -LICENSE="BSD-2 Unlicense" -SLOT="0" -KEYWORDS="~amd64 ~arm ~arm64 ~x86 ~amd64-linux ~x86-linux" -IUSE="test" -RESTRICT="!test? ( test )" - -DEPEND=" - dev-libs/gmp:0= - >=dev-libs/libtomcrypt-1.18.2-r1:= -" -BDEPEND="virtual/python-cffi[${PYTHON_USEDEP}]" -RDEPEND=" - ${DEPEND} - ${BDEPEND} -" - -PATCHES=( - "${FILESDIR}/pycryptodome-3.10.1-system-libtomcrypt.patch" -) - -distutils_enable_tests setup.py - -python_prepare_all() { - # make sure we're unbundling it correctly - rm -r src/libtom || die - - distutils-r1_python_prepare_all -} diff --git a/dev-python/pycryptodomex/pycryptodomex-3.14.1.ebuild b/dev-python/pycryptodomex/pycryptodomex-3.14.1.ebuild deleted file mode 100644 index 0f5ad73c2..000000000 --- a/dev-python/pycryptodomex/pycryptodomex-3.14.1.ebuild +++ /dev/null @@ -1,43 +0,0 @@ -# Copyright 1999-2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{8..10} pypy3) -PYTHON_REQ_USE="threads(+)" - -inherit distutils-r1 - -DESCRIPTION="Cryptographic library for Python" -HOMEPAGE="https://www.pycryptodome.org https://pypi.org/project/pycryptodomex/" -SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz" - -LICENSE="BSD-2 Unlicense" -SLOT="0" -KEYWORDS="~amd64 ~arm ~arm64 ~x86 ~amd64-linux ~x86-linux" -IUSE="test" -RESTRICT="!test? ( test )" - -DEPEND=" - dev-libs/gmp:0= - >=dev-libs/libtomcrypt-1.18.2-r1:= -" -BDEPEND="virtual/python-cffi[${PYTHON_USEDEP}]" -RDEPEND=" - ${DEPEND} - ${BDEPEND} -" - -PATCHES=( - "${FILESDIR}/pycryptodome-3.10.1-system-libtomcrypt.patch" -) - -distutils_enable_tests setup.py - -python_prepare_all() { - # make sure we're unbundling it correctly - rm -r src/libtom || die - - distutils-r1_python_prepare_all -} |