dev-cpp/cpprestsdk: disable werror flag by default

Bug: https://bugs.gentoo.org/920029
Closes: https://bugs.gentoo.org/920029
Signed-off-by: Jan-Espen Oversand <sigsegv@radiotube.org>
This commit is contained in:
Jan-Espen Oversand
2023-12-17 23:51:02 +01:00
parent 30a64bad2b
commit 102ae60a0c
2 changed files with 12 additions and 0 deletions

View File

@@ -0,0 +1,36 @@
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake
DESCRIPTION="A Microsoft project for cloud-based client-server communication."
HOMEPAGE="https://github.com/microsoft/cpprestsdk"
SRC_URI="https://github.com/microsoft/cpprestsdk/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
RDEPEND=">=dev-libs/openssl-1.1.1q
>=dev-libs/boost-1.80.0-r1
>=sys-libs/zlib-1.2.13-r1"
DEPEND="${RDEPEND}"
BDEPEND=">=dev-util/cmake-3.23
>=dev-util/ninja-1.11.1-r2
>=sys-devel/gcc-11.3.0
>=virtual/pkgconfig-2-r1
>=dev-cpp/websocketpp-0.8.2"
PATCHES=(
"${FILESDIR}"/cpprestsdk-${PV}-warnings.patch
"${FILESDIR}"/cpprestsdk-${PV}-disabl-int-tests.patch
"${FILESDIR}"/cpprestsdk-${PV}-disable-werror-default.patch
)
src_configure() {
local mycmakeargs=( -DCMAKE_BUILD_TYPE=Release )
cmake_src_configure
}