commit:     d5a1050d3e2e050151e73d63d624a2aeafeba061
Author:     Maciej Barć <xgqt <AT> gentoo <DOT> org>
AuthorDate: Mon Dec 19 18:41:35 2022 +0000
Commit:     Maciej Barć <xgqt <AT> gentoo <DOT> org>
CommitDate: Mon Dec 19 22:28:15 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d5a1050d

sci-mathematics/libpoly: remove -Werror

Closes: https://bugs.gentoo.org/887109
Signed-off-by: Maciej Barć <xgqt <AT> gentoo.org>

 sci-mathematics/libpoly/libpoly-0.1.11.ebuild | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/sci-mathematics/libpoly/libpoly-0.1.11.ebuild 
b/sci-mathematics/libpoly/libpoly-0.1.11.ebuild
index e3b8fb247367..09b57d07fe96 100644
--- a/sci-mathematics/libpoly/libpoly-0.1.11.ebuild
+++ b/sci-mathematics/libpoly/libpoly-0.1.11.ebuild
@@ -34,6 +34,14 @@ pkg_setup() {
        use python && python-single-r1_pkg_setup
 }
 
+src_prepare() {
+       sed -i "s| -Werror||g"                          \
+               "${S}"/src/CMakeLists.txt                   \
+               "${S}"/test/polyxx/CMakeLists.txt || die
+
+       cmake_src_prepare
+}
+
 src_configure() {
        local mycmakeargs=(
                -DLIBPOLY_BUILD_PYTHON_API=$(usex python)

Reply via email to