blob: 3e1505fba5073703d1be7313e5f229e39c762faf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
# Copyright 2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
CRATES="
"
RUST_MIN_VER="1.82.0"
inherit cargo optfeature
# last update of Cargo.lock
CRATES_PV="3.4.0"
DESCRIPTION="Diff filter highlighting changed line parts"
HOMEPAGE="https://github.com/walles/riff/"
SRC_URI="https://github.com/walles/riff/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
SRC_URI+=" https://raw.githubusercontent.com/PPN-SD/vendor/refs/tags/${PN}-${CRATES_PV}/${PN}-${CRATES_PV}-crates.tar.xz"
S="${WORKDIR}/${P/diff/}"
LICENSE="MIT"
# Autogenerated by pycargoebuild
# Dependent crate licenses
LICENSE+=" Apache-2.0 BSD-2 BSD MIT Unicode-3.0 Unicode-DFS-2016"
SLOT="0"
KEYWORDS="~amd64"
QA_FLAGS_IGNORED="usr/bin/riff"
src_prepare() {
default
sed -i -e '/^lto =/d' Cargo.toml || die
}
src_install() {
cargo_src_install
dodoc README.md
}
pkg_postinst() {
optfeature "a nice pager with extra rendering" sys-apps/moor
}
|