commit:     3c1bbf53c65ad473798a88c7a0f97a4a77c08600
Author:     Saki Xi <space_raccoon <AT> riseup <DOT> net>
AuthorDate: Sun Jan 15 21:02:44 2023 +0000
Commit:     Quentin Retornaz <gentoo <AT> retornaz <DOT> com>
CommitDate: Tue Jan 17 00:50:08 2023 +0000
URL:        https://gitweb.gentoo.org/repo/proj/libressl.git/commit/?id=3c1bbf53

dev-python/m2crypto version update

Signed-off-by: Saki Xi <space_raccoon <AT> riseup.net>
Signed-off-by: Quentin Retornaz <gentoo <AT> retornaz.com>

 dev-python/m2crypto/Manifest               |  1 -
 dev-python/m2crypto/m2crypto-0.38.0.ebuild | 17 +++++++++++++----
 2 files changed, 13 insertions(+), 5 deletions(-)

diff --git a/dev-python/m2crypto/Manifest b/dev-python/m2crypto/Manifest
index 8b5375f..43b9219 100644
--- a/dev-python/m2crypto/Manifest
+++ b/dev-python/m2crypto/Manifest
@@ -1,2 +1 @@
-DIST M2Crypto-0.37.1.tar.gz 1247031 BLAKE2B 
3628150b8da15d7356298b6e52e0d8fa7875921a184a0eba3a97eff0588c9e0fee340c92fd486919057d900d6e3b2b711174dde9761fe247848f92ac6434df0a
 SHA512 
9a5e0220704b4897a9ca7efa4b3b57447b9175c52e8039a85bff7bb1a43b709c69f3c8b5903df461f8de39d3f8a20f9bf494df6f5882771846adfe2c03fbea9e
 DIST M2Crypto-0.38.0.tar.gz 1241269 BLAKE2B 
95433090e08ff72cd2b0779491dc38b89eca159b26812e763b5b8973e3d27249a96d5a2c983b59f414184f64beb8e455dc26979310378db89dd2081741d4d17d
 SHA512 
b1e24e3101ce0dd9f17be4cabeddc2ec0f1228b270d74ef2fb38bae8807c5025b031d0743185f06370786a3dd5c3f42129720534dcff07ea4de3c727613f8d20

diff --git a/dev-python/m2crypto/m2crypto-0.38.0.ebuild 
b/dev-python/m2crypto/m2crypto-0.38.0.ebuild
index 481c395..8806d10 100644
--- a/dev-python/m2crypto/m2crypto-0.38.0.ebuild
+++ b/dev-python/m2crypto/m2crypto-0.38.0.ebuild
@@ -1,9 +1,9 @@
-# Copyright 2018-2021 Gentoo Authors
+# Copyright 2018-2023 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
 
-PYTHON_COMPAT=( python3_{8..10} )
+PYTHON_COMPAT=( python3_{9..11} )
 PYTHON_REQ_USE="threads(+)"
 
 inherit distutils-r1 toolchain-funcs
@@ -16,8 +16,8 @@ S="${WORKDIR}/${MY_PN}-${PV}"
 
 LICENSE="MIT"
 SLOT="0"
-KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~mips ppc ppc64 ~riscv ~s390 
sparc x86 ~amd64-linux ~x86-linux ~x64-macos"
-IUSE="test"
+KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~loong ~mips ppc ppc64 ~riscv 
~s390 sparc x86 ~amd64-linux ~x86-linux ~x64-macos"
+IUSE="test abi_mips_n32 abi_mips_n64 abi_mips_o32"
 RESTRICT="!test? ( test )"
 
 BDEPEND="
@@ -63,5 +63,14 @@ python_compile() {
        # https://bugs.gentoo.org/674112
        swig_define __ARM_PCS_VFP
 
+       # Avoid similar errors to bug #688668 for MIPS
+       if use abi_mips_n32; then
+           swig_define _MIPS_SIM = _ABIN32
+       elif use abi_mips_n64; then
+           swig_define _MIPS_SIM = _ABI64
+       elif use abi_mips_o32; then
+           swig_define _MIPS_SIM = _ABIO32
+       fi
+
        distutils-r1_python_compile --openssl="${ESYSROOT}"/usr
 }

Reply via email to