summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIonen Wolkens <ionen@gentoo.org>2023-05-11 20:45:45 -0400
committerIonen Wolkens <ionen@gentoo.org>2023-05-12 04:59:37 -0400
commit4852c7128556259815b082af81099b9a5318b4b0 (patch)
tree6ec86681a3ba969a89010fbbcba273e45a57c426 /dev-cpp/cli11
parentmedia-gfx/ueberzug: drop 18.1.9-r1 (diff)
downloadgentoo-4852c7128556259815b082af81099b9a5318b4b0.tar.gz
gentoo-4852c7128556259815b082af81099b9a5318b4b0.tar.bz2
gentoo-4852c7128556259815b082af81099b9a5318b4b0.zip
dev-cpp/cli11: new package, add 2.3.2
Adding for media-gfx/ueberzugpp, also usable by other misc packages and may be convienient to have here. Has a meson.build but it's incomplete and is currently hardly supported, so using cmake. Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
Diffstat (limited to 'dev-cpp/cli11')
-rw-r--r--dev-cpp/cli11/Manifest1
-rw-r--r--dev-cpp/cli11/cli11-2.3.2.ebuild50
-rw-r--r--dev-cpp/cli11/metadata.xml11
3 files changed, 62 insertions, 0 deletions
diff --git a/dev-cpp/cli11/Manifest b/dev-cpp/cli11/Manifest
new file mode 100644
index 000000000000..a76342ad6441
--- /dev/null
+++ b/dev-cpp/cli11/Manifest
@@ -0,0 +1 @@
+DIST cli11-2.3.2.tar.gz 303507 BLAKE2B 68a1ca97fb55a4329f7d56a7d661f71f356bebcb0878421bccb18093aab171cff963f4e3e8f47b95cac4947ebbd7c7d6c853cc28e404c07091685ba1e99ac8d3 SHA512 f48b289d52034c47b90db58c035a123b464bed488cf31bcdbe10a692214a5c05e62b99d6fb7c4b065f42df862ecf3813f11dd533b3697939d761e99d2b89c2ec
diff --git a/dev-cpp/cli11/cli11-2.3.2.ebuild b/dev-cpp/cli11/cli11-2.3.2.ebuild
new file mode 100644
index 000000000000..7963b3dd40ab
--- /dev/null
+++ b/dev-cpp/cli11/cli11-2.3.2.ebuild
@@ -0,0 +1,50 @@
+# Copyright 2023 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 ~x86"
+IUSE="doc test"
+RESTRICT="!test? ( test )"
+
+DEPEND="
+ test? (
+ =dev-cpp/catch-2*:0
+ dev-libs/boost
+ )"
+BDEPEND="
+ doc? (
+ app-doc/doxygen
+ media-gfx/graphviz
+ )"
+
+src_configure() {
+ local mycmakeargs=(
+ -DCLI11_BOOST=$(usex test)
+ -DCLI11_BUILD_DOCS=$(usex doc)
+ -DCLI11_BUILD_EXAMPLES=no
+ -DCLI11_BUILD_TESTS=$(usex test)
+ )
+
+ 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
+}
diff --git a/dev-cpp/cli11/metadata.xml b/dev-cpp/cli11/metadata.xml
new file mode 100644
index 000000000000..06f8d3df4f06
--- /dev/null
+++ b/dev-cpp/cli11/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>ionen@gentoo.org</email>
+ <name>Ionen Wolkens</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">CLIUtils/CLI11</remote-id>
+ </upstream>
+</pkgmetadata>