summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2020-12-07 00:33:28 +0000
committerSam James <sam@gentoo.org>2020-12-07 00:33:37 +0000
commit41978046162dd69628a5d7b715b486bbac5ff66a (patch)
treef2a4bc8cbb03285bcee7798bc9fa93a4e6f2a0fa /dev-python/cffi
parentsys-kernel/git-sources: Linux patch 5.10-rc7 (diff)
downloadgentoo-41978046162dd69628a5d7b715b486bbac5ff66a.tar.gz
gentoo-41978046162dd69628a5d7b715b486bbac5ff66a.tar.bz2
gentoo-41978046162dd69628a5d7b715b486bbac5ff66a.zip
dev-python/cffi: fix 1.14.4 build on Darwin
Upstream added a further unconditional sysroot include on Darwin, even if pkgconfig worked. Let's drop that. Package-Manager: Portage-3.0.10.3-prefix, Repoman-3.0.2 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-python/cffi')
-rw-r--r--dev-python/cffi/cffi-1.14.4.ebuild8
1 files changed, 8 insertions, 0 deletions
diff --git a/dev-python/cffi/cffi-1.14.4.ebuild b/dev-python/cffi/cffi-1.14.4.ebuild
index b3bdb3d093d1..424351b6817f 100644
--- a/dev-python/cffi/cffi-1.14.4.ebuild
+++ b/dev-python/cffi/cffi-1.14.4.ebuild
@@ -33,6 +33,14 @@ PATCHES=(
"${FILESDIR}"/cffi-1.14.0-darwin-no-brew.patch
)
+src_prepare() {
+ if [[ ${CHOST} == *darwin* ]] ; then
+ # Don't obsessively try to find libffi
+ sed -i -e "s/.*\-iwithsysroot\/usr\/include\/ffi.*/\tpass/" setup.py || die
+ fi
+ distutils-r1_src_prepare
+}
+
src_configure() {
tc-export PKG_CONFIG
}