dev-libs/cxxopts: add 3.3.1

Closes: https://bugs.gentoo.org/952106
Closes: https://bugs.gentoo.org/957465
Closes: https://bugs.gentoo.org/960347
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sam James 2025-10-05 03:00:37 +01:00
parent 432b4593f0
commit 5e254adbc2
No known key found for this signature in database
GPG Key ID: 738409F520DF9190
2 changed files with 38 additions and 0 deletions

View File

@ -1,3 +1,4 @@
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
DIST cxxopts-3.3.1.tar.gz 161557 BLAKE2B a118788bd3125e423abb8a04711028de4caf15f01c85bde2493586d42c4ef2e0be9e973446ccb8e72f6774551209e50a542aeb1b889811033e2430aa2261e706 SHA512 a22da1436a263d51aad2f542c2099f5b4fd1b02674716ff26d2f575786dcec4e97400edebf5577de95f3ae48c7c99be7be17d7a3de3e01a9f3612667e1547908

View File

@ -0,0 +1,37 @@
# Copyright 2020-2025 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=(
# bug #938824, bug #940222
-DCXXOPTS_CXX_STANDARD=17
-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
}