commit:     1d2ee61f8f2e720dd28fde157d9761e8ac764245
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Mon Feb  9 04:45:51 2026 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Mon Feb  9 04:53:19 2026 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1d2ee61f

dev-python/m2crypto: Bump to 0.47.0

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/m2crypto/Manifest               |  1 +
 dev-python/m2crypto/m2crypto-0.47.0.ebuild | 69 ++++++++++++++++++++++++++++++
 2 files changed, 70 insertions(+)

diff --git a/dev-python/m2crypto/Manifest b/dev-python/m2crypto/Manifest
index 7e649ec976db..aab419fe0fd4 100644
--- a/dev-python/m2crypto/Manifest
+++ b/dev-python/m2crypto/Manifest
@@ -1 +1,2 @@
 DIST m2crypto-0.46.2.tar.gz 501816 BLAKE2B 
5d16c978295e8e9bd4f03c38a9e11af1c69a786c102cec3a4fb08313022efde1992b241ef5fe3e2a8c85368a00f299f8930621ab332de0a30f27eb9752846bfa
 SHA512 
550a66e457cef8a7c5c13054a24c0fcade516119305aed93c095aecbd4d3a444dc04443c59497c2b8a2e390ddaa543ad06194f617d7e6483d39d900a0775e23d
+DIST m2crypto-0.47.0.tar.gz 662529 BLAKE2B 
f1ba6628ae713470850c2fa5db3230b000666ee93184622498ffc5b8527d445b96a0868addd491988147487553fc62aaedff4a651fd2e0b2efacc5fcfb81ec19
 SHA512 
a99a0e084831fde0bafe4be0ca748ec171a9c38225dd5d49d1af5a80122e89c75921589936b58fcd8b71f53ab006038d10dfd362d5cc37ae6bf1018ab378cce8

diff --git a/dev-python/m2crypto/m2crypto-0.47.0.ebuild 
b/dev-python/m2crypto/m2crypto-0.47.0.ebuild
new file mode 100644
index 000000000000..7312739b0317
--- /dev/null
+++ b/dev-python/m2crypto/m2crypto-0.47.0.ebuild
@@ -0,0 +1,69 @@
+# Copyright 2018-2026 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_EXT=1
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{11..14} )
+PYPI_PN="M2Crypto"
+PYTHON_REQ_USE="threads(+)"
+
+inherit distutils-r1 toolchain-funcs pypi
+
+DESCRIPTION="A Python crypto and SSL toolkit"
+HOMEPAGE="
+       https://sr.ht/~mcepl/m2crypto/
+       https://gitlab.com/m2crypto/m2crypto/
+       https://pypi.org/project/M2Crypto/
+"
+
+# openssl via src/SWIG/_lib11_compat.i
+LICENSE="BSD-2 openssl"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv 
~s390 ~sparc ~x86 ~x64-macos"
+IUSE="abi_mips_n32 abi_mips_n64 abi_mips_o32"
+
+DEPEND="
+       dev-libs/openssl:=
+"
+RDEPEND="
+       ${DEPEND}
+       dev-python/packaging[${PYTHON_USEDEP}]
+"
+BDEPEND="
+       >=dev-lang/swig-2.0.9
+"
+
+distutils_enable_tests unittest
+
+swig_define() {
+       local x
+       for x; do
+               if tc-cpp-is-true "defined(${x})"; then
+                       SWIG_FEATURES+=" -D${x}"
+               fi
+       done
+}
+
+src_prepare() {
+       # relies on very exact clock behavior which apparently fails
+       # with inconvenient CONFIG_HZ*
+       sed -e 's:test_server_simple_timeouts:_&:' \
+               -i tests/test_ssl.py || die
+       distutils-r1_src_prepare
+}
+
+python_compile() {
+       # setup.py looks at platform.machine() to determine swig options.
+       # For exotic ABIs, we need to give swig a hint.
+       local -x SWIG_FEATURES=
+
+       # https://bugs.gentoo.org/617946
+       swig_define __ILP32__
+
+       # https://bugs.gentoo.org/674112
+       swig_define __ARM_PCS_VFP
+
+       distutils-r1_python_compile
+}

Reply via email to