1 |
commit: b488ea1efdc35a772a2faa7aaec4fcd440afceef |
2 |
Author: Patrick McLean <chutzpah <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu May 5 15:49:18 2022 +0000 |
4 |
Commit: Patrick McLean <chutzpah <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu May 5 15:49:18 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b488ea1e |
7 |
|
8 |
dev-libs/cxxopts: add 3.0.0 |
9 |
|
10 |
Signed-off-by: Patrick McLean <chutzpah <AT> gentoo.org> |
11 |
|
12 |
dev-libs/cxxopts/Manifest | 1 + |
13 |
dev-libs/cxxopts/cxxopts-3.0.0.ebuild | 37 +++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 38 insertions(+) |
15 |
|
16 |
diff --git a/dev-libs/cxxopts/Manifest b/dev-libs/cxxopts/Manifest |
17 |
index 979c216d40dd..8e25883fd030 100644 |
18 |
--- a/dev-libs/cxxopts/Manifest |
19 |
+++ b/dev-libs/cxxopts/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST cxxopts-2.2.1.tar.gz 89561 BLAKE2B d7fb74cff9b9381d90827fd3e3bcc7dab8b4dc100b9ff12d98ff4c73400c187c04c270d8c5a019c88e553f8c46c59eda1e5076a1aec944e7d8af5ca6de2326db SHA512 bad2928b4e06efcfa09728dd946426e4fd39715b687c0a5c7b6308dd366cb490fdd8491c9a9778242d97d5be4a383bf9d1c209efe298c6c43bb1eb9daa103f05 |
22 |
+DIST cxxopts-3.0.0.tar.gz 97020 BLAKE2B 129b055dd03ce9e4a146d36587063f7155b47456d81e395ae6eeab8012e8d6cfcb410c305353f2ac2ec66a2f3e8d6169e1a0d27c53dcb35388b967d3c9cc86f1 SHA512 239479a3b35ddef6fc380ac9371e1cf7e3aea066f03e1ea538151fa2fff4296838daa976d55e988d8f87f40c0ae027767bcb214754177499413af1081315565c |
23 |
|
24 |
diff --git a/dev-libs/cxxopts/cxxopts-3.0.0.ebuild b/dev-libs/cxxopts/cxxopts-3.0.0.ebuild |
25 |
new file mode 100644 |
26 |
index 000000000000..3a03a5571924 |
27 |
--- /dev/null |
28 |
+++ b/dev-libs/cxxopts/cxxopts-3.0.0.ebuild |
29 |
@@ -0,0 +1,37 @@ |
30 |
+# Copyright 2020-2022 Gentoo Authors |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=8 |
34 |
+ |
35 |
+inherit cmake |
36 |
+ |
37 |
+DESCRIPTION="Lightweight C++ command line option parser" |
38 |
+HOMEPAGE="https://github.com/jarro2783/cxxopts" |
39 |
+SRC_URI="https://github.com/jarro2783/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
40 |
+ |
41 |
+LICENSE="MIT" |
42 |
+SLOT="0/${PV}" |
43 |
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86" |
44 |
+IUSE="icu test" |
45 |
+ |
46 |
+RESTRICT="!test? ( test )" |
47 |
+ |
48 |
+DOCS=( |
49 |
+ README.md |
50 |
+ CHANGELOG.md |
51 |
+) |
52 |
+ |
53 |
+src_prepare() { |
54 |
+ sed -r -e 's:-Werror[[:space:]]*::' -i cmake/cxxopts.cmake || die |
55 |
+ cmake_src_prepare |
56 |
+} |
57 |
+ |
58 |
+src_configure() { |
59 |
+ local -a mycmakeopts=( |
60 |
+ -DCXXOPTS_BUILD_EXAMPLES:BOOL=OFF |
61 |
+ -DCXXOPTS_BUILD_TESTS:BOOL=$(usex test) |
62 |
+ -DCXXOPTS_ENABLE_INSTALL:BOOL=ON |
63 |
+ -DCXXOPTS_USE_UNICODE_HELP:BOOL=$(usex icu) |
64 |
+ ) |
65 |
+ cmake_src_configure |
66 |
+} |