dev-cpp/cli11 - 2.7.2 (gentoo)

Search

Install

Install this version:

emerge -a =dev-cpp/cli11-2.7.2

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =dev-cpp/cli11-2.7.2

Or alternatively:

emerge --autounmask-write -a =dev-cpp/cli11-2.7.2

Package Information

Description:
Command line parser for C++11
Homepage:
https://cliutils.github.io/CLI11/book/
License:
BSD

Ebuild Details

Version EAPI Keywords Slot
2.7.2 8 ~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86 0
View Raw Ebuild
# Copyright 2023-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit cmake

DESCRIPTION="Command line parser for C++11"
HOMEPAGE="https://cliutils.github.io/CLI11/book/"
SRC_URI="
	https://github.com/CLIUtils/CLI11/archive/refs/tags/v${PV}.tar.gz
		-> ${P}.tar.gz
"
S=${WORKDIR}/${PN^^}-${PV}

LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86"
IUSE="doc test"
RESTRICT="!test? ( test )"

DEPEND="
	test? (
		dev-cpp/catch:0
		dev-libs/boost
	)
"
BDEPEND="
	doc? (
		app-text/doxygen
		media-gfx/graphviz
	)
"

src_configure() {
	local mycmakeargs=(
		-DCLI11_BUILD_DOCS=$(usex doc)
		-DCLI11_BUILD_EXAMPLES=no
		-DCLI11_BUILD_TESTS=$(usex test)
		$(usev test -DCLI11_BOOST=yes)
	)

	cmake_src_configure
}

src_compile() {
	cmake_src_compile all $(usev doc docs)
}

src_install() {
	local DOCS=( CHANGELOG.md README.md book/{chapters,code,*.md} )
	cmake_src_install

	use doc && dodoc -r html
}

USE Flags

Manage flags for this package: euse -i <flag> -p dev-cpp/cli11 | euse -E <flag> -p dev-cpp/cli11 | euse -D <flag> -p dev-cpp/cli11

Global/Standard Flags

doc

Inherited Eclasses

Dependencies

DEPEND

	test? (
		dev-cpp/catch:0
		dev-libs/boost
	)

BDEPEND

	doc? (
		app-text/doxygen
		media-gfx/graphviz
	)

Manifest for 2.7.2

Type File Size Source URLs
DIST cli11-2.7.2.tar.gz 1446996 bytes https://github.com/CLIUtils/CLI11/archive/refs/tags/v2.7.2.tar.gz