summaryrefslogtreecommitdiff
path: root/dev-cpp/cli11/cli11-2.6.0.ebuild
diff options
context:
space:
mode:
authorIonen Wolkens <ionen@gentoo.org>2025-10-20 09:26:01 -0400
committerIonen Wolkens <ionen@gentoo.org>2025-10-20 09:30:58 -0400
commitfd3da04a856c68629e3741d57fde98e9f0c70f4b (patch)
tree8ba26106398381a4c583f04825fc479531b8ed2d /dev-cpp/cli11/cli11-2.6.0.ebuild
parent46b3f5671477d363a76256e6df83ed0e4a990faf (diff)
downloadgentoo-fd3da04a856c68629e3741d57fde98e9f0c70f4b.tar.gz
gentoo-fd3da04a856c68629e3741d57fde98e9f0c70f4b.tar.bz2
gentoo-fd3da04a856c68629e3741d57fde98e9f0c70f4b.zip
dev-cpp/cli11: add 2.6.0
Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
Diffstat (limited to 'dev-cpp/cli11/cli11-2.6.0.ebuild')
-rw-r--r--dev-cpp/cli11/cli11-2.6.0.ebuild55
1 files changed, 55 insertions, 0 deletions
diff --git a/dev-cpp/cli11/cli11-2.6.0.ebuild b/dev-cpp/cli11/cli11-2.6.0.ebuild
new file mode 100644
index 000000000000..e88877d4cd4c
--- /dev/null
+++ b/dev-cpp/cli11/cli11-2.6.0.ebuild
@@ -0,0 +1,55 @@
+# Copyright 2023-2025 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
+}