Gentoo Archives: gentoo-commits

From: Ionen Wolkens <ionen@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-cpp/string-theory/
Date: Sun, 06 Feb 2022 19:47:51
Message-Id: 1644176026.896f48bd1e387673126549442ed3ff50fbb83e60.ionen@gentoo
1 commit: 896f48bd1e387673126549442ed3ff50fbb83e60
2 Author: Richard Fröhning <misanthropos <AT> gmx <DOT> net>
3 AuthorDate: Sun Jan 30 21:41:12 2022 +0000
4 Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
5 CommitDate: Sun Feb 6 19:33:46 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=896f48bd
7
8 dev-cpp/string-theory: version bump to 3.5
9
10 compiles and works with ja2-straciatella-0.17.0
11
12 ionen's note: ran into #800245 with 3.4 but 3.5 fixed it
13
14 Signed-off-by: Richard Fröhning <misanthropos <AT> gmx.net>
15 Closes: https://bugs.gentoo.org/800245
16 Closes: https://github.com/gentoo/gentoo/pull/24025
17 Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>
18
19 dev-cpp/string-theory/Manifest | 1 +
20 dev-cpp/string-theory/string-theory-3.5.ebuild | 38 ++++++++++++++++++++++++++
21 2 files changed, 39 insertions(+)
22
23 diff --git a/dev-cpp/string-theory/Manifest b/dev-cpp/string-theory/Manifest
24 index 4d9fac23ce48..7b0df9584b2d 100644
25 --- a/dev-cpp/string-theory/Manifest
26 +++ b/dev-cpp/string-theory/Manifest
27 @@ -1,2 +1,3 @@
28 DIST string-theory-3.3.tar.gz 588360 BLAKE2B ad87857e6d5e3cad1346b759457b434de7612b97e1b19016b1dfc987ac67f0cab318745b14fe1f432cc921ffb1d33b875a2a62f0bc56d815dd35b405a9f08560 SHA512 86209333dce341078c3b973084bd9f3b8ff2ccac0e07a5e6acf5973bd1cfa420897b531b2d1bd6aba9f5ccc8927f85d91f06796ac0e62ec8a735564a0387d2f4
29 DIST string-theory-3.4.tar.gz 588522 BLAKE2B 207c490293401829d28590291166bcbeefde4ecb3b70d1cc2751d7582c53cf234b7e01579d3bfbe55681708e4d3e22cedbd6fe96b2fdad1c3ef158bb7a080593 SHA512 36ad82c6da276b7cb66d350ceb4bed2a66f768a6604b2981331ceec6a96d03cc3a7e7e5f733de88ec15e0ea41f99f8657b959a51149c540f530d06268c5657ff
30 +DIST string-theory-3.5.tar.gz 589905 BLAKE2B c2bc926b8568efc1fbe27861619bd8249ad788297dd537cff393d212b3bb12a529847b740fc8ba82dc28501fb05800eb8debf3e4832cf145b5c13882ac45e900 SHA512 30300155e64ace8197ed531baffe4e835c269ac10d6857ac9f29501e0a1f69965994d6f2fa2e64544e7d441de635e2d370be24efcf00a0d24066730d19f022a6
31
32 diff --git a/dev-cpp/string-theory/string-theory-3.5.ebuild b/dev-cpp/string-theory/string-theory-3.5.ebuild
33 new file mode 100644
34 index 000000000000..0e9b684ef7c7
35 --- /dev/null
36 +++ b/dev-cpp/string-theory/string-theory-3.5.ebuild
37 @@ -0,0 +1,38 @@
38 +# Copyright 1999-2022 Gentoo Authors
39 +# Distributed under the terms of the GNU General Public License v2
40 +
41 +EAPI=7
42 +
43 +inherit cmake
44 +
45 +DESCRIPTION="A flexible modern C++ library for string manipulation and storage"
46 +HOMEPAGE="https://github.com/zrax/string_theory/"
47 +SRC_URI="https://github.com/zrax/string_theory/archive/${PV}.tar.gz -> ${P}.tar.gz"
48 +S="${WORKDIR}/string_theory-${PV}"
49 +
50 +LICENSE="MIT"
51 +SLOT="0"
52 +KEYWORDS="~amd64 ~arm64 ~x86"
53 +IUSE="test"
54 +RESTRICT="!test? ( test )"
55 +
56 +src_prepare() {
57 + # Drop -Werror from bundled gtest
58 + # bug #766468
59 + sed -i -e "s/-Werror//" test/gtest-1.10.0/cmake/internal_utils.cmake || die
60 +
61 + cmake_src_prepare
62 +}
63 +
64 +src_configure() {
65 + local mycmakeargs=(
66 + -DST_BUILD_TESTS=$(usex test)
67 + )
68 +
69 + cmake_src_configure
70 +}
71 +
72 +src_test() {
73 + cd "${BUILD_DIR}/test" || die
74 + ./st_gtests || die
75 +}