dev-db/limbo: add 0.0.20

Signed-off-by: Jonas Frei <freijon@pm.me>
This commit is contained in:
Jonas Frei
2025-05-18 07:14:58 +02:00
parent af185be91f
commit 7ee3c08d51
2 changed files with 72 additions and 0 deletions

View File

@@ -1,2 +1,4 @@
DIST limbo-0.0.19-crates.tar.xz 31577128 BLAKE2B e7b8c3e83a764523ca88a9bc0cb8b4b045c38338ee76937a025df486f2e7a31a0f0efeed475a2d5e00fdd78593a155cb82844fbde1c88524ef8d37b53efa8e94 SHA512 7790af27369b716db1e7028c858bb324d70ed9638447579858e6d0157c1f2d909586c0b07c868160235b92c4c26d9e53be941bb989e211c228857a895ad3d65b
DIST limbo-0.0.19.tar.gz 4698440 BLAKE2B e620719d7d3986f8a81d6393556415eb828a9b516bcfd0cf468fc4bee22083189a4ae0c175a06a6c4164e8fb78ec5f511cbe858781c9ca5f9501b0e4dc832a43 SHA512 3d32971d03df0396128214b213f5c6694de753935cbe88463e057fcc9b597fd12a32ef10628a8ce9c579be94418f1ceabd490ed99d2c19aa0c1d1ca39b7a0697
DIST limbo-0.0.20-crates.tar.xz 31591640 BLAKE2B 6f905e045f3cc807d71bbecf19b3134fd2be103b2e007ace6d577f20fcfadec301c54512959a55e927cafee278213a8e4a5cfd32de6fdad3d6897a1bd83f361d SHA512 a47fddcb04c824549545034d1510fc8d1432aba15db50ba1aa656fba9b78e699abd45385c27926b4d3778e5eb803201857d95e10588101c9000995738281765f
DIST limbo-0.0.20.tar.gz 4771190 BLAKE2B 1eabc48a948b7bf3182e0484f1a65cbefb1b908284a8434f9d61acdfc864f9fe661a09eb9ab55955cf378d9ed8a7a7bd819bf48a4eb7d6f424d677ce75cf9a8f SHA512 d679775c8cbcb22747546affc085fa0f530ca184a7a71833c573a18f560ae6e96b7afeda8d7c75fed0aa204d62a78acf0b4e36dbbea4f4bb5507f5a02fde7fa5

View File

@@ -0,0 +1,70 @@
# Copyright 2024-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
CRATES=""
inherit cargo linux-info
DESCRIPTION="The Limbo interactive SQL shell"
HOMEPAGE="https://github.com/tursodatabase/limbo"
SRC_URI="
https://github.com/tursodatabase/${PN}/releases/download/v${PV}/source.tar.gz -> ${P}.tar.gz
"
DEPS_URI="https://github.com/freijon/${PN}/releases/download/v${PV}/${P}-crates.tar.xz"
SRC_URI+=" ${DEPS_URI}"
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 "${PN}"
}
src_install() {
cargo_src_install --path cli
local DOCS=(
CHANGELOG.md
CONTRIBUTING.md
README.md
)
einstalldocs
}