app-text/xan: fix and improve the logic of the live ebuild template

I made a mass depfiles conversion to a lot of packages a while ago, and
most of the changes were reverted in
https://github.com/gentoo/guru/pull/354

However, the depfiles in this ebuild went unnoticed by me, so the logic
was fixed: use CRATES instead of depfiles

I also added `RESTRICT="mirror"` which were recommended to me in the IRC
back when the discussion was made on my mass creation of depfiles, this
way, portage shouldn't check for a mirror each time for hundreds of rust
CRATES

Signed-off-by: ingenarel <ingenarelitems@gmail.com>
This commit is contained in:
ingenarel
2025-11-18 01:49:52 +06:00
parent 466f70a348
commit 23ea846121

View File

@@ -21,9 +21,9 @@ if [[ "${PV}" == *9999* ]]; then
}
else
SRC_URI="https://github.com/medialab/xan/archive/${PV}.tar.gz -> ${P}.tar.gz"
SRC_URI+=" https://github.com/ingenarel/guru-depfiles/releases/download/${P}-deps.tar.xz/${P}-deps.tar.xz"
SRC_URI+=" ${CARGO_CRATE_URIS}"
KEYWORDS="~amd64"
ECARGO_VENDOR="${WORKDIR}/vendor"
RESTRICT="mirror"
fi
LICENSE="|| ( MIT Unlicense )"