From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id A2DF115800A for ; Mon, 17 Jul 2023 01:18:18 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id BD555E091D; Mon, 17 Jul 2023 01:18:16 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 98371E091D for ; Mon, 17 Jul 2023 01:18:16 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 8E02D340D5E for ; Mon, 17 Jul 2023 01:18:15 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 0ADAFB5F for ; Mon, 17 Jul 2023 01:18:14 +0000 (UTC) From: "Benda XU" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Benda XU" Message-ID: <1689556658.fd0d8fc9c944ed38be0f668286c9051c6a5e7cf9.heroxbd@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/matplotlib/, dev-python/matplotlib/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/matplotlib/files/matplotlib-3.7.2-macOS_no-Cocoa.patch dev-python/matplotlib/matplotlib-3.7.2.ebuild X-VCS-Directories: dev-python/matplotlib/ dev-python/matplotlib/files/ X-VCS-Committer: heroxbd X-VCS-Committer-Name: Benda XU X-VCS-Revision: fd0d8fc9c944ed38be0f668286c9051c6a5e7cf9 X-VCS-Branch: master Date: Mon, 17 Jul 2023 01:18:14 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: f75f27e9-20a6-41a4-8254-6027bb8fa4ef X-Archives-Hash: c0e0ddec047695cbec5f371c35150d06 commit: fd0d8fc9c944ed38be0f668286c9051c6a5e7cf9 Author: Benda Xu gentoo org> AuthorDate: Mon Jul 17 00:05:56 2023 +0000 Commit: Benda XU gentoo org> CommitDate: Mon Jul 17 01:17:38 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fd0d8fc9 dev-python/matplotlib: Do not build against Cocoa on macOS. keyword 3.7.2 for ~arm64-macos, ~x64-macos Signed-off-by: Benda Xu gentoo.org> .../files/matplotlib-3.7.2-macOS_no-Cocoa.patch | 21 +++++++++++++++++++++ dev-python/matplotlib/matplotlib-3.7.2.ebuild | 3 ++- 2 files changed, 23 insertions(+), 1 deletion(-) 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 + +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 \