summaryrefslogtreecommitdiff
path: root/dev-libs/raft
diff options
context:
space:
mode:
Diffstat (limited to 'dev-libs/raft')
-rw-r--r--dev-libs/raft/Manifest2
-rw-r--r--dev-libs/raft/raft-0.18.0.ebuild55
2 files changed, 57 insertions, 0 deletions
diff --git a/dev-libs/raft/Manifest b/dev-libs/raft/Manifest
index f8fb1f40b7ee..d746c8853579 100644
--- a/dev-libs/raft/Manifest
+++ b/dev-libs/raft/Manifest
@@ -1,5 +1,7 @@
AUX raft-0.10.0-toggle-zfs.patch 955 BLAKE2B bb9f351a6b7d0b7d95b7cdb6cf89db8963d46c44bd2613c69c7f3bd2c910cc185c8409cd80d218cab1569fe4729f649ac922ad1eb2b5652e5eeba441642e9588 SHA512 907f50fd1dc907d2a9aa1a89601064205c26d48956ddf56389a843e8c81b00acbc461125cbea5caef315be4a4a1d3a8f9bfd0a45ff0dedbeef1e0851e899b277
AUX raft-0.11.3-disable-automagic-check-for-lz4.patch 2819 BLAKE2B 132e07bd4dc447bb67b2521c89e06c697dce9554d1f2b737aa460a22be9f7a2999f39ebd1b25f81863ebd764ef127856dceeadcb2a12aecdb01cf01f1cc22bc0 SHA512 9de7af38c778366e63e03991fa147844695dd0b4cd2e62559c5f82a0a2e914abf1bab5b905ad3cf26512d6d48670bfdb40a0683ef7dd1383eb0229f6718a70a4
DIST raft-0.17.1.tar.gz 354331 BLAKE2B d1be3eb4139422dab8126879d2ba0782e8635a60ce9752f4389f79dd2238021d9679d3b5f799c9627921c954a4395cdff139ff41f8145ebc43190f2c4aa3e5a7 SHA512 20e2b4a144a597b77bcb31e8b22355725142b14fb50e20b33509e7b0dd10aa20d08501b66e836c659e9aa492184db71ea9e53a45fe4b908b1464eb94431154db
+DIST raft-0.18.0.tar.gz 365558 BLAKE2B 57fc8c144a45eb101f53c8dd3a1eb896c733b7c5c369300852bea1474b8178b46c943c29e81107758bfa527d8fc1a9c80c4ca1bfc599dfc5ace090a18c693f11 SHA512 c6ab125a4841c5241310ea9785bb6ae3860c0a2ff39487499c2caa0b387729f7f7e54fa0de3aad3a99bdf5ec7d4a12c68a69244c6d8b8dcdf846c1cdfeb11b3b
EBUILD raft-0.17.1.ebuild 1060 BLAKE2B e13eadadcd2f818e2a5c4c995fc38eb2bc0a933594b29b630009e18bcf8f5380d287f60bbbd719e2bb738e12ecccb0990a3f436f54020d82defacc5f2144734f SHA512 09f72db18eab0c72b48a3b8a6863d57eb676adb374696dad9607043bef6123d8747002cad39a571c4ed7feea5691b12b5de16309308f93bafb79ec21b38a98bf
+EBUILD raft-0.18.0.ebuild 994 BLAKE2B f417997712cfe8212f286f8a16a8a4d777941bd4974fa0b110f850833ebac8f57acd13d6182e9fc75abd903d780f698c0aab95e1d913ae5f46b23d372f88bd71 SHA512 127c6c0f93595e57902892084d79e39d214e345dd4dad264e5401af361c17a6d37dd154e26a680f8c9ca610eeffa17b905e19b8b3213bc27ce9f2eaf1bf59149
MISC metadata.xml 897 BLAKE2B 13bfe9b6f1bb195f93437b02134626657f8879afb8a70cc81e328a4a1851cd3fdf5b361d95d8eb913fcd446d3723d1261c3844987b24d300a7b38d4bec538b87 SHA512 cd4f8adf74cf8e6e29f661348549e4c20f44cdb8d10f7181703796f4f4fb8d2e9eccf8b9097d1e4c553efab638e2db7c0619a07b7432edc9d5f28878381aba33
diff --git a/dev-libs/raft/raft-0.18.0.ebuild b/dev-libs/raft/raft-0.18.0.ebuild
new file mode 100644
index 000000000000..5850e6b47490
--- /dev/null
+++ b/dev-libs/raft/raft-0.18.0.ebuild
@@ -0,0 +1,55 @@
+# Copyright 2020-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+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/3"
+KEYWORDS="~amd64 ~arm64 ~x86"
+IUSE="lz4 test zfs"
+RESTRICT="!test? ( test )"
+
+DEPEND="dev-libs/libuv:=
+ lz4? ( app-arch/lz4:= )"
+RDEPEND="${DEPEND}"
+BDEPEND="virtual/pkgconfig"
+
+PATCHES=(
+ "${FILESDIR}"/raft-0.10.0-toggle-zfs.patch
+)
+
+src_prepare() {
+ default
+ eautoreconf
+}
+
+src_configure() {
+ local myeconfargs=(
+ --enable-uv
+
+ --disable-backtrace
+ --disable-benchmark
+ --disable-debug
+ --disable-example
+ --disable-sanitize
+ --disable-static
+
+ $(use_enable test fixture)
+
+ $(use_with lz4)
+ $(use_with zfs)
+ )
+
+ econf "${myeconfargs[@]}"
+}
+
+src_install() {
+ default
+ find "${ED}" -name '*.la' -delete || die
+}