summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenda Xu <heroxbd@gentoo.org>2023-07-17 08:05:56 +0800
committerBenda Xu <heroxbd@gentoo.org>2023-07-17 09:17:38 +0800
commitfd0d8fc9c944ed38be0f668286c9051c6a5e7cf9 (patch)
treea9f349853f9e00b901e25c1259ecb12e3e3ec9d0 /dev-python/matplotlib
parentdev-python/meson-python: recognize python modules on Prefix/macOS (diff)
downloadgentoo-fd0d8fc9c944ed38be0f668286c9051c6a5e7cf9.tar.gz
gentoo-fd0d8fc9c944ed38be0f668286c9051c6a5e7cf9.tar.bz2
gentoo-fd0d8fc9c944ed38be0f668286c9051c6a5e7cf9.zip
dev-python/matplotlib: Do not build against Cocoa on macOS.
keyword 3.7.2 for ~arm64-macos, ~x64-macos Signed-off-by: Benda Xu <heroxbd@gentoo.org>
Diffstat (limited to 'dev-python/matplotlib')
-rw-r--r--dev-python/matplotlib/files/matplotlib-3.7.2-macOS_no-Cocoa.patch21
-rw-r--r--dev-python/matplotlib/matplotlib-3.7.2.ebuild3
2 files changed, 23 insertions, 1 deletions
diff --git a/dev-python/matplotlib/files/matplotlib-3.7.2-macOS_no-Cocoa.patch b/dev-python/matplotlib/files/matplotlib-3.7.2-macOS_no-Cocoa.patch
new file mode 100644
index 000000000000..3f29134be621
--- /dev/null
+++ b/dev-python/matplotlib/files/matplotlib-3.7.2-macOS_no-Cocoa.patch
@@ -0,0 +1,21 @@
+Do not automatically build against Cocoa on macOS.
+
+At Prefix/macOS, we do not support the propietary Cocoa SDK. GUI
+applications use X11.
+
+The patch is specific to our need and not forwarded upstream.
+
+Signed-off-by: Benda Xu <heroxbd@gentoo.org>
+
+Index: matplotlib-3.7.2/setup.py
+===================================================================
+--- matplotlib-3.7.2.orig/setup.py
++++ matplotlib-3.7.2/setup.py
+@@ -49,7 +49,6 @@ mpl_packages = [
+ setupext.FreeType(),
+ setupext.Qhull(),
+ setupext.Tests(),
+- setupext.BackendMacOSX(),
+ ]
+
+
diff --git a/dev-python/matplotlib/matplotlib-3.7.2.ebuild b/dev-python/matplotlib/matplotlib-3.7.2.ebuild
index 6bf2c0bcf481..213f165a0cc5 100644
--- a/dev-python/matplotlib/matplotlib-3.7.2.ebuild
+++ b/dev-python/matplotlib/matplotlib-3.7.2.ebuild
@@ -30,7 +30,7 @@ SRC_URI+="
# Fonts: BitstreamVera, OFL-1.1
LICENSE="BitstreamVera BSD matplotlib MIT OFL-1.1"
SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~arm64-macos ~x64-macos"
IUSE="cairo doc excel examples gtk3 latex qt5 tk webagg wxwidgets"
# internal copy of pycxx highly patched
@@ -151,6 +151,7 @@ python_prepare_all() {
local PATCHES=(
"${FILESDIR}"/matplotlib-3.3.3-disable-lto.patch
"${FILESDIR}"/matplotlib-3.7.1-test.patch
+ "${FILESDIR}"/matplotlib-3.7.2-macOS_no-Cocoa.patch
)
sed \