File tree Expand file tree Collapse file tree 2 files changed +77
-0
lines changed
Expand file tree Collapse file tree 2 files changed +77
-0
lines changed Original file line number Diff line number Diff line change 11DIST syntect-64644ffe064457265cbcee12a0c1baf9485ba6ee.gh.tar.gz 957024 BLAKE2B 46a84baedfc9923e4be3f70caa5f32d197659afe5a1c018fe03a473e175c56d60a321ca0378b52173076ff89df365f845d8d23997eaef6bf8082634497fbd031 SHA512 f6a4bd70e294046953923052734f8021ea64a7ef83965dcc13ba60f96fea6d4ad21c68bde71eb245cfd00d080f3decf9911eed85ad360b8d5185e0d018811f97
22DIST turso-0.4.3-crates.tar.xz 35783112 BLAKE2B 4a3e09dad6f4a745cd53f075ba240c8edecedde81c0ab31908baae548bbc59c09a93b250cabee1e9f1e00b05c54dd98653d5a949568b89689fd534c1ae488c44 SHA512 1aa25d89e0626639a53cfbd0f8671548eb2ad2ffd0271b7510fc932adbbf5f124ce9515321b700738eaa5fbb84fcf9392bfe396175efa229224c13289a7653d0
33DIST turso-0.4.3.tar.gz 10390925 BLAKE2B 9492c23b2c0d8a1b1df74c506904ad12f7025ce452494d18d4aa9566758763b7d18997dd9df623d3f6e7ac207ba7e4b7ec8cab9f615f79041436225ba57a3db3 SHA512 6703be79b3aa7cf987f1555d86a20c0a94bc3fe4b4a6ff3d794063286c9fb3dd44e46232b3c03b47b8425b929d65cd69fec8f2437b41b67366ccaa42978f7bd5
4+ DIST turso-0.4.4-crates.tar.xz 35793496 BLAKE2B 370e8ba8a4aaeb9192b88f0ef5132b83c0c3ca9a23a18694940832a954189d706abb178df097694b5de4aa3d31e477366c5d0173b0b028ff01df243718160c93 SHA512 d14f6beccdb7ff5177cc76499f5f2c5d4cc7bc59bf79c25296e118a80eb903156cdd4ea40a30bbfe7bf09fb451775fc5e755a2a1a189b825cbf498868645cd25
5+ DIST turso-0.4.4.tar.gz 10396585 BLAKE2B 59dd725764ebbdc84095bf3a667fa7346c4d4fadf7a897a4b960fc913545c1ac3fd6002ca8bac29f3cbc0d8f97b17aa39747cdf548ad789434f60889025b442f SHA512 92df963ab4ac71d89b36f565c2adca550d9306095f2f8736f8a368f7ec9fc1162bdac798a8490667a9ad22159dcc71c83f73f453904358891e8091c18bae2a2f
Original file line number Diff line number Diff line change 1+ # Copyright 2024-2026 Gentoo Authors
2+ # Distributed under the terms of the GNU General Public License v2
3+
4+ EAPI=8
5+
6+ RUST_MIN_VER=" 1.85.0"
7+
8+ declare -A GIT_CRATES=(
9+ [syntect]=" https://github.com/trishume/syntect;64644ffe064457265cbcee12a0c1baf9485ba6ee;syntect-%commit%"
10+ )
11+
12+ inherit cargo linux-info
13+
14+ DESCRIPTION=" Turso Database is an in-process OLTP database engine library with a CLI"
15+ HOMEPAGE=" https://github.com/tursodatabase/turso"
16+ SRC_URI="
17+ https://github.com/tursodatabase/${PN} /releases/download/v${PV} /source.tar.gz -> ${P} .tar.gz
18+ https://github.com/gentoo-crate-dist/${PN} /releases/download/v${PV} /${P} -crates.tar.xz
19+ ${CARGO_CRATE_URIS}
20+ "
21+
22+ S=" ${WORKDIR} /${PN} _cli-${PV} "
23+
24+ LICENSE=" MIT"
25+ # Dependent crate licenses
26+ LICENSE+="
27+ Apache-2.0 Apache-2.0-with-LLVM-exceptions Boost-1.0 CC0-1.0 CDDL
28+ GPL-2.0-with-bison-exception MIT MPL-2.0 Unicode-DFS-2016
29+ "
30+ SLOT=" 0"
31+ KEYWORDS=" ~amd64"
32+ IUSE=" +uring"
33+
34+ DEPEND="
35+ >=dev-libs/libgit2-0.99:=
36+ dev-libs/oniguruma:=
37+ "
38+ RDEPEND=" ${DEPEND} "
39+
40+ pkg_setup () {
41+ CONFIG_CHECK=" ~IO_URING"
42+ WARNING_IO_URING=" The USE flag 'uring' needs the option IO_URING to be enabled."
43+
44+ use uring && linux-info_pkg_setup
45+ rust_pkg_setup
46+ }
47+
48+ src_configure () {
49+ # high magic to allow system-libs
50+ export LIBSQLITE3_SYS_USE_PKG_CONFIG=1
51+ export RUSTONIG_SYSTEM_LIBONIG=1
52+ export LIBGIT2_NO_VENDOR=1
53+
54+ local myfeatures=(
55+ " mimalloc"
56+ $( usev uring io_uring)
57+ )
58+ cargo_src_configure --no-default-features
59+ }
60+
61+ src_compile () {
62+ cargo_src_compile --package " ${PN} _cli" --bin " tursodb"
63+ }
64+
65+ src_install () {
66+ cargo_src_install --path cli
67+
68+ local DOCS=(
69+ CHANGELOG.md
70+ CONTRIBUTING.md
71+ README.md
72+ )
73+
74+ einstalldocs
75+ }
You can’t perform that action at this time.
0 commit comments