mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-04-07 03:10:15 -04:00
@@ -1,3 +1,5 @@
|
||||
DIST syntect-64644ffe064457265cbcee12a0c1baf9485ba6ee.gh.tar.gz 957024 BLAKE2B 46a84baedfc9923e4be3f70caa5f32d197659afe5a1c018fe03a473e175c56d60a321ca0378b52173076ff89df365f845d8d23997eaef6bf8082634497fbd031 SHA512 f6a4bd70e294046953923052734f8021ea64a7ef83965dcc13ba60f96fea6d4ad21c68bde71eb245cfd00d080f3decf9911eed85ad360b8d5185e0d018811f97
|
||||
DIST turso-0.4.3-crates.tar.xz 35783112 BLAKE2B 4a3e09dad6f4a745cd53f075ba240c8edecedde81c0ab31908baae548bbc59c09a93b250cabee1e9f1e00b05c54dd98653d5a949568b89689fd534c1ae488c44 SHA512 1aa25d89e0626639a53cfbd0f8671548eb2ad2ffd0271b7510fc932adbbf5f124ce9515321b700738eaa5fbb84fcf9392bfe396175efa229224c13289a7653d0
|
||||
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
|
||||
|
||||
75
dev-db/turso/turso-0.4.4.ebuild
Normal file
75
dev-db/turso/turso-0.4.4.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.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/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