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: Fri, 30 Apr 2021 07:01:42
Message-Id: 1619766090.3dba9019a3ab586ebd41e26371cbb40be45b51b3.juippis@gentoo
1 commit: 3dba9019a3ab586ebd41e26371cbb40be45b51b3
2 Author: Joonas Niilola <juippis <AT> gentoo <DOT> org>
3 AuthorDate: Fri Apr 30 06:24:36 2021 +0000
4 Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
5 CommitDate: Fri Apr 30 07:01:30 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3dba9019
7
8 dev-libs/raft: bump to 0.10.1
9
10 Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
11
12 dev-libs/raft/Manifest | 1 +
13 dev-libs/raft/raft-0.10.1.ebuild | 52 ++++++++++++++++++++++++++++++++++++++++
14 2 files changed, 53 insertions(+)
15
16 diff --git a/dev-libs/raft/Manifest b/dev-libs/raft/Manifest
17 index 0c88d50bef4..0d1ad05e194 100644
18 --- a/dev-libs/raft/Manifest
19 +++ b/dev-libs/raft/Manifest
20 @@ -1 +1,2 @@
21 DIST raft-0.10.0.tar.gz 315569 BLAKE2B 2365ee2ef4aca44257cf7631875013a6778d8858427946443ec02411783517f3ef129529c3302eceedbd43d9a57de9a3fc20a762b51ce8c7ed96045d4c8d27b0 SHA512 5039e2305c92f5002de4ef33f3c0b76dac1e72b8d983440ae0f5cb65d99213278e23a80401476617f32857c1913ab30bf257265d92f6bb5992d2701d4c25f977
22 +DIST raft-0.10.1.tar.gz 318911 BLAKE2B 42ef22dfc89f05a3a9f130011c0f906201126a1615f9a60648587e014bbb63e038b3afd1593c2c07b046c3c35ef07deaa45cdce58062707409e4dbd3a9f7516e SHA512 6fa99d9dbb5895299c5124f5c8cfb544cf1bccae4ee196bc8011cd4cf9c632cd896f8cd93181409fbaf7da115235c72a4e10568080dd9957eceb978784dc0f9d
23
24 diff --git a/dev-libs/raft/raft-0.10.1.ebuild b/dev-libs/raft/raft-0.10.1.ebuild
25 new file mode 100644
26 index 00000000000..ffd134995c1
27 --- /dev/null
28 +++ b/dev-libs/raft/raft-0.10.1.ebuild
29 @@ -0,0 +1,52 @@
30 +# Copyright 2020-2021 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=7
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"
44 +IUSE="test zfs"
45 +RESTRICT="!test? ( test )"
46 +
47 +DEPEND="dev-libs/libuv"
48 +RDEPEND="${DEPEND}"
49 +
50 +PATCHES=(
51 + "${FILESDIR}"/raft-0.9.25-Always-skip-init-oom-test.patch
52 + "${FILESDIR}"/raft-0.10.0-toggle-zfs.patch
53 + )
54 +
55 +src_prepare() {
56 + default
57 + eautoreconf
58 +}
59 +
60 +src_configure() {
61 + local myeconfargs=(
62 + --enable-uv
63 +
64 + --disable-benchmark
65 + --disable-debug
66 + --disable-example
67 + --disable-sanitize
68 + --disable-static
69 +
70 + $(use_enable test fixture)
71 +
72 + $(use_with zfs)
73 + )
74 +
75 + econf "${myeconfargs[@]}"
76 +}
77 +
78 +src_install() {
79 + default
80 + find "${ED}" -name '*.la' -delete || die
81 +}