diff options
author | Joonas Niilola <juippis@gentoo.org> | 2023-11-09 08:19:41 +0200 |
---|---|---|
committer | Joonas Niilola <juippis@gentoo.org> | 2023-11-09 08:32:24 +0200 |
commit | 23d23f93029e94589d238bb585736a775e49fd99 (patch) | |
tree | 2d178b700bbb4d078260e02313c855691f74758a /dev-libs/raft | |
parent | net-irc/scrollz: drop 2.3-r1 (diff) | |
download | gentoo-23d23f93029e94589d238bb585736a775e49fd99.tar.gz gentoo-23d23f93029e94589d238bb585736a775e49fd99.tar.bz2 gentoo-23d23f93029e94589d238bb585736a775e49fd99.zip |
dev-libs/raft: add 0.18.2
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'dev-libs/raft')
-rw-r--r-- | dev-libs/raft/Manifest | 1 | ||||
-rw-r--r-- | dev-libs/raft/raft-0.18.2.ebuild | 57 |
2 files changed, 58 insertions, 0 deletions
diff --git a/dev-libs/raft/Manifest b/dev-libs/raft/Manifest index dbb2a7e133a3..79a21bfb44bf 100644 --- a/dev-libs/raft/Manifest +++ b/dev-libs/raft/Manifest @@ -1,2 +1,3 @@ DIST raft-0.18.0.tar.gz 365558 BLAKE2B 57fc8c144a45eb101f53c8dd3a1eb896c733b7c5c369300852bea1474b8178b46c943c29e81107758bfa527d8fc1a9c80c4ca1bfc599dfc5ace090a18c693f11 SHA512 c6ab125a4841c5241310ea9785bb6ae3860c0a2ff39487499c2caa0b387729f7f7e54fa0de3aad3a99bdf5ec7d4a12c68a69244c6d8b8dcdf846c1cdfeb11b3b DIST raft-0.18.1.tar.gz 334308 BLAKE2B 6518914435129573fe03368bb653b42bb6424cfe6d96ea47164bb77c62ab229dcc977c59ad8004d269d7a44fdfec3a852b4dc0309129ccff7fcfc1fe425806f9 SHA512 73f8a7eb4d38e02ec888bc1062a8b8c419b17f87a09d9bdffac5c015077a42c28d92c285571a5c49d2a1d8ddd6b972469a7baa0f19a839faf6c17a02968f805a +DIST raft-0.18.2.tar.gz 335089 BLAKE2B 5e6221f3977a28b7c2bbc8b80e047b455b586b0c8dd3cb9dc31f43c48d745d017f8a7220f3b3072a7aabacb86751ea4ad02f7c00d9d9c59a419354416cca65b3 SHA512 bac167aaf02f121f6d5de9103b366591bdb0a40ee08bc20b9f4fadae4606631b1a8dec514009596601a79a91c63373c524ba59710a167a1259f1d3802fb1e341 diff --git a/dev-libs/raft/raft-0.18.2.ebuild b/dev-libs/raft/raft-0.18.2.ebuild new file mode 100644 index 000000000000..d576a08a3ca8 --- /dev/null +++ b/dev-libs/raft/raft-0.18.2.ebuild @@ -0,0 +1,57 @@ +# 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/cowsql/raft" +SRC_URI="https://github.com/cowsql/raft/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="LGPL-3-with-linking-exception" + +# Upstream change from canonical to cowsql resetted SONAME, 3 -> 0. bgo#915960 +SLOT="0/0" +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 +} |