mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-20 20:43:09 -04:00
@@ -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.5-crates.tar.xz 33885240 BLAKE2B e60e619057b7785a4f0e9261b83141a61f7c4a0048644129d2e8dcf7e69c032bd3f18224169af56c8d8dc35e5f3da089a8f0d0cacb2bc50a03642c3bc02647e7 SHA512 c864a2644c751acdacb328a77a09da26f8efd10ea8f6b7c4e276dd2b95fbe493ca0fac093e6a56650565a4e99b8e519425a2bd52cabd72b74542076739abdd9c
|
||||
DIST turso-0.1.5.tar.gz 8690017 BLAKE2B f9c1f55313b5381f013f1c15d765e89ae3068efec98f6bd6fa5facf191a78948da617c4ed50af89cd1b5dfab646574b858239bcd0cc1ed456930960a8ae5a65a SHA512 a1165a1d9c15dae6cc42c22e31f07a626eae44b7527b54a3fc7cb9a890230746d6d55b15c6f145307a5aaffd11e58c8f42a9a51b97c8a7dceca654abd4db2f49
|
||||
DIST turso-0.2.2-crates.tar.xz 34176716 BLAKE2B 0646a63836dbaac7b220d3831fe297b88a62a360ee3c16adc9c1943e06751033a09e7b96cda1beef25a8429a9107a3d588030f9eadb594f802521479d6e00e32 SHA512 808863f5dd4306fce5afcb981fea52a784fcc577ac4ba18bc4f0a6da2b8d3e09e45de2626044fa105f06aab94587b90b32600b5f9bf5c6b8e833690914b13622
|
||||
DIST turso-0.2.2.tar.gz 7764039 BLAKE2B 7286f6d7edca03418dc28e6608b819f9bc6e5264c24821947035ffe593871632a7f996a1b4b308706005af4b8c6c8fd4b7438771ab129869e7f217ae6fb08fb4 SHA512 1d1e2e959b3e19dd7e159397325aaa026f52f54009710ae860c409b8f58f226c68de6fa81d2b080b2989054e6c15ee7d0f281331b72f41b5fdc77e3a5d2efac5
|
||||
|
||||
74
dev-db/turso/turso-0.2.2.ebuild
Normal file
74
dev-db/turso/turso-0.2.2.ebuild
Normal file
@@ -0,0 +1,74 @@
|
||||
# Copyright 2024-2025 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/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
|
||||
}
|
||||
Reference in New Issue
Block a user