summaryrefslogtreecommitdiff
path: root/dev-cpp/curlpp/curlpp-0.8.1.ebuild
blob: 92293f3924f52fe2a6a02b677a397eb5f37c4755 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Copyright 2018-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

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"

LICENSE="MIT"
SLOT="0"
KEYWORDS="amd64 ~x86"
IUSE="doc examples"

RDEPEND="net-misc/curl"
DEPEND="${RDEPEND}"

DOCS=( Readme.md doc/AUTHORS doc/TODO )

PATCHES=( "${FILESDIR}"/${P}-fix-pkgconfig.patch )

src_install() {
	use doc && DOCS+=( doc/guide.pdf )

	cmake_src_install

	rm "${ED}"/usr/$(get_libdir)/libcurlpp.a || die

	if use examples ; then
		dodoc -r examples/
	fi
}