This repository has been archived on 2024-09-25. You can view files and clone it, but cannot push or open issues or pull requests.
overlay/dev-cpp/curlpp/curlpp-0.8.1-r1.ebuild
tastytea 5412d33ab4
All checks were successful
the build was successful
dev-cpp/curlpp: Fixed QA issue with pkg-config file
Package-Manager: Portage-2.3.51, Repoman-2.3.11
Manifest-Sign-Key: 3555266864CA6D7FF45AA6E7CFC39497F1B26E07
2018-11-19 12:44:30 +01:00

39 lines
780 B
Bash

# Copyright 2018 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=6
inherit cmake-utils
DESCRIPTION="C++ wrapper for libcURL"
HOMEPAGE="http://www.curlpp.org/"
SRC_URI="https://github.com/jpbarrette/curlpp/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~arm"
IUSE="doc examples static-libs"
RDEPEND=">=net-misc/curl-7.58.0"
DEPEND=">=dev-util/cmake-3.9.6
${RDEPEND}"
src_prepare() {
cmake-utils_src_prepare
sed -i 's/@LDFLAGS@ //' extras/curlpp.pc.in
if ! use static-libs; then
eapply "${FILESDIR}/no_static_lib.patch"
fi
}
src_install() {
cmake-utils_src_install
dodoc Readme.md doc/AUTHORS doc/TODO
if use doc; then
dodoc doc/guide.pdf
fi
if use examples; then
dodoc -r examples/
fi
}