summaryrefslogtreecommitdiff
path: root/dev-cpp/cli11/cli11-2.3.2.ebuild
diff options
context:
space:
mode:
authorLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2023-01-06 13:44:35 +0000
committerLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2023-01-06 13:44:35 +0000
commit8d60087a92d02932d30bb6d5a78354726ca91e6d (patch)
treea16964ed5b86488d9c4695b72c2c9b8cb0fc40d3 /dev-cpp/cli11/cli11-2.3.2.ebuild
parent6a0b0ec2d4ea0a9161ec870a8c70e698fc4ba074 (diff)
downloadsrcux-8d60087a92d02932d30bb6d5a78354726ca91e6d.tar.gz
srcux-8d60087a92d02932d30bb6d5a78354726ca91e6d.tar.xz
srcux-8d60087a92d02932d30bb6d5a78354726ca91e6d.zip
Adding metadata
Diffstat (limited to 'dev-cpp/cli11/cli11-2.3.2.ebuild')
-rw-r--r--dev-cpp/cli11/cli11-2.3.2.ebuild41
1 files changed, 41 insertions, 0 deletions
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..793ca37ab4aa
--- /dev/null
+++ b/dev-cpp/cli11/cli11-2.3.2.ebuild
@@ -0,0 +1,41 @@
+# Copyright 2021-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+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/2"
+KEYWORDS="~amd64 ~x86"
+
+IUSE="test"
+RESTRICT="!test? ( test )"
+
+DEPEND="test? (
+ <dev-cpp/catch-3:0
+ dev-libs/boost
+)"
+
+DOCS=( README.md CHANGELOG.md )
+
+src_configure() {
+ local mycmakeargs=(
+ -DCLI11_BUILD_DOCS=OFF # handled by docs.eclass
+ -DCLI11_BUILD_TESTS=$(usex test)
+ )
+
+ cmake_src_configure
+}
+
+src_compile() {
+ cmake_src_compile
+ docs_compile
+}