commit:     50057325955499cea8f67aa08102414699a7dd0b
Author:     Leonardo Hernández Hernández <leohdz172 <AT> proton <DOT> me>
AuthorDate: Fri Oct 27 06:26:00 2023 +0000
Commit:     Florian Schmaus <flow <AT> gentoo <DOT> org>
CommitDate: Fri Oct 27 07:10:50 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=50057325

sys-apps/eza: add 0.15.1

Signed-off-by: Leonardo Hernández Hernández <leohdz172 <AT> proton.me>
Closes: https://github.com/gentoo/gentoo/pull/33536
Signed-off-by: Florian Schmaus <flow <AT> gentoo.org>

 sys-apps/eza/Manifest          |   1 +
 sys-apps/eza/eza-0.15.1.ebuild | 247 +++++++++++++++++++++++++++++++++++++++++
 2 files changed, 248 insertions(+)

diff --git a/sys-apps/eza/Manifest b/sys-apps/eza/Manifest
index 855231e1ff4d..e88fc8356785 100644
--- a/sys-apps/eza/Manifest
+++ b/sys-apps/eza/Manifest
@@ -46,6 +46,7 @@ DIST eza-0.13.1.tar.gz 1210338 BLAKE2B 
5ae9b8274f3f22d72e6480db71b6817ead49bd2c1
 DIST eza-0.14.0.tar.gz 1214132 BLAKE2B 
89c0cc5055aab6730a66606b9a9ae040ea7d1f1fbcd278c4a2277738ca9a406fbeae33686d32d8f51382684f1fc57c465af61a06773490bb75b3e4f41a1a866c
 SHA512 
7d7d0fa6b1e936bbafcad7bc537c678d30a40f586d8518966bf210985e585986f7a811b279c28e6df1e500653ffbeb05299f6b33366fad84e6545bcf656845d0
 DIST eza-0.14.2.tar.gz 1217105 BLAKE2B 
9835f66dcd481c8afcde3e9fdac741f67c371f3d58b43a4114789f6a2c5c816b9f131128e010973f7ffe91761b311c421d62e02ab95f80ec957c3e3426bdf441
 SHA512 
e807424814840cfbdc37f12e3b4ee9ea79287e1c9ee2fbd8f681346e5f7ed55523529d75c96eadbc7f1029c07086ce6d47bf6bbc125e7083bb67ae8be139ab7f
 DIST eza-0.15.0.tar.gz 1218228 BLAKE2B 
570d95d21e7d284658dac6129dfba996090f53d8b0621c6cfe3b4143427d2663ea02bf6d6e528eff75d90b30625efdd1a0aa349fbf6d98a283724a1d127247ea
 SHA512 
2eb15b51a26eab2999fbaaa282f19ccbebc176d0730a626c3ff6f41101afd7e9002e99ffa8c602a1ceb518570f029e960c25ada85661df18afc77d27c8f90cb2
+DIST eza-0.15.1.tar.gz 1222218 BLAKE2B 
c85069fb9c4cfc8efb70a1cbf9cc1744a4c90069c61bb2a10794b2e6e4514ef68052b081a594cd481f44aae7de1eefe705db637215f37b8cd4177a01e4e1791c
 SHA512 
3ca0d45949e494b8dd7bc187c9ad573abdd505f2c7c32ef5cd660fbc23e1512a8bc43f0b90ba084dfb7cda1e58383aeb487c148c869f94e1ae3b5cbf91617924
 DIST fastrand-2.0.0.crate 14402 BLAKE2B 
8bf830151ec616dbc25f216265722e39f8a2cd9ae036b0904b73775a30497368aaf9bb7f49890c330024c3d9b8084749c91f601b60b53bc8cef2da8b0aa71322
 SHA512 
9449dd52e4b722d5747f68f127843c0d1a402765c2b6186b9526f8ae23293cb1f6b50adcbf18a8ea768292642184cb0eb42b1801d20f6815397903f9977f3cbc
 DIST filetime-0.2.22.crate 15029 BLAKE2B 
068f4a84388d04d900bc5518a94895985ecba9c618a47b6483cabc31abd267e37ce69d78c51703ec5745307800d96ac801f37ac9959c60283c3c3d6ccd349c0a
 SHA512 
