Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-cpp/rapidfuzz-cpp/
Date: Sun, 06 Nov 2022 06:36:15
Message-Id: 1667716520.128b8857a5c42248ec09f4535c5e63f3ada2e2df.mgorny@gentoo
1 commit: 128b8857a5c42248ec09f4535c5e63f3ada2e2df
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sun Nov 6 06:20:31 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sun Nov 6 06:35:20 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=128b8857
7
8 dev-cpp/rapidfuzz-cpp: Bump to 1.10.1
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.1.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 f8eaf0948ac1..484fbef27159 100644
18 --- a/dev-cpp/rapidfuzz-cpp/Manifest
19 +++ b/dev-cpp/rapidfuzz-cpp/Manifest
20 @@ -1,2 +1,3 @@
21 DIST rapidfuzz-cpp-1.10.0.gh.tar.gz 283171 BLAKE2B d126134f3250b5c5320d5776bb913b6458f5bcc61629c1ffd5957b3ddf79e5ff1ccc1c67a9c33271942e7f59846c73d2fdc672a99141964dae716c4ac8057193 SHA512 5d9b184e2b7975b0ba3f29e2698b80906afffa7c561f8b7c49988f99c92ff480bf0a471cb48f7e8024f3e048fb2b01ebbbf1bc28afacee78890f6a595cf10517
22 +DIST rapidfuzz-cpp-1.10.1.gh.tar.gz 284749 BLAKE2B 530476df0120e0a864298f80d786df02e0bc77a9b3482b2be7ff94ed4c4c749828eddadcaae2e8958e991744842380c48e2ce1bfa59062dc592b6a8905dbc234 SHA512 9e33601b85189bca8ff1ff21e33f62fb674d6f6ce5713588f303b5879b02eba84e96421fea3c96cfc6a7393ad5a95c755176d7c17e7f4c81498516f163584bf6
23 DIST rapidfuzz-cpp-1.9.0.gh.tar.gz 281385 BLAKE2B 4afc48edd9c8270200645eb77065bf212b9579b90b3916e261bbe69fd60f67c1e510c3ae4ef9877a26c3313063717b362e01c6cf799a0f9fc3429799d9b2dca6 SHA512 d95c90f9118811d650d859a20f847c71427acbc8c4f907f49d23b069cd6d1a848749d32f8fbff7326828b7a030c3f488acacba5845a72a0057ccf4c3088badf4
24
25 diff --git a/dev-cpp/rapidfuzz-cpp/rapidfuzz-cpp-1.10.1.ebuild b/dev-cpp/rapidfuzz-cpp/rapidfuzz-cpp-1.10.1.ebuild
26 new file mode 100644
27 index 000000000000..32f8979b752f
28 --- /dev/null
29 +++ b/dev-cpp/rapidfuzz-cpp/rapidfuzz-cpp-1.10.1.ebuild
30 @@ -0,0 +1,42 @@
31 +# Copyright 2022 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=8
35 +
36 +inherit cmake
37 +
38 +DESCRIPTION="Rapid fuzzy string matching in C++"
39 +HOMEPAGE="https://github.com/maxbachmann/rapidfuzz-cpp/"
40 +SRC_URI="
41 + https://github.com/maxbachmann/rapidfuzz-cpp/archive/v${PV}.tar.gz
42 + -> ${P}.gh.tar.gz
43 +"
44 +
45 +LICENSE="MIT"
46 +SLOT="0"
47 +KEYWORDS="~amd64 ~arm ~riscv"
48 +IUSE="test"
49 +RESTRICT="!test? ( test )"
50 +
51 +BDEPEND="
52 + test? (
53 + >=dev-cpp/catch-3
54 + )
55 +"
56 +
57 +src_prepare() {
58 + # apparently "C++ best practices" don't mind fetching random stuff
59 + # at build time
60 + sed -i -e '/aminya/,/^)/d' test/CMakeLists.txt || die
61 + find -name 'CMakeLists.txt' -exec \
62 + sed -i -e 's:project_warnings::' {} + || die
63 +
64 + cmake_src_prepare
65 +}
66 +
67 +src_configure() {
68 + local mycmakeargs=(
69 + -DRAPIDFUZZ_BUILD_TESTING=$(usex test)
70 + )
71 + cmake_src_configure
72 +}