Install this version:
emerge -a =dev-cpp/cpr-1.15.1
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =dev-cpp/cpr-1.15.1
Or alternatively:
emerge --autounmask-write -a =dev-cpp/cpr-1.15.1
# Copyright 2018-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake
DESCRIPTION="C++ Requests: Curl for People, a spiritual port of Python Requests"
HOMEPAGE="https://docs.libcpr.dev/"
SRC_URI="https://github.com/libcpr/cpr/archive/${PV}.tar.gz
-> ${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~arm64"
IUSE="+ssl"
# tests disabled for now, as it tries to fetch mongoose
RESTRICT="test"
RDEPEND="
net-misc/curl[ssl?]
ssl? ( dev-libs/openssl )
"
DEPEND="
${RDEPEND}
"
src_configure() {
local mycmakeargs=(
-DCPR_WARNINGS_AS_ERRORS=OFF
-DCPR_USE_SYSTEM_CURL=ON
-DCPR_ENABLE_SSL=$(usex ssl)
)
cmake_src_configure
}
Manage flags for this package:
euse -i <flag> -p dev-cpp/cpr |
euse -E <flag> -p dev-cpp/cpr |
euse -D <flag> -p dev-cpp/cpr
net-misc/curl[ssl?] ssl? ( dev-libs/openssl )
net-misc/curl[ssl?] ssl? ( dev-libs/openssl )
| Type | File | Size | Source URLs |
|---|---|---|---|
| DIST | cpr-1.15.1.tar.gz | 181812 bytes | https://github.com/libcpr/cpr/archive/1.15.1.tar.gz |