Gentoo Archives: gentoo-commits

From: Mike Gilbert <floppym@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/m2crypto/
Date: Wed, 14 Aug 2019 19:37:09
Message-Id: 1565811416.d2a02b28d0a6e69cecefae8c2f93adef20ccbfe3.floppym@gentoo
1 commit: d2a02b28d0a6e69cecefae8c2f93adef20ccbfe3
2 Author: Mike Gilbert <floppym <AT> gentoo <DOT> org>
3 AuthorDate: Wed Aug 14 19:36:01 2019 +0000
4 Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org>
5 CommitDate: Wed Aug 14 19:36:56 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d2a02b28
7
8 dev-python/m2crypto: fix build on armhf
9
10 Closes: https://bugs.gentoo.org/674112
11 Package-Manager: Portage-2.3.71_p6, Repoman-2.3.17_p5
12 Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org>
13
14 dev-python/m2crypto/m2crypto-0.31.0-r2.ebuild | 22 +++++++++++++++++-----
15 dev-python/m2crypto/m2crypto-0.35.2.ebuild | 22 +++++++++++++++++-----
16 2 files changed, 34 insertions(+), 10 deletions(-)
17
18 diff --git a/dev-python/m2crypto/m2crypto-0.31.0-r2.ebuild b/dev-python/m2crypto/m2crypto-0.31.0-r2.ebuild
19 index 17cac8b10d3..c88a6032975 100644
20 --- a/dev-python/m2crypto/m2crypto-0.31.0-r2.ebuild
21 +++ b/dev-python/m2crypto/m2crypto-0.31.0-r2.ebuild
22 @@ -6,7 +6,7 @@ EAPI=7
23 PYTHON_COMPAT=( python2_7 python3_{5..7})
24 PYTHON_REQ_USE="threads(+)"
25
26 -inherit distutils-r1
27 +inherit distutils-r1 toolchain-funcs
28
29 MY_PN="M2Crypto"
30
31 @@ -41,14 +41,26 @@ PATCHES=(
32 "${FILESDIR}/${PN}-crossdev-${PV}.patch"
33 )
34
35 +swig_define() {
36 + local x
37 + for x; do
38 + if tc-cpp-is-true "defined(${x})"; then
39 + SWIG_FEATURES+=" -D${x}"
40 + fi
41 + done
42 +}
43 +
44 python_compile() {
45 # setup.py looks at platform.machine() to determine swig options.
46 # For exotic ABIs, we need to give swig a hint.
47 - # https://bugs.gentoo.org/617946
48 local -x SWIG_FEATURES=
49 - case ${ABI} in
50 - x32) SWIG_FEATURES="-D__ILP32__" ;;
51 - esac
52 +
53 + # https://bugs.gentoo.org/617946
54 + swig_define __ILP32__
55 +
56 + # https://bugs.gentoo.org/674112
57 + swig_define __ARM_PCS_VFP
58 +
59 distutils-r1_python_compile --openssl="${ESYSROOT}"/usr
60 }
61
62
63 diff --git a/dev-python/m2crypto/m2crypto-0.35.2.ebuild b/dev-python/m2crypto/m2crypto-0.35.2.ebuild
64 index 986af95f307..86b01947387 100644
65 --- a/dev-python/m2crypto/m2crypto-0.35.2.ebuild
66 +++ b/dev-python/m2crypto/m2crypto-0.35.2.ebuild
67 @@ -6,7 +6,7 @@ EAPI=7
68 PYTHON_COMPAT=( python2_7 python3_{5..7})
69 PYTHON_REQ_USE="threads(+)"
70
71 -inherit distutils-r1
72 +inherit distutils-r1 toolchain-funcs
73
74 MY_PN="M2Crypto"
75 DESCRIPTION="A Python crypto and SSL toolkit"
76 @@ -35,14 +35,26 @@ PATCHES=(
77 "${FILESDIR}/${PN}-libressl-0.31.0.patch"
78 )
79
80 +swig_define() {
81 + local x
82 + for x; do
83 + if tc-cpp-is-true "defined(${x})"; then
84 + SWIG_FEATURES+=" -D${x}"
85 + fi
86 + done
87 +}
88 +
89 python_compile() {
90 # setup.py looks at platform.machine() to determine swig options.
91 # For exotic ABIs, we need to give swig a hint.
92 - # https://bugs.gentoo.org/617946
93 local -x SWIG_FEATURES=
94 - case ${ABI} in
95 - x32) SWIG_FEATURES="-D__ILP32__" ;;
96 - esac
97 +
98 + # https://bugs.gentoo.org/617946
99 + swig_define __ILP32__
100 +
101 + # https://bugs.gentoo.org/674112
102 + swig_define __ARM_PCS_VFP
103 +
104 distutils-r1_python_compile --openssl="${ESYSROOT}"/usr
105 }