dev-db/turso: add 0.1.1

Signed-off-by: Jonas Frei <freijon@pm.me>
This commit is contained in:
Jonas Frei
2025-07-02 20:47:42 +02:00
parent f07ce911a6
commit 274c41620c
2 changed files with 76 additions and 0 deletions

View File

@@ -1,2 +1,5 @@
DIST limbo-0.0.22-crates.tar.xz 31930740 BLAKE2B df38f33717797a8b999f8c2a22efd88e67e62991cd1a0245c7e6c41f2a3a089dd229fd12e633cfb8b2c96604e4799019e8e9c0401f05d4c62d753ba4e10ce189 SHA512 f5ef72b87e663e9c09a510bdfd3507302df6c9206237af1a04469b772e8b6f6aa68bc04364722e168246423cb8da46498a032fb4b33dbbcc844ea7efea7488ad
DIST limbo-0.0.22.tar.gz 5994615 BLAKE2B 9c26fca141d8797b69b81060a08b91f7017d4966a25856b5d238c874b3a275e52c7ec9719f48a0c45abda2dee8da07972589ddbf69d32889c6600e97f780142f SHA512 127038105f386fd2eb75936de17220ef663ebf341dc900556edb7f43e41c7ecfbf6641ed49e8677458182745325372169fbdeb10f90788d7f03e05349c2090a6
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

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
}