dev-cpp/curlpp: fix curloption

Closes: https://bugs.gentoo.org/939581
Signed-off-by: Maciej Barć <xgqt@gentoo.org>
This commit is contained in:
Maciej Barć
2025-02-06 23:35:02 +01:00
parent a27b698411
commit c4cb96a5c8
2 changed files with 26 additions and 6 deletions

View File

@@ -1,4 +1,4 @@
# Copyright 2018-2023 Gentoo Authors
# Copyright 2018-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -7,20 +7,28 @@ inherit cmake
DESCRIPTION="C++ wrapper for libcURL"
HOMEPAGE="https://www.curlpp.org/"
SRC_URI="https://github.com/jpbarrette/curlpp/archive/v${PV}.tar.gz -> ${P}.tar.gz"
SRC_URI="https://github.com/jpbarrette/curlpp/archive/v${PV}.tar.gz
-> ${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="amd64 ~x86"
IUSE="doc examples"
RDEPEND="net-misc/curl"
DEPEND="${RDEPEND}"
RDEPEND="
net-misc/curl
"
DEPEND="
${RDEPEND}
"
PATCHES=(
"${FILESDIR}/curlpp-0.8.1-fix-curloption.patch"
"${FILESDIR}/curlpp-0.8.1-fix-pkgconfig.patch"
)
DOCS=( Readme.md doc/AUTHORS doc/TODO )
PATCHES=( "${FILESDIR}"/${P}-fix-pkgconfig.patch )
src_install() {
use doc && DOCS+=( doc/guide.pdf )

View File

@@ -0,0 +1,12 @@
https://git.openembedded.org/meta-openembedded/commit/?id=56010090ef75da2a3d564e16ee046a709da4a650
--- a/include/curlpp/Options.hpp
+++ b/include/curlpp/Options.hpp
@@ -278,7 +278,7 @@
typedef curlpp::OptionTrait<long, CURLOPT_LOW_SPEED_LIMIT> LowSpeedLimit;
typedef curlpp::OptionTrait<long, CURLOPT_LOW_SPEED_TIME> LowSpeedTime;
typedef curlpp::OptionTrait<long, CURLOPT_MAXCONNECTS> MaxConnects;
- typedef curlpp::OptionTrait<curl_closepolicy, CURLOPT_CLOSEPOLICY> ClosePolicy;
+ typedef curlpp::OptionTrait<curl_closepolicy, (CURLoption)CURLOPT_CLOSEPOLICY> ClosePolicy;
typedef curlpp::OptionTrait<bool, CURLOPT_FRESH_CONNECT> FreshConnect;
typedef curlpp::OptionTrait<bool, CURLOPT_FORBID_REUSE> ForbidReuse;
typedef curlpp::OptionTrait<long, CURLOPT_CONNECTTIMEOUT> ConnectTimeout;