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>
This commit is contained in:
Sam James
2020-12-07 00:33:37 +00:00
parent 0b927fc523
commit 4197804616
+8
View File
@@ -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
}