summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Turner <mattst88@gentoo.org>2021-04-08 21:44:26 -0400
committerMatt Turner <mattst88@gentoo.org>2021-04-08 21:44:30 -0400
commitcdf5f2ffbabfb6c65655ddfb3aa3a924bf0ee362 (patch)
tree87dbb969b0d7c49c6f8761eae755138306ea18ab /dev-libs/cJSON
parentdev-libs/cJSON: Add missing RESTRICT (diff)
downloadgentoo-cdf5f2ffbabfb6c65655ddfb3aa3a924bf0ee362.tar.gz
gentoo-cdf5f2ffbabfb6c65655ddfb3aa3a924bf0ee362.tar.bz2
gentoo-cdf5f2ffbabfb6c65655ddfb3aa3a924bf0ee362.zip
dev-libs/cJSON: Drop -Werror
Closes: https://bugs.gentoo.org/781614 Signed-off-by: Matt Turner <mattst88@gentoo.org>
Diffstat (limited to 'dev-libs/cJSON')
-rw-r--r--dev-libs/cJSON/cJSON-1.7.14.ebuild8
1 files changed, 7 insertions, 1 deletions
diff --git a/dev-libs/cJSON/cJSON-1.7.14.ebuild b/dev-libs/cJSON/cJSON-1.7.14.ebuild
index 275c5cc7aef1..f7416639516b 100644
--- a/dev-libs/cJSON/cJSON-1.7.14.ebuild
+++ b/dev-libs/cJSON/cJSON-1.7.14.ebuild
@@ -1,4 +1,4 @@
-# Copyright 2020 Gentoo Authors
+# Copyright 2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
@@ -15,6 +15,12 @@ KEYWORDS="~amd64"
IUSE="test"
RESTRICT="!test? ( test )"
+src_prepare() {
+ cmake_src_prepare
+
+ sed -i -e '/-Werror/d' CMakeLists.txt || die
+}
+
src_configure() {
local mycmakeargs=(
-DENABLE_CJSON_TEST=$(usex test)