mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-10-12 17:51:11 -04:00
app-text/xan: update 9999
changes: - modify src_unpack() internally instead of redefining: functions should be defined on the order that they are called for more info, check: https://github.com/gentoo/guru/commit/e19c6d574461655f11cb1c6e1b37ff22c9a6ff70#commitcomment-172006236 updates: - DEPEND and src_compile: a lot of project uses -sys crates, and some of them like to vendor deps, for more info check: https://wiki.gentoo.org/wiki/Project:Rust/sys_crates and https://wiki.gentoo.org/wiki/Why_not_bundle_dependencies This commit fixes the deps for zstd-sys, and jemalloc-sys, instead of the vendored deps, they now use the system libs. The -sys crates dep fix part was done using this script: https://codeberg.org/ingenarel-NeoJesus/gentoo-dev-scripts/src/commit/9b9bb737a8127582f431b646f4072d66d0165e0c/bins/apply-crates-fixes - copyright years Signed-off-by: ingenarel (NeoJesus) <ingenarel_neojesus@disroot.org> Part-of: https://codeberg.org/gentoo/guru/pulls/8
This commit is contained in:
1 file changed
+25
-5
@@ -1,4 +1,4 @@
|
||||
# Copyright 2025 Gentoo Authors
|
||||
# Copyright 2025-2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
# Autogenerated by pycargoebuild 0.14.0
|
||||
@@ -17,10 +17,6 @@ HOMEPAGE="https://github.com/medialab/xan"
|
||||
if [[ "${PV}" == *9999* ]]; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/medialab/xan"
|
||||
src_unpack() {
|
||||
git-r3_src_unpack
|
||||
cargo_live_src_unpack
|
||||
}
|
||||
else
|
||||
SRC_URI="https://github.com/medialab/xan/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
SRC_URI+=" ${CARGO_CRATE_URIS}"
|
||||
@@ -35,11 +31,35 @@ LICENSE+="
|
||||
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
|
||||
einstalldocs
|
||||
|
||||
Reference in new issue
Block a user