diff options
author | Joonas Niilola <juippis@gentoo.org> | 2023-10-10 16:07:35 +0300 |
---|---|---|
committer | Joonas Niilola <juippis@gentoo.org> | 2023-10-13 20:21:08 +0300 |
commit | 0af6de09573278a50c60430e67c04a60eb63019d (patch) | |
tree | f7d09a195a616d8c32d784ff638304c92475c10c /dev-libs | |
parent | dev-python/notebook: Remove old (diff) | |
download | gentoo-0af6de09573278a50c60430e67c04a60eb63019d.tar.gz gentoo-0af6de09573278a50c60430e67c04a60eb63019d.tar.bz2 gentoo-0af6de09573278a50c60430e67c04a60eb63019d.zip |
dev-libs/cowsql: new package, add 0_pre20230921
- dependency of app-containers/incus.
Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'dev-libs')
-rw-r--r-- | dev-libs/cowsql/Manifest | 1 | ||||
-rw-r--r-- | dev-libs/cowsql/cowsql-0_pre20230921.ebuild | 53 | ||||
-rw-r--r-- | dev-libs/cowsql/files/dqlite-1.12.0-disable-werror.patch | 20 | ||||
-rw-r--r-- | dev-libs/cowsql/metadata.xml | 25 |
4 files changed, 99 insertions, 0 deletions
diff --git a/dev-libs/cowsql/Manifest b/dev-libs/cowsql/Manifest new file mode 100644 index 000000000000..884fb88867fc --- /dev/null +++ b/dev-libs/cowsql/Manifest @@ -0,0 +1 @@ +DIST cowsql-0_pre20230921.tar.gz 364458 BLAKE2B 4d4a6126a0a9059402c6591aeada96005964566e41a6ad0ce3b47c07d63ddf626b1d279e7847eb4677d44fea82a5b425fd8d5569d0b9545d37d4d903db3a6d0b SHA512 7297c6149287fe96fded43689f081b5b59b294e8b73067587a8255bde41671744a1b3ac541028565eaefd61d72195172ab82bd1f0ddcd6e8bad48af9db8db320 diff --git a/dev-libs/cowsql/cowsql-0_pre20230921.ebuild b/dev-libs/cowsql/cowsql-0_pre20230921.ebuild new file mode 100644 index 000000000000..86b0c6f52fff --- /dev/null +++ b/dev-libs/cowsql/cowsql-0_pre20230921.ebuild @@ -0,0 +1,53 @@ +# Copyright 2020-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools + +MY_COMMIT="a1d49d0d3e40b32ba655fffe14b7669c2aa1bcec" + +DESCRIPTION="Embeddable, replicated and fault tolerant SQL engine (fork of dqlite)" +HOMEPAGE="https://cowsql.dev/ https://github.com/cowsql/cowsql" +SRC_URI="https://github.com/cowsql/cowsql/archive/${MY_COMMIT}.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.17.1:=" +DEPEND="${RDEPEND} + test? ( dev-libs/raft[lz4,test] )" +BDEPEND="virtual/pkgconfig" + +PATCHES=( "${FILESDIR}"/dqlite-1.12.0-disable-werror.patch ) + +S="${WORKDIR}/cowsql-${MY_COMMIT}" + +src_prepare() { + default + eautoreconf +} + +src_configure() { + local myeconfargs=( + --disable-backtrace + --disable-debug + --disable-sanitize + --disable-static + + # Will build a bundled libsqlite3.so. + --enable-build-sqlite=no + ) + + econf "${myeconfargs[@]}" +} + +src_install() { + default + find "${ED}" -name '*.la' -delete || die +} diff --git a/dev-libs/cowsql/files/dqlite-1.12.0-disable-werror.patch b/dev-libs/cowsql/files/dqlite-1.12.0-disable-werror.patch new file mode 100644 index 000000000000..9c92324688d6 --- /dev/null +++ b/dev-libs/cowsql/files/dqlite-1.12.0-disable-werror.patch @@ -0,0 +1,20 @@ +diff -Naur a/configure.ac b/configure.ac +--- a/configure.ac 2022-11-18 16:44:34.000000000 +0200 ++++ b/configure.ac 2022-11-19 09:21:24.157589426 +0200 +@@ -3,7 +3,7 @@ + AC_CONFIG_MACRO_DIR([m4]) + AC_CONFIG_AUX_DIR([ac]) + +-AM_INIT_AUTOMAKE([subdir-objects -Wall -Werror -Wno-portability foreign]) ++AM_INIT_AUTOMAKE([subdir-objects -Wall -Wno-portability foreign]) + AM_SILENT_RULES([yes]) + + AC_PROG_CC_STDC +@@ -82,7 +82,6 @@ + -Wdate-time \ + -Wnested-externs \ + -Wconversion \ +- -Werror \ + ]) + # To enable: + # diff --git a/dev-libs/cowsql/metadata.xml b/dev-libs/cowsql/metadata.xml new file mode 100644 index 000000000000..25c078695e9c --- /dev/null +++ b/dev-libs/cowsql/metadata.xml @@ -0,0 +1,25 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>juippis@gentoo.org</email> + <name>Joonas Niilola</name> + </maintainer> + <maintainer type="project"> + <email>virtualization@gentoo.org</email> + <name>Gentoo Virtualization Project</name> + </maintainer> + <longdescription> + cowsql is a C library that implements an embeddable and replicated SQL + database engine with high-availability and automatic failover. + + Cowsql is a fork from dqlite. + The acronym "dqlite" stands for "distributed SQLite", meaning that dqlite + extends SQLite with a network protocol that can connect together various + instances of your application and have them act as a highly-available + cluster, with no dependency on external databases. + </longdescription> + <upstream> + <remote-id type="github">cowsql/cowsql</remote-id> + </upstream> +</pkgmetadata> |