d40d8baeb57ec85bb9ccf76ff0f898915c4e6cf384020121b53f4a2a1ef2840af5b4c9e8e1ff177034273f4f7a6bf81d2dd7a02cf498b61ea31ceaa30b877067
 DIST form_urlencoded-1.0.1.crate 8773 BLAKE2B 
e2d2224dbd85d053343aea29ef1bd540fb8be12fd600289e9c048e3b74bfb009d0770f8296556309ef756086f22feec4713dfed1006e1101075c8897be5471cc
 SHA512 
3ab371c223561a27ffbd35cf648ef4a9145d47bba9d71900a7c54cfc2f089175e9361f6352331a9a7fa018923b15e7a3553c8f9ff9fae80e1626e641a5faff68

diff --git a/sys-apps/eza/eza-0.15.1.ebuild b/sys-apps/eza/eza-0.15.1.ebuild
new file mode 100644
index 000000000000..76623c74ec44
--- /dev/null
+++ b/sys-apps/eza/eza-0.15.1.ebuild
@@ -0,0 +1,247 @@
+# Copyright 2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+CRATES="
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]+1.7.1
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]+1.1.1u
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+"
+
+inherit shell-completion cargo
+
+DESCRIPTION="A modern, maintained replacement for ls"
+HOMEPAGE="https://github.com/eza-community/eza";
+SRC_URI="https://github.com/eza-community/${PN}/archive/refs/tags/v${PV}.tar.gz
 -> ${P}.tar.gz
+       ${CARGO_CRATE_URIS}
+"
+
+LICENSE="MIT"
+# Dependent crate licenses
+LICENSE+=" Apache-2.0 MIT Unicode-DFS-2016"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64 ~loong ~riscv ~x86"
+IUSE="+git man"
+
+DEPEND="git? ( dev-libs/libgit2:= )"
+RDEPEND="${DEPEND}"
+BDEPEND="
+       >=virtual/rust-1.70.0
+       man? ( virtual/pandoc )
+"
+
+QA_FLAGS_IGNORED="usr/bin/${PN}"
+
+src_prepare() {
+       default
+       if use man; then
+               mkdir -p contrib/man || die "failed to create man directory"
+               pandoc --standalone -f markdown -t man man/eza.1.md \
+                       -o contrib/man/eza.1 || die "failed to create man page"
+               pandoc --standalone -f markdown -t man man/eza_colors.5.md \
+                       -o contrib/man/eza_colors.5 || die "failed to create 
colors man page"
+               pandoc --standalone -f markdown -t man 
man/eza_colors-explanation.5.md \
+                       -o contrib/man/eza_colors-explanation.5 || die "failed 
to create colors-explanation man page"
+       fi
+
+       # "source" files only, but cargo.eclass will attempt to install them.
+       rm -r man || die "failed to remove man directory from source"
+
+       # Known failing test, upstream says it could potentially be ignored for 
know
+       # bug #914214
+       # https://github.com/eza-community/eza/issues/393
+       rm tests/cmd/{icons,basic}_all.toml || die
+       rm tests/cmd/only_dir_{,recursive_}unix.toml || die
+       rm tests/cmd/recursive_unix.toml || die
+       rm tests/cmd/only_file_unix.toml || die
+
+       sed -i -e 's/^strip = true$/strip = false/g' Cargo.toml || die "failed 
to disable stripping"
+}
+
+src_configure() {
+       local myfeatures=(
+               $(usev git)
+       )
+       export LIBGIT2_SYS_USE_PKG_CONFIG=1
+       export PKG_CONFIG_ALLOW_CROSS=1
+       cargo_src_configure --no-default-features
+}
+
+src_install() {
+       cargo_src_install
+
+       dobashcomp "completions/bash/${PN}"
+       dozshcomp "completions/zsh/_${PN}"
+       dofishcomp "completions/fish/${PN}.fish"
+
+       if use man; then
+               doman contrib/man/*
+       fi
+}
+
+pkg_postinst() {
+       for v in ${REPLACING_VERSIONS}; do
+               if ver_test "${v}" -lt "0.13.0"; then
+                       elog "Starting with 0.13.0 \$EXA_COLORS using style 
codes nh and uh"
+                       elog "will need to be updated to use nt and ut"
+               fi
+       done
+}

Reply via email to