mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-21 04:53:07 -04:00
dev-db/turso: pkgmove from dev-db/limbo
Signed-off-by: Jonas Frei <freijon@pm.me>
This commit is contained in:
2
dev-db/turso/Manifest
Normal file
2
dev-db/turso/Manifest
Normal file
@@ -0,0 +1,2 @@
|
||||
DIST limbo-0.0.22-crates.tar.xz 31930740 BLAKE2B df38f33717797a8b999f8c2a22efd88e67e62991cd1a0245c7e6c41f2a3a089dd229fd12e633cfb8b2c96604e4799019e8e9c0401f05d4c62d753ba4e10ce189 SHA512 f5ef72b87e663e9c09a510bdfd3507302df6c9206237af1a04469b772e8b6f6aa68bc04364722e168246423cb8da46498a032fb4b33dbbcc844ea7efea7488ad
|
||||
DIST limbo-0.0.22.tar.gz 5994615 BLAKE2B 9c26fca141d8797b69b81060a08b91f7017d4966a25856b5d238c874b3a275e52c7ec9719f48a0c45abda2dee8da07972589ddbf69d32889c6600e97f780142f SHA512 127038105f386fd2eb75936de17220ef663ebf341dc900556edb7f43e41c7ecfbf6641ed49e8677458182745325372169fbdeb10f90788d7f03e05349c2090a6
|
||||
15
dev-db/turso/metadata.xml
Normal file
15
dev-db/turso/metadata.xml
Normal file
@@ -0,0 +1,15 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<name>Jonas Frei</name>
|
||||
<email>freijon@pm.me</email>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="github">tursodatabase/turso</remote-id>
|
||||
<bugs-to>https://github.com/tursodatabase/turso/issues</bugs-to>
|
||||
</upstream>
|
||||
<use>
|
||||
<flag name="uring">Use uring I/O backend</flag>
|
||||
</use>
|
||||
</pkgmetadata>
|
||||
73
dev-db/turso/turso-0.0.22.ebuild
Normal file
73
dev-db/turso/turso-0.0.22.ebuild
Normal file
@@ -0,0 +1,73 @@
|
||||
# Copyright 2024-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
CRATES=""
|
||||
|
||||
inherit cargo linux-info
|
||||
|
||||
OLD_PN="limbo"
|
||||
OLD_P="${OLD_PN}-${PV}"
|
||||
|
||||
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 -> ${OLD_P}.tar.gz
|
||||
"
|
||||
DEPS_URI="https://github.com/freijon/${PN}/releases/download/v${PV}/${OLD_P}-crates.tar.xz"
|
||||
SRC_URI+=" ${DEPS_URI}"
|
||||
|
||||
S="${WORKDIR}/${OLD_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 "${OLD_PN}_cli" --bin "${OLD_PN}"
|
||||
}
|
||||
|
||||
src_install() {
|
||||
cargo_src_install --path cli
|
||||
|
||||
local DOCS=(
|
||||
CHANGELOG.md
|
||||
CONTRIBUTING.md
|
||||
README.md
|
||||
)
|
||||
|
||||
einstalldocs
|
||||
}
|
||||
Reference in New Issue
Block a user