mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-11-18 13:40:57 -05:00
dev-cpp/cpprestsdk: cmake 4 patch
Signed-off-by: Jan-Espen Oversand <sigsegv@radiotube.org>
This commit is contained in:
2 files changed
+65
No files matched your search
@@ -0,0 +1,39 @@
|
||||
# Copyright 1999-2025 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="
|
||||
app-alternatives/ninja
|
||||
>=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
|
||||
"${FILESDIR}"/cpprestsdk-${PV}-boost-1.87-compat.patch
|
||||
"${FILESDIR}"/cpprestsdk-${PV}-cmake-4.patch
|
||||
)
|
||||
|
||||
src_configure() {
|
||||
local mycmakeargs=( -DCMAKE_BUILD_TYPE=Release )
|
||||
cmake_src_configure
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
--- a/Build_iOS/CMakeLists.txt
|
||||
+++ b/Build_iOS/CMakeLists.txt
|
||||
@@ -1,5 +1,5 @@
|
||||
project(casablanca-ios NONE)
|
||||
-cmake_minimum_required(VERSION 3.9)
|
||||
+cmake_minimum_required(VERSION 3.10)
|
||||
|
||||
enable_testing()
|
||||
|
||||
--- a/Release/CMakeLists.txt
|
||||
+++ b/Release/CMakeLists.txt
|
||||
@@ -1,5 +1,5 @@
|
||||
set(CMAKE_LEGACY_CYGWIN_WIN32 0)
|
||||
-cmake_minimum_required(VERSION 3.9)
|
||||
+cmake_minimum_required(VERSION 3.10)
|
||||
if(POLICY CMP0042)
|
||||
cmake_policy(SET CMP0042 NEW) # use MACOSX_RPATH
|
||||
endif()
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -1,4 +1,4 @@
|
||||
-cmake_minimum_required(VERSION 3.9)
|
||||
+cmake_minimum_required(VERSION 3.10)
|
||||
project(cpprestsdk-root NONE)
|
||||
enable_testing()
|
||||
add_subdirectory(Release)
|
||||
Reference in new issue
Block a user