Gentoo Archives: gentoo-commits

From: James Le Cuirot <chewi@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/cffi/
Date: Thu, 10 Jan 2019 21:21:41
Message-Id: 1547155193.3bd7fe4f2163a9e4d1edf99a84881b3cd66c8ba9.chewi@gentoo
1 commit: 3bd7fe4f2163a9e4d1edf99a84881b3cd66c8ba9
2 Author: James Le Cuirot <chewi <AT> gentoo <DOT> org>
3 AuthorDate: Sun Sep 9 13:27:51 2018 +0000
4 Commit: James Le Cuirot <chewi <AT> gentoo <DOT> org>
5 CommitDate: Thu Jan 10 21:19:53 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3bd7fe4f
7
8 dev-python/cffi: Fix cross-compiling of 1.11.5
9
10 We need to tell it the right pkg-config.
11
12 Signed-off-by: James Le Cuirot <chewi <AT> gentoo.org>
13 Package-Manager: Portage-2.3.49, Repoman-2.3.10
14
15 dev-python/cffi/cffi-1.11.5.ebuild | 6 +++++-
16 1 file changed, 5 insertions(+), 1 deletion(-)
17
18 diff --git a/dev-python/cffi/cffi-1.11.5.ebuild b/dev-python/cffi/cffi-1.11.5.ebuild
19 index 9cd44285b9c..20a17f5c3fc 100644
20 --- a/dev-python/cffi/cffi-1.11.5.ebuild
21 +++ b/dev-python/cffi/cffi-1.11.5.ebuild
22 @@ -7,7 +7,7 @@ EAPI=6
23 # pypy bundles a modified version of cffi. Use python_gen_cond_dep instead.
24 PYTHON_COMPAT=( python2_7 python3_{4,5,6,7} )
25
26 -inherit distutils-r1
27 +inherit distutils-r1 toolchain-funcs
28
29 DESCRIPTION="Foreign Function Interface for Python calling C code"
30 HOMEPAGE="https://cffi.readthedocs.io/ https://pypi.org/project/cffi/"
31 @@ -29,6 +29,10 @@ DEPEND="${RDEPEND}
32 # Avoid race on _configtest.c (distutils/command/config.py:_gen_temp_sourcefile)
33 DISTUTILS_IN_SOURCE_BUILD=1
34
35 +src_configure() {
36 + tc-export PKG_CONFIG
37 +}
38 +
39 python_compile_all() {
40 use doc && emake -C doc html
41 }