1+ # Distributed under the terms of the GNU General Public License v2
2+
3+ EAPI=7
4+
5+ inherit bash-completion-r1 cargo
6+
7+ DESCRIPTION=" A modern alternative to ls"
8+ HOMEPAGE=" https://eza.rocks https://github.com/eza-community/eza"
9+ SRC_URI=" https://github.com/eza-community/eza/tarball/a72d4fdd580b5310894ac44b7f8a71b693ba458d -> eza-0.21.4-a72d4fd.tar.gz
10+ https://distfiles.macaronios.org/8b/0a/12/8b0a120b4976cf75dbb495fff91bf986df2255025c9feee65459170667a4df475ee270a8de64d395234f6822242cf7158edba6fe754bd987807974a5a3995e7c -> eza-0.21.4-funtoo-crates-bundle-a1dd3092ce63b17b5ccb11f25f34a3af59506dd878a1ae40936d7fbb178b2cd37019843db167a984f9d1492fe2f8e2845bc7958c94bb54a0ebdc52e6fdb8631f.tar.gz"
11+
12+ LICENSE=" Apache-2.0 Boost-1.0 BSD BSD-2 CC0-1.0 ISC LGPL-3+ MIT Apache-2.0 Unlicense ZLIB"
13+ SLOT=" 0"
14+ KEYWORDS=" *"
15+ IUSE=" +git"
16+
17+ DEPEND="
18+ git? (
19+ dev-libs/libgit2:=
20+ )
21+ "
22+ RDEPEND=" ${DEPEND} "
23+ BDEPEND="
24+ || ( app-text/pandoc-bin app-text/pandoc )
25+ virtual/rust
26+ "
27+
28+ DOCS=( README.md CHANGELOG.md )
29+
30+ QA_FLAGS_IGNORED=" /usr/bin/eza"
31+
32+ src_unpack () {
33+ cargo_src_unpack
34+ rm -rf ${S}
35+ mv ${WORKDIR} /eza-community-eza-* ${S} || die
36+ }
37+
38+ src_configure () {
39+ local myfeatures=(
40+ $( usev git)
41+ )
42+ # https://bugs.funtoo.org/browse/FL-11956
43+ # Enabling vendoring of libgit2 as eza requires version >= 1.7.2
44+ # Once Funtoo has a new version this can be changed back to 1 for
45+ # linking against the Funtoo system libgit2
46+ export LIBGIT2_NO_VENDOR=0
47+ export PKG_CONFIG_ALLOW_CROSS=1
48+ cargo_src_configure --no-default-features
49+
50+ find ${S} /man -iname " *.md" -type f -exec sh -c ' pandoc --standalone -f markdown -t man "${0}" -o "${0%.md} "' {} \; || die
51+ rm -f ${S} /man/* .md || die
52+ mv ${S} /man ${S} /man.tmp || die
53+
54+ }
55+
56+ src_install () {
57+ cargo_src_install
58+ einstalldocs
59+
60+ newbashcomp completions/bash/eza eza
61+
62+ insinto /usr/share/zsh/site-functions
63+ doins completions/fish/eza.fish
64+
65+ insinto /usr/share/fish/vendor_completions.d
66+ doins completions/zsh/_eza
67+
68+ doman man.tmp/*
69+ }
0 commit comments