commit: 529787d413630556de9a72d7bcdcb82dd7d1305f Author: Patrick McLean <chutzpah <AT> gentoo <DOT> org> AuthorDate: Tue Feb 14 18:23:18 2023 +0000 Commit: Patrick McLean <chutzpah <AT> gentoo <DOT> org> CommitDate: Tue Feb 14 18:23:18 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=529787d4
dev-libs/cxxopts: add 3.1.0 Signed-off-by: Patrick McLean <chutzpah <AT> gentoo.org> dev-libs/cxxopts/Manifest | 1 + dev-libs/cxxopts/cxxopts-3.1.0.ebuild | 37 +++++++++++++++++++++++++++++++++++ 2 files changed, 38 insertions(+) diff --git a/dev-libs/cxxopts/Manifest b/dev-libs/cxxopts/Manifest index 25fc46c0bb8d..443b73a4ee56 100644 --- a/dev-libs/cxxopts/Manifest +++ b/dev-libs/cxxopts/Manifest @@ -1 +1,2 @@ DIST cxxopts-3.0.0.tar.gz 97020 BLAKE2B 129b055dd03ce9e4a146d36587063f7155b47456d81e395ae6eeab8012e8d6cfcb410c305353f2ac2ec66a2f3e8d6169e1a0d27c53dcb35388b967d3c9cc86f1 SHA512 239479a3b35ddef6fc380ac9371e1cf7e3aea066f03e1ea538151fa2fff4296838daa976d55e988d8f87f40c0ae027767bcb214754177499413af1081315565c +DIST cxxopts-3.1.0.tar.gz 101547 BLAKE2B 0e8d17c2f75fbc3326a67c1787eb80177a72e07e79862288498b4bb97a395269a4b14749db4ea14292b77d6b883f8dc9a33a4001c699e53e51b63c7d14e9ece0 SHA512 bfb593f6393160ae3eeff1fe7bc77394606c3af6ae3b785f9740d178514a8fd286556440aa8a2932633f65b6336695fa286d503f3ac544d0f73affd49051e85d diff --git a/dev-libs/cxxopts/cxxopts-3.1.0.ebuild b/dev-libs/cxxopts/cxxopts-3.1.0.ebuild new file mode 100644 index 000000000000..697162ee0804 --- /dev/null +++ b/dev-libs/cxxopts/cxxopts-3.1.0.ebuild @@ -0,0 +1,37 @@ +# Copyright 2020-2023 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 +}