From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 061B9158023 for ; Sun, 30 Oct 2022 06:39:59 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id EB87DE0871; Sun, 30 Oct 2022 06:39:57 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id D336DE0871 for ; Sun, 30 Oct 2022 06:39:57 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id B81EA34111C for ; Sun, 30 Oct 2022 06:39:56 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id E95AE6A4 for ; Sun, 30 Oct 2022 06:39:54 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1667111928.dd51f7c0db0fdf55b4774f54fd49ecc8e09ee32a.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-cpp/rapidfuzz-cpp/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-cpp/rapidfuzz-cpp/Manifest dev-cpp/rapidfuzz-cpp/rapidfuzz-cpp-1.10.0.ebuild X-VCS-Directories: dev-cpp/rapidfuzz-cpp/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: dd51f7c0db0fdf55b4774f54fd49ecc8e09ee32a X-VCS-Branch: master Date: Sun, 30 Oct 2022 06:39:54 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 407770fa-5c55-4a89-8925-11f087b538ca X-Archives-Hash: 97262c6686c40faaf79c2cd7df6a0ff9 commit: dd51f7c0db0fdf55b4774f54fd49ecc8e09ee32a Author: Michał Górny gentoo org> AuthorDate: Sun Oct 30 05:53:42 2022 +0000 Commit: Michał Górny gentoo org> CommitDate: Sun Oct 30 06:38:48 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dd51f7c0 dev-cpp/rapidfuzz-cpp: Bump to 1.10.0 Signed-off-by: Michał Górny gentoo.org> dev-cpp/rapidfuzz-cpp/Manifest | 1 + dev-cpp/rapidfuzz-cpp/rapidfuzz-cpp-1.10.0.ebuild | 42 +++++++++++++++++++++++ 2 files changed, 43 insertions(+) diff --git a/dev-cpp/rapidfuzz-cpp/Manifest b/dev-cpp/rapidfuzz-cpp/Manifest index 900a346f34ac..f8eaf0948ac1 100644 --- a/dev-cpp/rapidfuzz-cpp/Manifest +++ b/dev-cpp/rapidfuzz-cpp/Manifest @@ -1 +1,2 @@ +DIST rapidfuzz-cpp-1.10.0.gh.tar.gz 283171 BLAKE2B d126134f3250b5c5320d5776bb913b6458f5bcc61629c1ffd5957b3ddf79e5ff1ccc1c67a9c33271942e7f59846c73d2fdc672a99141964dae716c4ac8057193 SHA512 5d9b184e2b7975b0ba3f29e2698b80906afffa7c561f8b7c49988f99c92ff480bf0a471cb48f7e8024f3e048fb2b01ebbbf1bc28afacee78890f6a595cf10517 DIST rapidfuzz-cpp-1.9.0.gh.tar.gz 281385 BLAKE2B 4afc48edd9c8270200645eb77065bf212b9579b90b3916e261bbe69fd60f67c1e510c3ae4ef9877a26c3313063717b362e01c6cf799a0f9fc3429799d9b2dca6 SHA512 d95c90f9118811d650d859a20f847c71427acbc8c4f907f49d23b069cd6d1a848749d32f8fbff7326828b7a030c3f488acacba5845a72a0057ccf4c3088badf4 diff --git a/dev-cpp/rapidfuzz-cpp/rapidfuzz-cpp-1.10.0.ebuild b/dev-cpp/rapidfuzz-cpp/rapidfuzz-cpp-1.10.0.ebuild new file mode 100644 index 000000000000..32f8979b752f --- /dev/null +++ b/dev-cpp/rapidfuzz-cpp/rapidfuzz-cpp-1.10.0.ebuild @@ -0,0 +1,42 @@ +# Copyright 2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake + +DESCRIPTION="Rapid fuzzy string matching in C++" +HOMEPAGE="https://github.com/maxbachmann/rapidfuzz-cpp/" +SRC_URI=" + https://github.com/maxbachmann/rapidfuzz-cpp/archive/v${PV}.tar.gz + -> ${P}.gh.tar.gz +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm ~riscv" +IUSE="test" +RESTRICT="!test? ( test )" + +BDEPEND=" + test? ( + >=dev-cpp/catch-3 + ) +" + +src_prepare() { + # apparently "C++ best practices" don't mind fetching random stuff + # at build time + sed -i -e '/aminya/,/^)/d' test/CMakeLists.txt || die + find -name 'CMakeLists.txt' -exec \ + sed -i -e 's:project_warnings::' {} + || die + + cmake_src_prepare +} + +src_configure() { + local mycmakeargs=( + -DRAPIDFUZZ_BUILD_TESTING=$(usex test) + ) + cmake_src_configure +}