mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-04-07 03:10:15 -04:00
The previous patching for building with boost-1.89 was insufficient. This patches cmake files for finding boost removing all references to the removed system stub. Also deadline_timer is no longer included by the upstream includes in one of the http client cpp-files. Deadline_timer is deprecated as well so opted for replacing it with steady_timer instead. See upstream PR. Reported-By: Nicolas PARLANT Signed-off-by: Jan-Espen Oversand <sigsegv@radiotube.org>
43 lines
1.2 KiB
Bash
43 lines
1.2 KiB
Bash
# 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 ~x86"
|
|
|
|
RDEPEND=">=dev-libs/openssl-1.1.1q
|
|
>=dev-libs/boost-1.80.0-r1:=
|
|
>=virtual/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
|
|
"${FILESDIR}"/cpprestsdk-${PV}-llvm-char-traits-patch.patch
|
|
"${FILESDIR}"/cpprestsdk-${PV}-llvm-json-unique-ptr.patch
|
|
"${FILESDIR}"/cpprestsdk-${PV}-boost-1.89-system-and-timer.patch
|
|
)
|
|
|
|
src_configure() {
|
|
local mycmakeargs=( -DCMAKE_BUILD_TYPE=Release )
|
|
cmake_src_configure
|
|
}
|