commit:     f6bef19156b81576d13e85430d1d5adacf9098b7
Author:     Jonas Frei <freijon <AT> pm <DOT> me>
AuthorDate: Mon Sep 15 08:00:51 2025 +0000
Commit:     David Roman <davidroman96 <AT> gmail <DOT> com>
CommitDate: Mon Sep 15 08:00:51 2025 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=f6bef191

dev-db/turso: add 0.1.5

Signed-off-by: Jonas Frei <freijon <AT> pm.me>

 dev-db/turso/Manifest           |  2 ++
 dev-db/turso/turso-0.1.5.ebuild | 74 +++++++++++++++++++++++++++++++++++++++++
 2 files changed, 76 insertions(+)

diff --git a/dev-db/turso/Manifest b/dev-db/turso/Manifest
index b9087e9b99..f3e0eaabd1 100644
--- a/dev-db/turso/Manifest
+++ b/dev-db/turso/Manifest
@@ -3,3 +3,5 @@ DIST limbo-0.0.22.tar.gz 5994615 BLAKE2B 
9c26fca141d8797b69b81060a08b91f7017d496
 DIST syntect-64644ffe064457265cbcee12a0c1baf9485ba6ee.gh.tar.gz 957024 BLAKE2B 
46a84baedfc9923e4be3f70caa5f32d197659afe5a1c018fe03a473e175c56d60a321ca0378b52173076ff89df365f845d8d23997eaef6bf8082634497fbd031
 SHA512 
f6a4bd70e294046953923052734f8021ea64a7ef83965dcc13ba60f96fea6d4ad21c68bde71eb245cfd00d080f3decf9911eed85ad360b8d5185e0d018811f97
 DIST turso-0.1.4-crates.tar.xz 32438116 BLAKE2B 
3b6ea32f3f20b1d3d13bd677d9b4412f8c6ce78a312a248bcce051622e7634d65cefac1e125f6de3e99a300ea9848e5e8f1f67022847d94cb8a852443c18882d
 SHA512 
fc6739818e35344a4c904764ba3d5e9ef8a0a6bee7df0e7b3d692298a574d23ecb1039141e20b0153b6ec87b064e3e1f853665f8dc65fde8f274913d08c80cfe
 DIST turso-0.1.4.tar.gz 8556203 BLAKE2B 
a3a411304812d498caaab6e5b5f9b1830d25ebcfd98e8427b8b245f4f9c6e935499b96ce235cb951085175eb754ea5c1338e9eb8e5ad251b05ae4c6112f7608a
 SHA512 
456cdda3d8433ae6e9b91a88c9e0d36725f11bd2e11261efa931bab2ee8792ef33966714153b6764f0637cbee591aff2e5fd6953983c37abf088293a0f8d95c9
+DIST turso-0.1.5-crates.tar.xz 33885240 BLAKE2B 
e60e619057b7785a4f0e9261b83141a61f7c4a0048644129d2e8dcf7e69c032bd3f18224169af56c8d8dc35e5f3da089a8f0d0cacb2bc50a03642c3bc02647e7
 SHA512 
c864a2644c751acdacb328a77a09da26f8efd10ea8f6b7c4e276dd2b95fbe493ca0fac093e6a56650565a4e99b8e519425a2bd52cabd72b74542076739abdd9c
+DIST turso-0.1.5.tar.gz 8690017 BLAKE2B 
f9c1f55313b5381f013f1c15d765e89ae3068efec98f6bd6fa5facf191a78948da617c4ed50af89cd1b5dfab646574b858239bcd0cc1ed456930960a8ae5a65a
 SHA512 
a1165a1d9c15dae6cc42c22e31f07a626eae44b7527b54a3fc7cb9a890230746d6d55b15c6f145307a5aaffd11e58c8f42a9a51b97c8a7dceca654abd4db2f49

diff --git a/dev-db/turso/turso-0.1.5.ebuild b/dev-db/turso/turso-0.1.5.ebuild
new file mode 100644
index 0000000000..fb726b77ff
--- /dev/null
+++ b/dev-db/turso/turso-0.1.5.ebuild
@@ -0,0 +1,74 @@
+# Copyright 2024-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+RUST_MIN_VER="1.85.0"
+
+declare -A GIT_CRATES=(
+       
[syntect]="https://github.com/trishume/syntect;64644ffe064457265cbcee12a0c1baf9485ba6ee;syntect-%commit%";
+)
+
+inherit cargo linux-info
+
+DESCRIPTION="Turso Database is an in-process OLTP database engine library with 
a CLI"
+HOMEPAGE="https://github.com/tursodatabase/turso";
+SRC_URI="
+       
https://github.com/tursodatabase/${PN}/releases/download/v${PV}/source.tar.gz 
-> ${P}.tar.gz
+       
https://github.com/freijon/${PN}/releases/download/v${PV}/${P}-crates.tar.xz
+       ${CARGO_CRATE_URIS}
+"
+
+S="${WORKDIR}/${PN}_cli-${PV}"
+
+LICENSE="MIT"
+# Dependent crate licenses
+LICENSE+="
+       Apache-2.0 Apache-2.0-with-LLVM-exceptions Boost-1.0 CC0-1.0 CDDL
+       GPL-2.0-with-bison-exception MIT MPL-2.0 Unicode-DFS-2016
+"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="+uring"
+
+DEPEND="
+       >=dev-libs/libgit2-0.99:=
+       dev-libs/oniguruma:=
+"
+RDEPEND="${DEPEND}"
+
+pkg_setup() {
+       CONFIG_CHECK="~IO_URING"
+       WARNING_IO_URING="The USE flag 'uring' needs the option IO_URING to be 
enabled."
+
+       use uring && linux-info_pkg_setup
+       rust_pkg_setup
+}
+
+src_configure() {
+       # high magic to allow system-libs
+       export LIBSQLITE3_SYS_USE_PKG_CONFIG=1
+       export RUSTONIG_SYSTEM_LIBONIG=1
+       export LIBGIT2_NO_VENDOR=1
+
+       local myfeatures=(
+               $(use uring && usex "uring" "io_uring")
+       )
+       cargo_src_configure --no-default-features
+}
+
+src_compile() {
+       cargo_src_compile --package "${PN}_cli" --bin "tursodb"
+}
+
+src_install() {
+       cargo_src_install --path cli
+
+       local DOCS=(
+               CHANGELOG.md
+               CONTRIBUTING.md
+               README.md
+       )
+
+       einstalldocs
+}

Reply via email to