mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-02 23:48:17 -07:00
dev-cpp/curlpp: fix curloption
Closes: https://bugs.gentoo.org/939581 Signed-off-by: Maciej Barć <xgqt@gentoo.org>
This commit is contained in:
@@ -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 )
|
||||
|
||||
12
dev-cpp/curlpp/files/curlpp-0.8.1-fix-curloption.patch
Normal file
12
dev-cpp/curlpp/files/curlpp-0.8.1-fix-curloption.patch
Normal 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;
|
||||
Reference in New Issue
Block a user