dev-cpp/cpr - 1.15.1 (guru)

Search

Install

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

Package Information

Description:
C++ Requests: Curl for People, a spiritual port of Python Requests
Homepage:
https://docs.libcpr.dev/
License:
MIT

Ebuild Details

Version EAPI Keywords Slot
1.15.1 8 ~amd64 ~arm64 0
View Raw Ebuild
# 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
}

USE Flags

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

Global/Standard Flags

ssl
❓ Default: Enabled (+)

Inherited Eclasses

Dependencies

DEPEND

	
	net-misc/curl[ssl?]
	ssl? ( dev-libs/openssl )

RDEPEND

	net-misc/curl[ssl?]
	ssl? ( dev-libs/openssl )

Manifest for 1.15.1

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