1 |
commit: f5899c42ffbab83bd087c0140b9b8dfd565fe135 |
2 |
Author: Richard Fröhning <misanthropos <AT> gmx <DOT> de> |
3 |
AuthorDate: Wed Dec 21 16:43:03 2022 +0000 |
4 |
Commit: Florian Schmaus <flow <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Jan 2 15:17:51 2023 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f5899c42 |
7 |
|
8 |
dev-cpp/string-theory: bump to 3.6 |
9 |
|
10 |
Signed-off-by: Richard Fröhning <misanthropos <AT> gmx.de> |
11 |
Closes: https://github.com/gentoo/gentoo/pull/28732 |
12 |
Signed-off-by: Florian Schmaus <flow <AT> gentoo.org> |
13 |
|
14 |
dev-cpp/string-theory/Manifest | 1 + |
15 |
dev-cpp/string-theory/string-theory-3.6.ebuild | 38 ++++++++++++++++++++++++++ |
16 |
2 files changed, 39 insertions(+) |
17 |
|
18 |
diff --git a/dev-cpp/string-theory/Manifest b/dev-cpp/string-theory/Manifest |
19 |
index c71a11b8be85..b1a156c5f269 100644 |
20 |
--- a/dev-cpp/string-theory/Manifest |
21 |
+++ b/dev-cpp/string-theory/Manifest |
22 |
@@ -1 +1,2 @@ |
23 |
DIST string-theory-3.5.tar.gz 589905 BLAKE2B c2bc926b8568efc1fbe27861619bd8249ad788297dd537cff393d212b3bb12a529847b740fc8ba82dc28501fb05800eb8debf3e4832cf145b5c13882ac45e900 SHA512 30300155e64ace8197ed531baffe4e835c269ac10d6857ac9f29501e0a1f69965994d6f2fa2e64544e7d441de635e2d370be24efcf00a0d24066730d19f022a6 |
24 |
+DIST string-theory-3.6.tar.gz 590461 BLAKE2B e8441ead9b13e8f107c47d0695ca669f40558567590b85310903f550edf2d4cbb8622f36857b9563d33a629398358e33024c97b97a8f151a3899f9cee30ee237 SHA512 2bbd8e6c5c2501cc9616ee6a77b60a7cac5e7c9fa58d6616f6ba39cfdee33dc1b072c5d1b34bd2f88726fb4d65d32032595be7a67854a2e894eb3d81d4a8eea9 |
25 |
|
26 |
diff --git a/dev-cpp/string-theory/string-theory-3.6.ebuild b/dev-cpp/string-theory/string-theory-3.6.ebuild |
27 |
new file mode 100644 |
28 |
index 000000000000..1e683f2fff92 |
29 |
--- /dev/null |
30 |
+++ b/dev-cpp/string-theory/string-theory-3.6.ebuild |
31 |
@@ -0,0 +1,38 @@ |
32 |
+# Copyright 1999-2022 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=8 |
36 |
+ |
37 |
+inherit cmake |
38 |
+ |
39 |
+DESCRIPTION="A flexible modern C++ library for string manipulation and storage" |
40 |
+HOMEPAGE="https://github.com/zrax/string_theory/" |
41 |
+SRC_URI="https://github.com/zrax/string_theory/archive/${PV}.tar.gz -> ${P}.tar.gz" |
42 |
+S="${WORKDIR}/string_theory-${PV}" |
43 |
+ |
44 |
+LICENSE="MIT" |
45 |
+SLOT="0" |
46 |
+KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86" |
47 |
+IUSE="test" |
48 |
+RESTRICT="!test? ( test )" |
49 |
+ |
50 |
+src_prepare() { |
51 |
+ # Drop -Werror from bundled gtest |
52 |
+ # bug #766468 |
53 |
+ sed -i -e "s/-Werror//" test/gtest-1.10.0/cmake/internal_utils.cmake || die |
54 |
+ |
55 |
+ cmake_src_prepare |
56 |
+} |
57 |
+ |
58 |
+src_configure() { |
59 |
+ local mycmakeargs=( |
60 |
+ -DST_BUILD_TESTS=$(usex test) |
61 |
+ ) |
62 |
+ |
63 |
+ cmake_src_configure |
64 |
+} |
65 |
+ |
66 |
+src_test() { |
67 |
+ cd "${BUILD_DIR}/test" || die |
68 |
+ ./st_gtests || die |
69 |
+} |