summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArthur Zamarin <arthurzam@gentoo.org>2024-06-07 11:36:21 +0300
committerArthur Zamarin <arthurzam@gentoo.org>2024-06-07 11:39:15 +0300
commite74092ed12329e999a3d8d0901bac9319069d831 (patch)
tree2ae64570fe8f68a6dd54496669951e6298740671 /dev-cpp/argparse
parentsci-libs/caffe2: fix patching (diff)
downloadgentoo-e74092ed12329e999a3d8d0901bac9319069d831.tar.gz
gentoo-e74092ed12329e999a3d8d0901bac9319069d831.tar.bz2
gentoo-e74092ed12329e999a3d8d0901bac9319069d831.zip
dev-cpp/argparse: fix -Werror
Closes: https://bugs.gentoo.org/933585 Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
Diffstat (limited to 'dev-cpp/argparse')
-rw-r--r--dev-cpp/argparse/argparse-3.0.ebuild5
1 files changed, 5 insertions, 0 deletions
diff --git a/dev-cpp/argparse/argparse-3.0.ebuild b/dev-cpp/argparse/argparse-3.0.ebuild
index 478612f014e0..d5d35ca948ec 100644
--- a/dev-cpp/argparse/argparse-3.0.ebuild
+++ b/dev-cpp/argparse/argparse-3.0.ebuild
@@ -15,6 +15,11 @@ KEYWORDS="~amd64 ~arm ~arm64 ~x86"
IUSE="test"
RESTRICT="!test? ( test )"
+src_prepare() {
+ cmake_src_prepare
+ sed -e 's/ -Werror//' -i test/CMakeLists.txt || die
+}
+
src_configure() {
local mycmakeargs=(
-DARGPARSE_BUILD_TESTS=$(usex test)