commit:     3dba9019a3ab586ebd41e26371cbb40be45b51b3
Author:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
AuthorDate: Fri Apr 30 06:24:36 2021 +0000
Commit:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Fri Apr 30 07:01:30 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3dba9019

dev-libs/raft: bump to 0.10.1

Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>

 dev-libs/raft/Manifest           |  1 +
 dev-libs/raft/raft-0.10.1.ebuild | 52 ++++++++++++++++++++++++++++++++++++++++
 2 files changed, 53 insertions(+)

diff --git a/dev-libs/raft/Manifest b/dev-libs/raft/Manifest
index 0c88d50bef4..0d1ad05e194 100644
--- a/dev-libs/raft/Manifest
+++ b/dev-libs/raft/Manifest
@@ -1 +1,2 @@
 DIST raft-0.10.0.tar.gz 315569 BLAKE2B 
2365ee2ef4aca44257cf7631875013a6778d8858427946443ec02411783517f3ef129529c3302eceedbd43d9a57de9a3fc20a762b51ce8c7ed96045d4c8d27b0
 SHA512 
5039e2305c92f5002de4ef33f3c0b76dac1e72b8d983440ae0f5cb65d99213278e23a80401476617f32857c1913ab30bf257265d92f6bb5992d2701d4c25f977
+DIST raft-0.10.1.tar.gz 318911 BLAKE2B 
42ef22dfc89f05a3a9f130011c0f906201126a1615f9a60648587e014bbb63e038b3afd1593c2c07b046c3c35ef07deaa45cdce58062707409e4dbd3a9f7516e
 SHA512 
6fa99d9dbb5895299c5124f5c8cfb544cf1bccae4ee196bc8011cd4cf9c632cd896f8cd93181409fbaf7da115235c72a4e10568080dd9957eceb978784dc0f9d

diff --git a/dev-libs/raft/raft-0.10.1.ebuild b/dev-libs/raft/raft-0.10.1.ebuild
new file mode 100644
index 00000000000..ffd134995c1
--- /dev/null
+++ b/dev-libs/raft/raft-0.10.1.ebuild
@@ -0,0 +1,52 @@
+# Copyright 2020-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit autotools
+
+DESCRIPTION="C implementation of the Raft consensus protocol"
+HOMEPAGE="https://github.com/canonical/raft";
+SRC_URI="https://github.com/canonical/raft/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
+
+LICENSE="LGPL-3-with-linking-exception"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64"
+IUSE="test zfs"
+RESTRICT="!test? ( test )"
+
+DEPEND="dev-libs/libuv"
+RDEPEND="${DEPEND}"
+
+PATCHES=(
+       "${FILESDIR}"/raft-0.9.25-Always-skip-init-oom-test.patch
+       "${FILESDIR}"/raft-0.10.0-toggle-zfs.patch
+       )
+
+src_prepare() {
+       default
+       eautoreconf
+}
+
+src_configure() {
+       local myeconfargs=(
+               --enable-uv
+
+               --disable-benchmark
+               --disable-debug
+               --disable-example
+               --disable-sanitize
+               --disable-static
+
+               $(use_enable test fixture)
+
+               $(use_with zfs)
+       )
+
+       econf "${myeconfargs[@]}"
+}
+
+src_install() {
+       default
+       find "${ED}" -name '*.la' -delete || die
+}

Reply via email to