dev-db/turso: add 0.1.2

Signed-off-by: Jonas Frei <freijon@pm.me>
This commit is contained in:
Jonas Frei
2025-07-22 07:09:55 +02:00
parent 365b91e706
commit 5f05cce9bd
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.1-crates.tar.xz 31941108 BLAKE2B b0ad7045be3b400b45ce13f80d5bf53cb04f4fd696388f4c3aab42224166cd8cc4c3fe808ab54f4e0f439e41ab808d78ed28433ffb4d8eaf6d64dfecaecd9922 SHA512 d8e93f23ab09c1112e14601a9ebed84617ab1076975190d0b6b8eccdab0dd3f84fe79d5de5a0527e84a3b8001814406f2d7e5eb5a91bb9982a6eab03eefa6c93
DIST turso-0.1.1.tar.gz 6216687 BLAKE2B 1f18e54e3c0baf732b6576fc2a8bb37964929541825e54dff6f0c464dfd6fee0c94c1dbff01db1577e8768ad4efe19ab8c040de249a37f6b2ccd4bbff500e0c8 SHA512 b0bfe454e47b86bbafef2d69f49da0ab13bd54a246d3287c6da1944c4688137ac33f376a3844ffbe057dbd3f5ece2aefbfe9d5a1da9c4c8a6f62d0ee605b9dc3
DIST turso-0.1.2-crates.tar.xz 32193616 BLAKE2B 85d451546134c1c955ca444b6badd842ddfec54b84e37eb2fa8c508500e71b8f11afdc930a617ce469918f04e2a5a0e720d8e79fb59ae2710f993d7d7d6efd52 SHA512 c33ab806f0f2414030a060f9278917e92690b8d9ca147183648d8aaf18775f11ffd146f7bd79e53a55b2bdfb62129a3ee0cc3c3fabc18dc27fc2b072fc0ecc0a
DIST turso-0.1.2.tar.gz 6950654 BLAKE2B fb37f7785fb2ea13734d4c5a87c7a8e43fc9be62360b1f0248a127fa730eb406321c4f5a42066ed8dcbfbfb9927e14bd8e5328f4205b6164440ae848c7212ff8 SHA512 5648bcdff44d8ca170ef23c8fa89d02c880ceb257800e603dd1f41de36cd7c2cf8031d59e6d806c5903294bb129879958488a299a799a6a3a79dd8c3b148c4eb

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
}