mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-05 12:38:09 -07:00
dev-libs/cxxopts: add 3.0.0
Signed-off-by: Patrick McLean <chutzpah@gentoo.org>
This commit is contained in:
@@ -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
|
||||
|
||||
37
dev-libs/cxxopts/cxxopts-3.0.0.ebuild
Normal file
37
dev-libs/cxxopts/cxxopts-3.0.0.ebuild
Normal file
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user