Gentoo Archives: gentoo-commits

From: Joonas Niilola <juippis@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/raft/
Date: Tue, 28 Jun 2022 07:14:08
Message-Id: 1656400337.d6aa2714a368c059c345ecb1321de909a94bda5b.juippis@gentoo
1 commit: d6aa2714a368c059c345ecb1321de909a94bda5b
2 Author: Joonas Niilola <juippis <AT> gentoo <DOT> org>
3 AuthorDate: Tue Jun 28 07:12:17 2022 +0000
4 Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
5 CommitDate: Tue Jun 28 07:12:17 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d6aa2714
7
8 dev-libs/raft: add 0.14.0
9
10 Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
11
12 dev-libs/raft/Manifest | 1 +
13 dev-libs/raft/raft-0.14.0.ebuild | 55 ++++++++++++++++++++++++++++++++++++++++
14 2 files changed, 56 insertions(+)
15
16 diff --git a/dev-libs/raft/Manifest b/dev-libs/raft/Manifest
17 index f767de429eed..789773ecc640 100644
18 --- a/dev-libs/raft/Manifest
19 +++ b/dev-libs/raft/Manifest
20 @@ -1 +1,2 @@
21 DIST raft-0.13.0.tar.gz 332490 BLAKE2B 8d14e07b12d4f5a7eadb626b72a90b4defffaee26804a982f257ef80f75ff47ccf434a7dc6b62f36177120cd12ce8c772a6f293e9ad48c61df277b10c0df1854 SHA512 1d65f21ac85deb36a6f8681bd506656a34994164ba51f7c23aa523673024dacf5616bbb3f706c0da4df38c0cc1a00b330459209c80d404545686525da2916afa
22 +DIST raft-0.14.0.tar.gz 336032 BLAKE2B 22f03a54ba99cbfd5564f5b730d42dc7ad786071daaad4928b331d0d740c9289fd4a3226a08a67b8e40b62319613173d9d8b0df5b40577a68f876f6015a53f16 SHA512 c8b6b6428d65a7d97e74cea2b41ce443d90741afe71c3c173f2ea3c84782a892f20158f6635a8eafda6d4a729ba001ea991640d43ff6cfafdacb1b607104de3c
23
24 diff --git a/dev-libs/raft/raft-0.14.0.ebuild b/dev-libs/raft/raft-0.14.0.ebuild
25 new file mode 100644
26 index 000000000000..dfebdcca2626
27 --- /dev/null
28 +++ b/dev-libs/raft/raft-0.14.0.ebuild
29 @@ -0,0 +1,55 @@
30 +# Copyright 2020-2022 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=8
34 +
35 +inherit autotools
36 +
37 +DESCRIPTION="C implementation of the Raft consensus protocol"
38 +HOMEPAGE="https://github.com/canonical/raft"
39 +SRC_URI="https://github.com/canonical/raft/archive/v${PV}.tar.gz -> ${P}.tar.gz"
40 +
41 +LICENSE="LGPL-3-with-linking-exception"
42 +SLOT="0"
43 +KEYWORDS="~amd64 ~arm64 ~x86"
44 +IUSE="lz4 test zfs"
45 +RESTRICT="!test? ( test )"
46 +
47 +DEPEND="dev-libs/libuv:=
48 + lz4? ( app-arch/lz4:= )"
49 +RDEPEND="${DEPEND}"
50 +BDEPEND="virtual/pkgconfig"
51 +
52 +PATCHES=(
53 + "${FILESDIR}"/raft-0.10.0-toggle-zfs.patch
54 + "${FILESDIR}"/raft-0.11.3-disable-automagic-check-for-lz4.patch
55 +)
56 +
57 +src_prepare() {
58 + default
59 + eautoreconf
60 +}
61 +
62 +src_configure() {
63 + local myeconfargs=(
64 + --enable-uv
65 +
66 + --disable-benchmark
67 + --disable-debug
68 + --disable-example
69 + --disable-sanitize
70 + --disable-static
71 +
72 + $(use_enable lz4)
73 + $(use_enable test fixture)
74 +
75 + $(use_with zfs)
76 + )
77 +
78 + econf "${myeconfargs[@]}"
79 +}
80 +
81 +src_install() {
82 + default
83 + find "${ED}" -name '*.la' -delete || die
84 +}