summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2020-11-28 07:27:25 +0000
committerSam James <sam@gentoo.org>2020-11-28 07:27:25 +0000
commit130c6887fd5bddceb491335ab95c5fea690d2f64 (patch)
tree05ee30124003fea176871c0de1cd4f4b96e77661 /dev-python/cffi
parentdev-lang/rust-bin: drop 1.45.2 (diff)
downloadgentoo-130c6887fd5bddceb491335ab95c5fea690d2f64.tar.gz
gentoo-130c6887fd5bddceb491335ab95c5fea690d2f64.tar.bz2
gentoo-130c6887fd5bddceb491335ab95c5fea690d2f64.zip
dev-python/cffi: don't call Homebrew on Darwin
Package-Manager: Portage-3.0.9, 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.0-r3.ebuild1
-rw-r--r--dev-python/cffi/files/cffi-1.14.0-darwin-no-brew.patch14
2 files changed, 15 insertions, 0 deletions
diff --git a/dev-python/cffi/cffi-1.14.0-r3.ebuild b/dev-python/cffi/cffi-1.14.0-r3.ebuild
index 4a459635cd1e..78f80a7e2b31 100644
--- a/dev-python/cffi/cffi-1.14.0-r3.ebuild
+++ b/dev-python/cffi/cffi-1.14.0-r3.ebuild
@@ -31,6 +31,7 @@ distutils_enable_sphinx doc/source
PATCHES=(
"${FILESDIR}"/cffi-0.14.0-g-line.patch
+ "${FILESDIR}"/cffi-1.14.0-darwin-no-brew.patch
)
src_configure() {
diff --git a/dev-python/cffi/files/cffi-1.14.0-darwin-no-brew.patch b/dev-python/cffi/files/cffi-1.14.0-darwin-no-brew.patch
new file mode 100644
index 000000000000..c92b6112b853
--- /dev/null
+++ b/dev-python/cffi/files/cffi-1.14.0-darwin-no-brew.patch
@@ -0,0 +1,14 @@
+diff --git a/setup.py b/setup.py
+index e1dd39d..3e88f74 100644
+--- a/setup.py
++++ b/setup.py
+@@ -105,9 +105,6 @@ def uses_msvc():
+ return config.try_compile('#ifndef _MSC_VER\n#error "not MSVC"\n#endif')
+
+ def use_pkg_config():
+- if sys.platform == 'darwin' and os.path.exists('/usr/local/bin/brew'):
+- use_homebrew_for_libffi()
+-
+ _ask_pkg_config(include_dirs, '--cflags-only-I', '-I', sysroot=True)
+ _ask_pkg_config(extra_compile_args, '--cflags-only-other')
+ _ask_pkg_config(library_dirs, '--libs-only-L', '-L', sysroot=True)