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