dev-cpp/cli11: add 2.6.2

Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
This commit is contained in:
Ionen Wolkens
2026-02-26 10:07:40 -05:00
parent 2154fa3f44
commit 6e737cf239
2 changed files with 56 additions and 0 deletions

View File

@@ -1 +1,2 @@
DIST cli11-2.6.1.tar.gz 391731 BLAKE2B 218a64f2fa089adc93e62ebaac37e60622768de434122dd411d0eac505e8f3ca108e714dd4c4552f5567579af8247db58206f13f356e802034a2a6bde87771ca SHA512 28ff846ca0b736c784d1660b4d1470f34f55fed650c80fb6a2ec26519eaacbb80dd1aa951a4517097579f4aa0cf9527a13f3359744e589e31f852d1bea0ecfc8
DIST cli11-2.6.2.tar.gz 1381808 BLAKE2B fc1693874bef7ec193cdbf5ff070fbf186c6279578f889b1487aa1800d01696cd44acbb1a0e30062db9796b796d9992aebdb4b6d0d782236bf5bdda269c4b510 SHA512 3b17c02e120d6c14246157fcfef1e55c34462d8ee3adb55e49f4b180fc2e0d52ec4371505c009839c623ccc5bf4ac16c8c94707d10b1f1cb0e916c3402d2e7a6

View File

@@ -0,0 +1,55 @@
# 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 "${BUILD_DIR}"/docs/html
}