1 |
commit: dd51f7c0db0fdf55b4774f54fd49ecc8e09ee32a |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Oct 30 05:53:42 2022 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Oct 30 06:38:48 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dd51f7c0 |
7 |
|
8 |
dev-cpp/rapidfuzz-cpp: Bump to 1.10.0 |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-cpp/rapidfuzz-cpp/Manifest | 1 + |
13 |
dev-cpp/rapidfuzz-cpp/rapidfuzz-cpp-1.10.0.ebuild | 42 +++++++++++++++++++++++ |
14 |
2 files changed, 43 insertions(+) |
15 |
|
16 |
diff --git a/dev-cpp/rapidfuzz-cpp/Manifest b/dev-cpp/rapidfuzz-cpp/Manifest |
17 |
index 900a346f34ac..f8eaf0948ac1 100644 |
18 |
--- a/dev-cpp/rapidfuzz-cpp/Manifest |
19 |
+++ b/dev-cpp/rapidfuzz-cpp/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
+DIST rapidfuzz-cpp-1.10.0.gh.tar.gz 283171 BLAKE2B d126134f3250b5c5320d5776bb913b6458f5bcc61629c1ffd5957b3ddf79e5ff1ccc1c67a9c33271942e7f59846c73d2fdc672a99141964dae716c4ac8057193 SHA512 5d9b184e2b7975b0ba3f29e2698b80906afffa7c561f8b7c49988f99c92ff480bf0a471cb48f7e8024f3e048fb2b01ebbbf1bc28afacee78890f6a595cf10517 |
22 |
DIST rapidfuzz-cpp-1.9.0.gh.tar.gz 281385 BLAKE2B 4afc48edd9c8270200645eb77065bf212b9579b90b3916e261bbe69fd60f67c1e510c3ae4ef9877a26c3313063717b362e01c6cf799a0f9fc3429799d9b2dca6 SHA512 d95c90f9118811d650d859a20f847c71427acbc8c4f907f49d23b069cd6d1a848749d32f8fbff7326828b7a030c3f488acacba5845a72a0057ccf4c3088badf4 |
23 |
|
24 |
diff --git a/dev-cpp/rapidfuzz-cpp/rapidfuzz-cpp-1.10.0.ebuild b/dev-cpp/rapidfuzz-cpp/rapidfuzz-cpp-1.10.0.ebuild |
25 |
new file mode 100644 |
26 |
index 000000000000..32f8979b752f |
27 |
--- /dev/null |
28 |
+++ b/dev-cpp/rapidfuzz-cpp/rapidfuzz-cpp-1.10.0.ebuild |
29 |
@@ -0,0 +1,42 @@ |
30 |
+# Copyright 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="Rapid fuzzy string matching in C++" |
38 |
+HOMEPAGE="https://github.com/maxbachmann/rapidfuzz-cpp/" |
39 |
+SRC_URI=" |
40 |
+ https://github.com/maxbachmann/rapidfuzz-cpp/archive/v${PV}.tar.gz |
41 |
+ -> ${P}.gh.tar.gz |
42 |
+" |
43 |
+ |
44 |
+LICENSE="MIT" |
45 |
+SLOT="0" |
46 |
+KEYWORDS="~amd64 ~arm ~riscv" |
47 |
+IUSE="test" |
48 |
+RESTRICT="!test? ( test )" |
49 |
+ |
50 |
+BDEPEND=" |
51 |
+ test? ( |
52 |
+ >=dev-cpp/catch-3 |
53 |
+ ) |
54 |
+" |
55 |
+ |
56 |
+src_prepare() { |
57 |
+ # apparently "C++ best practices" don't mind fetching random stuff |
58 |
+ # at build time |
59 |
+ sed -i -e '/aminya/,/^)/d' test/CMakeLists.txt || die |
60 |
+ find -name 'CMakeLists.txt' -exec \ |
61 |
+ sed -i -e 's:project_warnings::' {} + || die |
62 |
+ |
63 |
+ cmake_src_prepare |
64 |
+} |
65 |
+ |
66 |
+src_configure() { |
67 |
+ local mycmakeargs=( |
68 |
+ -DRAPIDFUZZ_BUILD_TESTING=$(usex test) |
69 |
+ ) |
70 |
+ cmake_src_configure |
71 |
+} |