commit: cdf5f2ffbabfb6c65655ddfb3aa3a924bf0ee362 Author: Matt Turner <mattst88 <AT> gentoo <DOT> org> AuthorDate: Fri Apr 9 01:44:26 2021 +0000 Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org> CommitDate: Fri Apr 9 01:44:30 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cdf5f2ff
dev-libs/cJSON: Drop -Werror Closes: https://bugs.gentoo.org/781614 Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org> dev-libs/cJSON/cJSON-1.7.14.ebuild | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/dev-libs/cJSON/cJSON-1.7.14.ebuild b/dev-libs/cJSON/cJSON-1.7.14.ebuild index 275c5cc7aef..f7416639516 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)