commit:     08b40d01e9705226bcf7eb7fbe577ba2359d63f9
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sun Oct 29 05:06:03 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Oct 29 05:06:03 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=08b40d01

dev-python/contourpy: disable werror

although we should really handle this in distutils-r1 for meson-python, ala
meson.eclass

Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-python/contourpy/contourpy-1.1.1.ebuild                |  4 ++++
 dev-python/contourpy/files/contourpy-1.1.1-no-werror.patch | 11 +++++++++++
 2 files changed, 15 insertions(+)

diff --git a/dev-python/contourpy/contourpy-1.1.1.ebuild 
b/dev-python/contourpy/contourpy-1.1.1.ebuild
index 3dcabe49f47f..4f2ad18a7011 100644
--- a/dev-python/contourpy/contourpy-1.1.1.ebuild
+++ b/dev-python/contourpy/contourpy-1.1.1.ebuild
@@ -35,6 +35,10 @@ BDEPEND="
        )
 "
 
+PATCHES=(
+       "${FILESDIR}"/${PN}-1.1.1-no-werror.patch
+)
+
 distutils_enable_tests pytest
 
 python_test() {

diff --git a/dev-python/contourpy/files/contourpy-1.1.1-no-werror.patch 
b/dev-python/contourpy/files/contourpy-1.1.1-no-werror.patch
new file mode 100644
index 000000000000..4db618369434
--- /dev/null
+++ b/dev-python/contourpy/files/contourpy-1.1.1-no-werror.patch
@@ -0,0 +1,11 @@
+XXX: We should really just make meson-python in distutils-r1 always disable 
werror.
+--- a/meson.build
++++ b/meson.build
+@@ -4,7 +4,6 @@ project(
+   default_options: [
+     # meson-python options are set in pyproject.toml
+     'cpp_std=c++17',
+-    'werror=true',
+   ],
+   license: 'BSD-3-Clause',
+   meson_version: '>= 1.2.0',

Reply via email to