diff options
author | Craig Andrews <candrews@gentoo.org> | 2018-12-27 16:57:15 -0500 |
---|---|---|
committer | Craig Andrews <candrews@gentoo.org> | 2018-12-27 16:57:41 -0500 |
commit | a6485336b09976be119a81315a717e3bced97378 (patch) | |
tree | 9115c28f5dbd7351334b666387a6426c7731d821 /dev-libs/rapidjson | |
parent | net-libs/nodejs: Depend on >net-libs/http-parser-2.8.1:= (diff) | |
download | gentoo-a6485336b09976be119a81315a717e3bced97378.tar.gz gentoo-a6485336b09976be119a81315a717e3bced97378.tar.bz2 gentoo-a6485336b09976be119a81315a717e3bced97378.zip |
dev-libs/rapidjson: Fix USE=examples with >=gcc-8
Closes: https://bugs.gentoo.org/673698
Package-Manager: Portage-2.3.52, Repoman-2.3.12
Signed-off-by: Craig Andrews <candrews@gentoo.org>
Diffstat (limited to 'dev-libs/rapidjson')
-rw-r--r-- | dev-libs/rapidjson/rapidjson-1.1.0-r1.ebuild | 7 | ||||
-rw-r--r-- | dev-libs/rapidjson/rapidjson-9999.ebuild | 13 |
2 files changed, 19 insertions, 1 deletions
diff --git a/dev-libs/rapidjson/rapidjson-1.1.0-r1.ebuild b/dev-libs/rapidjson/rapidjson-1.1.0-r1.ebuild index 3566ee541f7b..69293ade5012 100644 --- a/dev-libs/rapidjson/rapidjson-1.1.0-r1.ebuild +++ b/dev-libs/rapidjson/rapidjson-1.1.0-r1.ebuild @@ -33,6 +33,13 @@ PATCHES=( "${FILESDIR}/${P}-gcc-7.patch" ) +src_prepare() { + default + + sed -i -e 's|-Werror||g' CMakeLists.txt || die + sed -i -e 's|-Werror||g' example/CMakeLists.txt || die +} + src_configure() { local mycmakeargs=( -DRAPIDJSON_BUILD_DOC=$(usex doc) diff --git a/dev-libs/rapidjson/rapidjson-9999.ebuild b/dev-libs/rapidjson/rapidjson-9999.ebuild index 6d3ed3621f87..8bd5504560cf 100644 --- a/dev-libs/rapidjson/rapidjson-9999.ebuild +++ b/dev-libs/rapidjson/rapidjson-9999.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2017 Gentoo Foundation +# Copyright 1999-2018 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=6 @@ -30,6 +30,17 @@ DEPEND=" )" RDEPEND="" +PATCHES=( + "${FILESDIR}/${P}-gcc-7.patch" +) + +src_prepare() { + default + + sed -i -e 's|-Werror||g' CMakeLists.txt || die + sed -i -e 's|-Werror||g' example/CMakeLists.txt || die +} + src_configure() { local mycmakeargs=( -DRAPIDJSON_BUILD_DOC=$(usex doc) |