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

41 lines
801 B
Bash
Raw Normal View History

2022-10-07 16:07:21 +05:00
# Copyright 2021-2022 Gentoo Authors
2021-07-27 09:14:17 +05:00
# 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
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? (
2022-10-09 04:23:50 +05:00
<dev-cpp/catch-3:0
2021-10-19 21:33:31 +05:00
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
}