From fd84948282bea4a63d105c5c01aa1329db66cf36 Mon Sep 17 00:00:00 2001 From: Joonas Niilola Date: Wed, 13 Jul 2022 14:36:35 +0300 Subject: dev-libs/dqlite: add 1.11.0 Signed-off-by: Joonas Niilola --- dev-libs/dqlite/Manifest | 1 + dev-libs/dqlite/dqlite-1.11.0.ebuild | 44 ++++++++++++++++++++++ .../dqlite-1.11.0-fix-version-information.patch | 10 +++++ 3 files changed, 55 insertions(+) create mode 100644 dev-libs/dqlite/dqlite-1.11.0.ebuild create mode 100644 dev-libs/dqlite/files/dqlite-1.11.0-fix-version-information.patch (limited to 'dev-libs/dqlite') diff --git a/dev-libs/dqlite/Manifest b/dev-libs/dqlite/Manifest index 7f9c6c025d31..654f5d084722 100644 --- a/dev-libs/dqlite/Manifest +++ b/dev-libs/dqlite/Manifest @@ -1 +1,2 @@ DIST dqlite-1.10.0.tar.gz 170908 BLAKE2B b65cd39a4eb175a016934a174f27043ff1e9fc5404f5324030ddadf15567390edb6388e42b83ab76a0d1d3262343f8a4407d7756b85af30cf281a4b5076f87cd SHA512 f7364d968d0d2aef0bbd59f55bb7f775b41d509b0d1af106357bdb470703e143081649742870491e5c75760d3f6159568395b4a671c446a26df744fd4f631d33 +DIST dqlite-1.11.0.tar.gz 172030 BLAKE2B 2626f73f351abeedfed686838c9f74edd94b6fecb5fa61e5b90c86b37582975d86e42ebbb61934121912e1356f30a545e3fcc2236b5c5d5d4eee82b6412e0aaa SHA512 0dbd07bc3ccbb889d6b3a5fbf9e7658caeffe652666d819c1291420d1a18aa0c2e382dcc8bb3910f7d2d184b7e3a09d6ac557bf9400120712c2e6e2e41006dc8 diff --git a/dev-libs/dqlite/dqlite-1.11.0.ebuild b/dev-libs/dqlite/dqlite-1.11.0.ebuild new file mode 100644 index 000000000000..972892a7f794 --- /dev/null +++ b/dev-libs/dqlite/dqlite-1.11.0.ebuild @@ -0,0 +1,44 @@ +# Copyright 2020-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools + +DESCRIPTION="Embeddable, replicated and fault tolerant SQL engine" +HOMEPAGE="https://dqlite.io/ https://github.com/canonical/dqlite" +SRC_URI="https://github.com/canonical/dqlite/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="LGPL-3-with-linking-exception" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~x86" +IUSE="test" +RESTRICT="!test? ( test )" + +RDEPEND="dev-db/sqlite:3 + dev-libs/libuv:= + >=dev-libs/raft-0.13.0" +DEPEND="${RDEPEND} + test? ( >=dev-libs/raft-0.13.0[lz4,test] )" + +PATCHES=( "${FILESDIR}"/dqlite-1.11.0-fix-version-information.patch ) + +src_prepare() { + default + eautoreconf +} + +src_configure() { + local myeconfargs=( + --disable-debug + --disable-sanitize + --disable-static + ) + + econf "${myeconfargs[@]}" +} + +src_install() { + default + find "${ED}" -name '*.la' -delete || die +} diff --git a/dev-libs/dqlite/files/dqlite-1.11.0-fix-version-information.patch b/dev-libs/dqlite/files/dqlite-1.11.0-fix-version-information.patch new file mode 100644 index 000000000000..0d1f0023b3c2 --- /dev/null +++ b/dev-libs/dqlite/files/dqlite-1.11.0-fix-version-information.patch @@ -0,0 +1,10 @@ +diff -Naur a/configure.ac b/configure.ac +--- a/configure.ac 2022-04-26 23:46:37.000000000 +0300 ++++ b/configure.ac 2022-07-13 14:25:18.039895152 +0300 +@@ -1,5 +1,5 @@ + AC_PREREQ(2.60) +-AC_INIT([libdqlite], [1.10.0], [https://github.com/canonical/dqlite]) ++AC_INIT([libdqlite], [1.11.0], [https://github.com/canonical/dqlite]) + AC_CONFIG_MACRO_DIR([m4]) + AC_CONFIG_AUX_DIR([ac]) + -- cgit v1.2.3-65-gdbad