Files
guru/dev-cpp/cli11/cli11-2.1.2.ebuild
T

42 lines
809 B
Bash
Raw Normal View History

2021-07-27 09:14:17 +05:00
# Copyright 2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
2021-10-19 21:33:31 +05:00
EAPI=8
2021-07-27 09:14:17 +05:00
DOCS_BUILDER="doxygen"
DOCS_DIR="docs"
inherit cmake docs
2021-10-19 21:33:31 +05:00
CATCH_PV=2.13.6
2021-07-27 09:14:17 +05:00
DESCRIPTION="Command line parser for C++11"
2022-04-04 18:45:49 +02:00
HOMEPAGE="https://github.com/CLIUtils/CLI11 https://cliutils.github.io/CLI11/book/"
2021-07-27 09:14:17 +05:00
SRC_URI="https://github.com/CLIUtils/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/CLI11-${PV}"
LICENSE="BSD"
2021-10-19 21:33:31 +05:00
SLOT="0/2"
2021-07-27 09:14:17 +05:00
KEYWORDS="~amd64 ~x86"
2021-10-19 21:33:31 +05:00
2021-07-27 09:14:17 +05:00
IUSE="test"
RESTRICT="!test? ( test )"
2021-10-19 21:33:31 +05:00
DEPEND="test? (
dev-cpp/catch:0
dev-libs/boost
)"
2021-07-27 09:14:17 +05:00
DOCS=( README.md CHANGELOG.md )
src_configure() {
local mycmakeargs=(
-DCLI11_BUILD_DOCS=OFF # handled by docs.eclass
2021-10-19 21:33:31 +05:00
-DCLI11_BUILD_TESTS=$(usex test)
2021-07-27 09:14:17 +05:00
)
cmake_src_configure
}
src_compile() {
cmake_src_compile
docs_compile
}