commit: 0ca164558b4beacc35a8de976bab52f306daad48 Author: Alexey Rochev <equeim <AT> gmail <DOT> com> AuthorDate: Fri Dec 6 01:05:25 2024 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Fri Dec 27 12:06:59 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0ca16455
dev-libs/cxxopts: add 3.2.1 Signed-off-by: Alexey Rochev <equeim <AT> gmail.com> Closes: https://github.com/gentoo/gentoo/pull/39608 Signed-off-by: Sam James <sam <AT> gentoo.org> dev-libs/cxxopts/Manifest | 1 + dev-libs/cxxopts/cxxopts-3.2.1.ebuild | 39 +++++++++++++++++++++++++++++++++++ 2 files changed, 40 insertions(+) diff --git a/dev-libs/cxxopts/Manifest b/dev-libs/cxxopts/Manifest index 7c4f5f353d16..b2a7ac501f93 100644 --- a/dev-libs/cxxopts/Manifest +++ b/dev-libs/cxxopts/Manifest @@ -1,2 +1,3 @@ DIST cxxopts-3.0.0.tar.gz 97020 BLAKE2B 129b055dd03ce9e4a146d36587063f7155b47456d81e395ae6eeab8012e8d6cfcb410c305353f2ac2ec66a2f3e8d6169e1a0d27c53dcb35388b967d3c9cc86f1 SHA512 239479a3b35ddef6fc380ac9371e1cf7e3aea066f03e1ea538151fa2fff4296838daa976d55e988d8f87f40c0ae027767bcb214754177499413af1081315565c DIST cxxopts-3.2.0.tar.gz 160534 BLAKE2B b6fead8930e83b4af089631e584bec0777da2e7b58aeb5e44b03a1655795dd3aff3923a245699e936bef7e0e871da2c86dd5639d44a839f1ac305a694e811feb SHA512 7265de66b92591255488d01bc26ca874423c75223e2e157a99f14fdd3e92e8d2669b72732acac3ce835190f1a09c13a994c480f0513f229eba8aa008e3d98955 +DIST cxxopts-3.2.1.tar.gz 160606 BLAKE2B 891657d5c00213ae79a1f7600627829f114cf17c3f5c332b1a1c2dcdf2ba7c4a46826f5e0bdff2c09803396fdf133c12d35f6d76b01e473c83bc0fc130821ad4 SHA512 7841fb3e6c3c2a057917c962e29fc0090e6ed06f5515aaa5e2a868fef59071a9a99b74d81c32cf613ecf10a68a4d96d6ad07805f48c7c3951ded096a2317dc3d diff --git a/dev-libs/cxxopts/cxxopts-3.2.1.ebuild b/dev-libs/cxxopts/cxxopts-3.2.1.ebuild new file mode 100644 index 000000000000..bc1006c6538a --- /dev/null +++ b/dev-libs/cxxopts/cxxopts-3.2.1.ebuild @@ -0,0 +1,39 @@ +# Copyright 2020-2024 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 ~loong ~ppc64 ~riscv ~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 mycmakeargs=( + -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 +}
