dev-cpp/cli11: add 2.0.0

Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
This commit is contained in:
Anna (cybertailor) Vyalkova
2021-07-27 09:14:17 +05:00
parent 0d4d64b1b4
commit 32d3f8cdfa
2 changed files with 38 additions and 0 deletions

View File

@@ -0,0 +1,37 @@
# Copyright 2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
DOCS_BUILDER="doxygen"
DOCS_DIR="docs"
inherit cmake docs
DESCRIPTION="Command line parser for C++11"
HOMEPAGE="https://github.com/CLIUtils/CLI11 https://cliutils.github.io/CLI11/book"
SRC_URI="https://github.com/CLIUtils/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/CLI11-${PV}"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="test"
RESTRICT="!test? ( test )"
DOCS=( README.md CHANGELOG.md )
src_configure() {
local mycmakeargs=(
-DCLI11_BUILD_DOCS=OFF # handled by docs.eclass
-DCLI11_BUILD_TESTS=OFF # requires download of catch.hpp
-DCLI11_BUILD_EXAMPLES=$(usex test) # ...so examples are tested instead
-DCLI11_BUILD_EXAMPLES_JSON=OFF
)
cmake_src_configure
}
src_compile() {
cmake_src_compile
docs_compile
}