mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-04-07 03:10:15 -04:00
@@ -1,5 +1,3 @@
|
||||
DIST syntect-64644ffe064457265cbcee12a0c1baf9485ba6ee.gh.tar.gz 957024 BLAKE2B 46a84baedfc9923e4be3f70caa5f32d197659afe5a1c018fe03a473e175c56d60a321ca0378b52173076ff89df365f845d8d23997eaef6bf8082634497fbd031 SHA512 f6a4bd70e294046953923052734f8021ea64a7ef83965dcc13ba60f96fea6d4ad21c68bde71eb245cfd00d080f3decf9911eed85ad360b8d5185e0d018811f97
|
||||
DIST turso-0.4.2-crates.tar.xz 35783112 BLAKE2B 4a3e09dad6f4a745cd53f075ba240c8edecedde81c0ab31908baae548bbc59c09a93b250cabee1e9f1e00b05c54dd98653d5a949568b89689fd534c1ae488c44 SHA512 1aa25d89e0626639a53cfbd0f8671548eb2ad2ffd0271b7510fc932adbbf5f124ce9515321b700738eaa5fbb84fcf9392bfe396175efa229224c13289a7653d0
|
||||
DIST turso-0.4.2.tar.gz 10388135 BLAKE2B 06f14991e058f4f0f64c4f27fe275ee6929ef71bc1689c3f9d39935b29867413878cec5acd8602e284fc1cda994d4f12a56f39d8abfca4c5e9f4bc349266be8b SHA512 18c9a6b4cd30cb9e91ee123f9eafe365f0bf8c9ff344ac1d708fa073fbffc2c5d42fb9dbd3da060b19af22422e82e325a2a9d9058dab9e19488828a546ba132b
|
||||
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
|
||||
|
||||
@@ -1,74 +0,0 @@
|
||||
# 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=(
|
||||
$(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