Skip to content

Commit

Permalink
dev-python/matplotlib: Do not build against Cocoa on macOS.
Browse files Browse the repository at this point in the history
keyword 3.7.2 for ~arm64-macos, ~x64-macos

Signed-off-by: Benda Xu <[email protected]>
  • Loading branch information
heroxbd committed Jul 17, 2023
1 parent f4e9370 commit fd0d8fc
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
21 changes: 21 additions & 0 deletions dev-python/matplotlib/files/matplotlib-3.7.2-macOS_no-Cocoa.patch
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>

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(),
]


3 changes: 2 additions & 1 deletion dev-python/matplotlib/matplotlib-3.7.2.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 \
Expand Down

0 comments on commit fd0d8fc

Please sign in to comment.