commit:     6677ca19613153d887025f102288711e0299475d
Author:     Leonardo Hernández Hernández <leohdz172 <AT> proton <DOT> me>
AuthorDate: Sun Jan 21 03:53:30 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Jan 21 03:57:20 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6677ca19

sys-apps/eza: add 0.17.2

Signed-off-by: Leonardo Hernández Hernández <leohdz172 <AT> proton.me>
Closes: https://github.com/gentoo/gentoo/pull/34930
Signed-off-by: Sam James <sam <AT> gentoo.org>

 sys-apps/eza/Manifest          |   2 +
 sys-apps/eza/eza-0.17.2.ebuild | 254 +++++++++++++++++++++++++++++++++++++++++
 2 files changed, 256 insertions(+)

diff --git a/sys-apps/eza/Manifest b/sys-apps/eza/Manifest
index ad5fdb9d751a..6ebc5b9dfdaf 100644
--- a/sys-apps/eza/Manifest
+++ b/sys-apps/eza/Manifest
@@ -53,6 +53,8 @@ DIST eza-0.17.0-manpages.tar.xz 7716 BLAKE2B 
94bcb5353da99b8c218f31ab0d6433c534f
 DIST eza-0.17.0.tar.gz 1523156 BLAKE2B 
c86c75c12b19e3ddf73143f433123f2198750ac5c92022e46a818ec414bc04e3b98f9b613335f09c364dfc53dccc77f6b23f8d1fa1cb160c51b9f66aae0edde6
 SHA512 
dda2a3bdc3d8abdd1fca4d8874455844b3cfac94c3188afcfe8e373b8dcbb968b7b81db43cf8fa938b0c18787e2b633acd4fedc26311bb4bab52555b76f49e27
 DIST eza-0.17.1-manpages.tar.xz 7656 BLAKE2B 
01e9698f1c033ec4773bd6436a598a4ac84898598c9655455b36edcfe9660ff4994b43a39f65107a63dc7a71f8fc49506584a18182849b65daa3571dfd407a6f
 SHA512 
5b97cbedca8dda9af9208919faeda152aa41377a24ce0a6804058fe74c12bbf0fdbd56369e97b35012773d07498022aa048f64cdd66f746801a5140a4aae3848
 DIST eza-0.17.1.tar.gz 1524733 BLAKE2B 
973ba81af8db663673a0b62d67bec4078886156303ecbd2315a03399c0eee9db79d0e2cf216bc479467e672dbe1bc5559b753b5564967e6b6bfd4e4a689a05d1
 SHA512 
36694e6fa2a52bf6f4e14513d0fb82fc7a92230ff132d21ed373224cff93b5d6ee4f3f030ae9be210d06e9e1e1ea148b3ee499cf59356ffd5c39d780d7598e04
+DIST eza-0.17.2-manpages.tar.xz 7652 BLAKE2B 
910ccd5e0d1e0a3055b6c30dbb06abf9f296e722b691566f7993ab073b3edecc1c7be7df08e17d42c58951235caf00cfb48431023f43ee87313b7da736d1995f
 SHA512 
bbae103f7a66687c89e62dc6407806ab1183e1a0d5e779a33c62b4fb637e4371876bcb9423eafb7ff8238ca0c0c983ffdf11a390a6698632ded4d4e4c70143fb
+DIST eza-0.17.2.tar.gz 1524844 BLAKE2B 
4468f226acb3493832f65a3dcc7e9abadc6b6c290057c436a9bb7e8903762d286db4f10a2c03c1ce73b50d53e100484532987d0b2d9465dc0acf0892659911cb
 SHA512 
bafc8b26de16de9c0b54320d6454cd1aa7939cb8f2eafdfb9407b79dc07d06398d174378feb447d9fc996cf007bad53988ea06f3b3057c000856c0bec8acabc9
 DIST fast-srgb8-1.0.0.crate 17214 BLAKE2B 
c5d2e04bf43fccdcd31d6f81cdcde3d89bf0ce94bbc506c2bc09c62b4e83469a2b72db0bb09f4cc2495ace7510834e7fe49df6aa7864092452d9f7865f35cc14
 SHA512 
834edef5eb4ec23b9e627b5e879a1649af19a17a1af0bae97c040869dbd14751ff3b29a606c52e5fe07b60f07fb695f328409c39788a4e74af0ab7b716688a0b
 DIST fastrand-2.0.0.crate 14402 BLAKE2B 
8bf830151ec616dbc25f216265722e39f8a2cd9ae036b0904b73775a30497368aaf9bb7f49890c330024c3d9b8084749c91f601b60b53bc8cef2da8b0aa71322
 SHA512 
9449dd52e4b722d5747f68f127843c0d1a402765c2b6186b9526f8ae23293cb1f6b50adcbf18a8ea768292642184cb0eb42b1801d20f6815397903f9977f3cbc
 DIST filetime-0.2.22.crate 15029 BLAKE2B 
068f4a84388d04d900bc5518a94895985ecba9c618a47b6483cabc31abd267e37ce69d78c51703ec5745307800d96ac801f37ac9959c60283c3c3d6ccd349c0a
 SHA512 
d40d8baeb57ec85bb9ccf76ff0f898915c4e6cf384020121b53f4a2a1ef2840af5b4c9e8e1ff177034273f4f7a6bf81d2dd7a02cf498b61ea31ceaa30b877067

diff --git a/sys-apps/eza/eza-0.17.2.ebuild b/sys-apps/eza/eza-0.17.2.ebuild
new file mode 100644
index 000000000000..f31a0687ecba
--- /dev/null
+++ b/sys-apps/eza/eza-0.17.2.ebuild
@@ -0,0 +1,254 @@
+# Copyright 2023-2024 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]
+       [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]
+       [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]
+       [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 cargo shell-completion
+
+# script to generate the tarball: 
https://raw.githubusercontent.com/sevz17/eza-manpages/main/generate-eza-manpages
+MANPAGES_BASE_URI="https://github.com/sevz17/eza-manpages/releases/download/${PV}";
+
+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
+       ${MANPAGES_BASE_URI}/${P}-manpages.tar.xz
+       ${CARGO_CRATE_URIS}
+"
+
+LICENSE="MIT"
+# Dependent crate licenses
+LICENSE+=" Apache-2.0 LGPL-3+ MIT Unicode-DFS-2016"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64 ~loong ~ppc64 ~riscv ~x86"
+IUSE="+git"
+
+DEPEND="git? ( dev-libs/libgit2:= )"
+RDEPEND="${DEPEND}"
+BDEPEND=">=virtual/rust-1.70.0"
+
+QA_FLAGS_IGNORED="usr/bin/${PN}"
+
+src_prepare() {
+       default
+
+       # 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
+
+       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"
+
+       doman "${WORKDIR}"/manpages/*
+}
+
+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