mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-07 06:02:58 -04:00
@@ -3,3 +3,5 @@ DIST turso-0.4.3-crates.tar.xz 35783112 BLAKE2B 4a3e09dad6f4a745cd53f075ba240c8e
|
||||
DIST turso-0.4.3.tar.gz 10390925 BLAKE2B 9492c23b2c0d8a1b1df74c506904ad12f7025ce452494d18d4aa9566758763b7d18997dd9df623d3f6e7ac207ba7e4b7ec8cab9f615f79041436225ba57a3db3 SHA512 6703be79b3aa7cf987f1555d86a20c0a94bc3fe4b4a6ff3d794063286c9fb3dd44e46232b3c03b47b8425b929d65cd69fec8f2437b41b67366ccaa42978f7bd5
|
||||
DIST turso-0.4.4-crates.tar.xz 35793496 BLAKE2B 370e8ba8a4aaeb9192b88f0ef5132b83c0c3ca9a23a18694940832a954189d706abb178df097694b5de4aa3d31e477366c5d0173b0b028ff01df243718160c93 SHA512 d14f6beccdb7ff5177cc76499f5f2c5d4cc7bc59bf79c25296e118a80eb903156cdd4ea40a30bbfe7bf09fb451775fc5e755a2a1a189b825cbf498868645cd25
|
||||
DIST turso-0.4.4.tar.gz 10396585 BLAKE2B 59dd725764ebbdc84095bf3a667fa7346c4d4fadf7a897a4b960fc913545c1ac3fd6002ca8bac29f3cbc0d8f97b17aa39747cdf548ad789434f60889025b442f SHA512 92df963ab4ac71d89b36f565c2adca550d9306095f2f8736f8a368f7ec9fc1162bdac798a8490667a9ad22159dcc71c83f73f453904358891e8091c18bae2a2f
|
||||
DIST turso-0.6.0-crates.tar.xz 45926300 BLAKE2B cd05c5a0f7cd75a8a44052fddcd891c40df6650c4067cd1fe23e3fb9b53148e9db9eee3975197d78199765ac60435142dd14849eb1571686105bd9b9109c5acd SHA512 7b8b4e58734b6f9996a6f5faae2cc337a49166756464f4914bbfdc3ac89337dfc5931adbc307b6dcd197b016558083a356bab405c1fca6ad2102563990da88b5
|
||||
DIST turso-0.6.0.tar.gz 10975048 BLAKE2B bffc08146c5b69da1e62741bf276bee1932c842cb36b90ceabcf2f97c66bbea63aa4922c0ae4f5cc1b3614fbdb518de1a0fe2265b92c07833b8e9668b584d9b5 SHA512 08a5ced4e7123ac5a30cbd88d6c02633d9b149ef7a224868213f9a7d25313bf1ef4c0c198180324e34c317b89f4180cf26c2a6905df1e751e7293612ae2d32eb
|
||||
|
||||
75
dev-db/turso/turso-0.6.0.ebuild
Normal file
75
dev-db/turso/turso-0.6.0.ebuild
Normal file
@@ -0,0 +1,75 @@
|
||||
# Copyright 2024-2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
RUST_MIN_VER="1.88.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/gentoo-crate-dist/${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=(
|
||||
"mimalloc"
|
||||
$(usev 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
|
||||
}
|
||||
Reference in New Issue
Block a user