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/xdgcfg/xdgcfg-0.3.1.ebuild
tastytea 6c4e6baf82
Some checks failed
continuous-integration/drone/push Build is failing
dev-cpp/xdgcfg: Fixed src_install().
Package-Manager: Portage-2.3.66, Repoman-2.3.11
Manifest-Sign-Key: 3555266864CA6D7FF45AA6E7CFC39497F1B26E07
2019-07-22 04:35:06 +02:00

38 lines
706 B
Bash

# Copyright 2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit cmake-utils
DESCRIPTION="Wrapper around libconfig that writes and reads files in XDG_CONFIG_HOME"
HOMEPAGE="https://schlomp.space/tastytea/xdgcfg"
SRC_URI="https://schlomp.space/tastytea/${PN}/archive/${PV}.tar.gz"
LICENSE="CC0-1.0"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="examples test"
RDEPEND="dev-libs/libconfig[cxx]"
DEPEND="
${RDEPEND}
test? ( dev-cpp/catch )"
S="${WORKDIR}/${PN}"
src_configure() {
local mycmakeargs=(
-DWITH_TESTS="$(usex test)"
)
cmake-utils_src_configure
}
src_install() {
cmake-utils_src_install
if use examples; then
dodoc src/example.cpp
fi
}