summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick McLean <chutzpah@gentoo.org>2022-05-05 08:49:18 -0700
committerPatrick McLean <chutzpah@gentoo.org>2022-05-05 08:49:18 -0700
commitb488ea1efdc35a772a2faa7aaec4fcd440afceef (patch)
treef861c315078792c10fd00ee891e79befe4989cb4 /dev-libs/cxxopts
parentnet-vpn/openconnect: add 9.01 (diff)
downloadgentoo-b488ea1efdc35a772a2faa7aaec4fcd440afceef.tar.gz
gentoo-b488ea1efdc35a772a2faa7aaec4fcd440afceef.tar.bz2
gentoo-b488ea1efdc35a772a2faa7aaec4fcd440afceef.zip
dev-libs/cxxopts: add 3.0.0
Signed-off-by: Patrick McLean <chutzpah@gentoo.org>
Diffstat (limited to 'dev-libs/cxxopts')
-rw-r--r--dev-libs/cxxopts/Manifest1
-rw-r--r--dev-libs/cxxopts/cxxopts-3.0.0.ebuild37
2 files changed, 38 insertions, 0 deletions
diff --git a/dev-libs/cxxopts/Manifest b/dev-libs/cxxopts/Manifest
index 979c216d40dd..8e25883fd030 100644
--- a/dev-libs/cxxopts/Manifest
+++ b/dev-libs/cxxopts/Manifest
@@ -1 +1,2 @@
DIST cxxopts-2.2.1.tar.gz 89561 BLAKE2B d7fb74cff9b9381d90827fd3e3bcc7dab8b4dc100b9ff12d98ff4c73400c187c04c270d8c5a019c88e553f8c46c59eda1e5076a1aec944e7d8af5ca6de2326db SHA512 bad2928b4e06efcfa09728dd946426e4fd39715b687c0a5c7b6308dd366cb490fdd8491c9a9778242d97d5be4a383bf9d1c209efe298c6c43bb1eb9daa103f05
+DIST cxxopts-3.0.0.tar.gz 97020 BLAKE2B 129b055dd03ce9e4a146d36587063f7155b47456d81e395ae6eeab8012e8d6cfcb410c305353f2ac2ec66a2f3e8d6169e1a0d27c53dcb35388b967d3c9cc86f1 SHA512 239479a3b35ddef6fc380ac9371e1cf7e3aea066f03e1ea538151fa2fff4296838daa976d55e988d8f87f40c0ae027767bcb214754177499413af1081315565c
diff --git a/dev-libs/cxxopts/cxxopts-3.0.0.ebuild b/dev-libs/cxxopts/cxxopts-3.0.0.ebuild
new file mode 100644
index 000000000000..3a03a5571924
--- /dev/null
+++ b/dev-libs/cxxopts/cxxopts-3.0.0.ebuild
@@ -0,0 +1,37 @@
+# Copyright 2020-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake
+
+DESCRIPTION="Lightweight C++ command line option parser"
+HOMEPAGE="https://github.com/jarro2783/cxxopts"
+SRC_URI="https://github.com/jarro2783/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0/${PV}"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86"
+IUSE="icu test"
+
+RESTRICT="!test? ( test )"
+
+DOCS=(
+ README.md
+ CHANGELOG.md
+)
+
+src_prepare() {
+ sed -r -e 's:-Werror[[:space:]]*::' -i cmake/cxxopts.cmake || die
+ cmake_src_prepare
+}
+
+src_configure() {
+ local -a mycmakeopts=(
+ -DCXXOPTS_BUILD_EXAMPLES:BOOL=OFF
+ -DCXXOPTS_BUILD_TESTS:BOOL=$(usex test)
+ -DCXXOPTS_ENABLE_INSTALL:BOOL=ON
+ -DCXXOPTS_USE_UNICODE_HELP:BOOL=$(usex icu)
+ )
+ cmake_src_configure
+}