mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-10-12 17:51:11 -04:00
2 files changed
+73
No files matched your search
@@ -1,2 +1,4 @@
|
||||
DIST xan-0.60.0-crates.tar.xz 25025760 BLAKE2B 50fcf50a273f5f38bc6408607c6be7244302e111f2dba5418d57b59e7b28128215c70ba8c7f237aa75f7ad476c07a533d56a57d99e943a703291770a71d2ac99 SHA512 4ea26a33ae5dd122bf09b4293a03d7eebc651b2ac5cda39c10608ba3d91959a110436a2914efb99ec073f752fb03f0dd7ef59dfb08574e1342096dd9567f9782
|
||||
DIST xan-0.60.0.tar.gz 42891796 BLAKE2B 38e16f805c0f7992033d181112541c42952bf3716559a4531b44ec34459c44b7fe8d293265f348b25556a085b7a53dedda85c22e5a7bb16d78b54133494bd018 SHA512 a07954ee451e0bf6bac227670536b80a793a524b14e07e7cb52ce78a166e7f11df7be227694fe51bf386033c541c169e82ae34061510817991e090723e354321
|
||||
DIST xan-0.61.0-crates.tar.xz 25059124 BLAKE2B 8b8b371cef2c170785fd36fe5f3e77f16a397a473bd24fdaa40adc5d0b21e4506d67a2ee0c664e933358e9965765b6b240819fb9acfffd0f90bc1519b430cb03 SHA512 4986439d4de5d6ae7410ae8e09dc0f2ca830e3f7bf32dba009d5739372734a218bdc27d8220e02b657e152a70510d849ee2919ce3c835d97b29977be779717c3
|
||||
DIST xan-0.61.0.tar.gz 42892548 BLAKE2B 84247986dacb0555f076fc3ce8843cd65a00c3c0bfad7ebf4d78b2ed57310343205caca5b5729063c978ccc4a2cece343ab99f7c747d27d009e1935c661a6257 SHA512 fdd55bf561ba6d8eac5c18ec494a8ded278b9d8321f498a9ebf37dcc2df8353870851b63d796aafaf17862855e0a1b4486bf02a3f21027685b074da55aedd319
|
||||
@@ -0,0 +1,71 @@
|
||||
# Copyright 2025-2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
RUST_MIN_VER="1.87.0"
|
||||
|
||||
# Crate list bundled into a single tarball published at
|
||||
# https://github.com/vowstar/vowstar-overlay-dist
|
||||
CRATES=""
|
||||
|
||||
inherit cargo
|
||||
|
||||
DESCRIPTION="The CSV magician"
|
||||
HOMEPAGE="https://github.com/medialab/xan"
|
||||
|
||||
if [[ "${PV}" == *9999* ]]; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/medialab/xan"
|
||||
else
|
||||
SRC_URI="https://github.com/medialab/xan/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
SRC_URI+=" https://github.com/vowstar/vowstar-overlay-dist/releases/download/${PN}-${PV}/${PN}-${PV}-crates.tar.xz"
|
||||
SRC_URI+=" ${CARGO_CRATE_URIS}"
|
||||
KEYWORDS="~amd64"
|
||||
RESTRICT="mirror"
|
||||
fi
|
||||
|
||||
LICENSE="|| ( MIT Unlicense )"
|
||||
# Dependent crate licenses
|
||||
LICENSE+="
|
||||
Apache-2.0 BSD-2 BSD CC0-1.0 GPL-2+ ISC MIT MPL-2.0 Unicode-3.0
|
||||
Unlicense ZLIB
|
||||
"
|
||||
SLOT="0"
|
||||
# apply-crates-fixes start
|
||||
RDEPEND="
|
||||
>=app-arch/zstd-1.5.7
|
||||
>=dev-libs/jemalloc-5.3.0
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
# apply-crates-fixes end
|
||||
|
||||
QA_FLAGS_IGNORED="usr/bin/xan"
|
||||
|
||||
DOCS=( README.md docs )
|
||||
|
||||
src_unpack() {
|
||||
if [[ "${PV}" == *9999* ]]; then
|
||||
git-r3_src_unpack
|
||||
cargo_live_src_unpack
|
||||
else
|
||||
cargo_src_unpack
|
||||
fi
|
||||
}
|
||||
# apply-crates-fixes start
|
||||
src_compile() {
|
||||
export ZSTD_SYS_USE_PKG_CONFIG=1 # fix for zstd-sys crate
|
||||
JEMALLOC_OVERRIDE="/usr/$(get_libdir)/libjemalloc.so"
|
||||
export JEMALLOC_OVERRIDE # fix for jemalloc-sys crate
|
||||
cargo_src_compile
|
||||
}
|
||||
# apply-crates-fixes end
|
||||
|
||||
src_install() {
|
||||
cargo_src_install
|
||||
# docs/cookbook ships a pre-compressed sample dataset that would be
|
||||
# installed as an already-compressed file, tripping the QA check for
|
||||
# compressed files in /usr/share/doc (bug 978812).
|
||||
rm "${S}"/docs/cookbook/resources/dataviz.tar.gz || die
|
||||
einstalldocs
|
||||
}
|
||||
Reference in new issue
Block a user