dev-db/turso: add 0.1.4

Signed-off-by: Jonas Frei <freijon@pm.me>
This commit is contained in:
Jonas Frei
2025-08-20 20:16:21 +02:00
parent b9e076cf50
commit 4cfb8a6317
2 changed files with 75 additions and 0 deletions

View File

@@ -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.3-crates.tar.xz 33760176 BLAKE2B 52826d267e889a673795e85c184f051e07dd36b2fa249d05a588e18a7050f7e0399f36b5c58fad71f48dd27301b9a2d4f184dff3bcf8c343e75ad1de4789e99d SHA512 b6f300b17e9999c14884ebe45386d2f69309c77893acfab3b65731fdcc50158407a1df08d510eae1098f282c6cd2c1d57cf277905e19c1e43a70b96618a8f77b
DIST turso-0.1.3.tar.gz 7139788 BLAKE2B 1ce594ee70c4270ee3cc4f000faeb9de1ed4c3830c1f13a6bd31a9102f340d2d1990c8e7adf4a2ab00d48f6d0674a5b7bc7d8019016db2d2f527e4dd32a2e840 SHA512 6833a10aadc040e3a9742c47f36346fbcd45f374a1b54c9e6ec29ea3b0b16d34ffedc113df473863f592d35414d160b8bc9bfd0439f97c5c979c9dc435c55874
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

View File

@@ -0,0 +1,73 @@
# Copyright 2024-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
CRATES=""
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
}