From 8dab8e43dc36c1c57514728112a85e1d55cf2839 Mon Sep 17 00:00:00 2001 From: Ruowen Qin Date: Tue, 30 Apr 2024 11:22:51 +0800 Subject: [PATCH] sys-apps/eza: bump to eza-0.18.13 Signed-off-by: Ruowen Qin --- sys-apps/eza/Manifest | 1 + sys-apps/eza/eza-0.18.13.ebuild | 246 ++++++++++++++++++++++++++++++++ 2 files changed, 247 insertions(+) create mode 100644 sys-apps/eza/eza-0.18.13.ebuild diff --git a/sys-apps/eza/Manifest b/sys-apps/eza/Manifest index b80c357..8e91ff7 100644 --- a/sys-apps/eza/Manifest +++ b/sys-apps/eza/Manifest @@ -41,6 +41,7 @@ DIST equivalent-1.0.1.crate 6615 BLAKE2B 302d78069d9df05e78b53f0488a9e4eb98fa2bc DIST errno-0.3.3.crate 10543 BLAKE2B 958e9d12766533ae9e84a60b121794929b9b3b1a8111aca9a2e914beee5784b64c946e143cd8031335ac9cb51069e51dbc9a6b61073a2ccfd3ff60612a20b619 SHA512 9524db39d0c9be287e0d2aed3358a86e961b2868717037212a2e9dc408bc73198ab23196d7923a9ba7e0e9357276075148f582e0325ad36ae1b212a8c674173e DIST errno-dragonfly-0.1.2.crate 1810 BLAKE2B 781fc26dce5c33d83b9a1fd9be2b2ce9ac2559aaa858957ba6777e143b1e44cdfee48e1b47e3c91a95075a51921d1a421d0b45eb3d8de827cf4dd0ad744a7d8c SHA512 f853f1e1b8dd0f359a8f9a0399b3384c1103cd090d96e2b2204f91a40d40a9eb99383d4aa6a11e5470c51557afacf452d4be2049600d4235d27f59870fa3b916 DIST eza-0.18.10.tar.gz 1384813 BLAKE2B 48abcabb68d3e7ad8f743f7a6d5cb0efab7cb55304795bf4f8fddd4689968685f06d972924d7ef62591329f665e216fa28e4d5ecbc110d6615525fd9fc39aecc SHA512 d6add5966c94476e8eb6cdbbf713608fd956dc6af25a6b76af24bdf9ec23b094b0c4f82dc574578f3f7c37e8c226905c746011918e851a6be33ce0cbaa23c2cc +DIST eza-0.18.13.tar.gz 1385128 BLAKE2B 1d84298f8fe950399acaa457b452e85ec9540242bdefc2d542f75bb339b82b8a861f4032b85d9240fde74397a678cd792bf81cb59bda0fb5b7442ee30f43d8b3 SHA512 e257e57e7be3419bd4b9abf72e32222ad5a8029801cd8a7128151da3ce2198a57a1f6187e70ec7a1929e012572348bad56f7904f8cce2e1c26ab8880b6041f0c DIST eza-0.18.9.tar.gz 1384692 BLAKE2B a398256ebb7b62a7c3e6a3b8e1646c48553eed806db5bf89944ee82937aea1a9b265932d2af9253dddf4c65b064ac5f9ed4ab3997d7943f4336f0da4671fe444 SHA512 8ce0800240982c1e5476d1a2f6c77deefa3fdb2b36e0bb357926fc2878f3788d7e6df3b52b226e1f4f2fb5321ad7f31f536942d502997e1e6554e32ec985a58e DIST fast-srgb8-1.0.0.crate 17214 BLAKE2B c5d2e04bf43fccdcd31d6f81cdcde3d89bf0ce94bbc506c2bc09c62b4e83469a2b72db0bb09f4cc2495ace7510834e7fe49df6aa7864092452d9f7865f35cc14 SHA512 834edef5eb4ec23b9e627b5e879a1649af19a17a1af0bae97c040869dbd14751ff3b29a606c52e5fe07b60f07fb695f328409c39788a4e74af0ab7b716688a0b DIST fastrand-2.0.0.crate 14402 BLAKE2B 8bf830151ec616dbc25f216265722e39f8a2cd9ae036b0904b73775a30497368aaf9bb7f49890c330024c3d9b8084749c91f601b60b53bc8cef2da8b0aa71322 SHA512 9449dd52e4b722d5747f68f127843c0d1a402765c2b6186b9526f8ae23293cb1f6b50adcbf18a8ea768292642184cb0eb42b1801d20f6815397903f9977f3cbc diff --git a/sys-apps/eza/eza-0.18.13.ebuild b/sys-apps/eza/eza-0.18.13.ebuild new file mode 100644 index 0000000..012b7db --- /dev/null +++ b/sys-apps/eza/eza-0.18.13.ebuild @@ -0,0 +1,246 @@ +# Copyright 2023-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +CRATES=" + aho-corasick@1.0.5 + android-tzdata@0.1.1 + android_system_properties@0.1.5 + anes@0.1.6 + ansi-width@0.1.0 + anstream@0.6.11 + anstyle-parse@0.2.1 + anstyle-query@1.0.0 + anstyle-wincon@3.0.1 + anstyle@1.0.3 + approx@0.5.1 + autocfg@1.1.0 + base64@0.21.5 + bitflags@1.3.2 + bitflags@2.4.0 + bumpalo@3.13.0 + byteorder@1.4.3 + cast@0.3.0 + cc@1.0.79 + cfg-if@1.0.0 + chrono@0.4.34 + ciborium-io@0.2.1 + ciborium-ll@0.2.1 + ciborium@0.2.1 + clap@4.4.3 + clap_builder@4.4.2 + clap_lex@0.5.1 + colorchoice@1.0.0 + content_inspector@0.2.4 + core-foundation-sys@0.8.4 + criterion-plot@0.5.0 + criterion@0.5.1 + crossbeam-deque@0.8.3 + crossbeam-epoch@0.9.15 + crossbeam-utils@0.8.16 + datetime@0.5.2 + deranged@0.3.9 + dunce@1.0.4 + either@1.9.0 + equivalent@1.0.1 + errno-dragonfly@0.1.2 + errno@0.3.3 + fast-srgb8@1.0.0 + fastrand@2.0.0 + filetime@0.2.22 + form_urlencoded@1.0.1 + git2@0.18.3 + glob@0.3.1 + half@1.8.2 + hashbrown@0.14.2 + hermit-abi@0.3.2 + humantime-serde@1.1.1 + humantime@2.1.0 + iana-time-zone-haiku@0.1.2 + iana-time-zone@0.1.57 + idna@0.2.3 + indexmap@2.1.0 + is-terminal@0.4.9 + itertools@0.10.5 + itoa@1.0.9 + jobserver@0.1.22 + js-sys@0.3.64 + libc@0.2.153 + libgit2-sys@0.16.2+1.7.2 + libz-sys@1.1.2 + line-wrap@0.2.0 + linux-raw-sys@0.4.11 + locale@0.2.2 + log@0.4.21 + matches@0.1.8 + memchr@2.6.3 + memoffset@0.9.0 + natord@1.0.9 + normalize-line-endings@0.3.0 + nu-ansi-term@0.50.0 + num-traits@0.2.14 + number_prefix@0.4.0 + once_cell@1.19.0 + oorandom@11.1.3 + openssl-src@111.26.0+1.1.1u + openssl-sys@0.9.61 + os_pipe@1.1.4 + palette@0.7.5 + palette_derive@0.7.5 + partition-identity@0.3.0 + path-clean@1.0.1 + percent-encoding@2.3.1 + phf@0.11.2 + phf_generator@0.11.2 + phf_macros@0.11.2 + phf_shared@0.11.2 + pkg-config@0.3.19 + plist@1.6.1 + plotters-backend@0.3.5 + plotters-svg@0.3.5 + plotters@0.3.5 + powerfmt@0.2.0 + proc-macro2@1.0.66 + proc-mounts@0.3.0 + quick-xml@0.31.0 + quote@1.0.33 + rand@0.8.5 + rand_core@0.6.4 + rayon-core@1.12.1 + rayon@1.10.0 + redox_syscall@0.1.57 + redox_syscall@0.3.5 + regex-automata@0.3.8 + regex-syntax@0.7.5 + regex@1.9.5 + rustix@0.38.21 + ryu@1.0.15 + same-file@1.0.6 + scopeguard@1.2.0 + serde@1.0.188 + serde_derive@1.0.188 + serde_json@1.0.107 + serde_spanned@0.6.5 + shlex@1.3.0 + similar@2.2.1 + siphasher@0.3.11 + snapbox-macros@0.3.8 + snapbox@0.5.9 + syn@2.0.29 + tempfile@3.8.0 + terminal_size@0.3.0 + thiserror-impl@1.0.48 + thiserror@1.0.48 + time-core@0.1.2 + time-macros@0.2.15 + time@0.3.30 + timeago@0.4.2 + tinytemplate@1.2.1 + tinyvec@1.2.0 + tinyvec_macros@0.1.0 + toml_datetime@0.6.5 + toml_edit@0.22.6 + trycmd@0.15.1 + unicode-bidi@0.3.5 + unicode-ident@1.0.11 + unicode-normalization@0.1.17 + unicode-width@0.1.11 + url@2.2.1 + utf8parse@0.2.1 + uutils_term_grid@0.6.0 + uzers@0.11.3 + vcpkg@0.2.12 + wait-timeout@0.2.0 + walkdir@2.4.0 + wasm-bindgen-backend@0.2.87 + wasm-bindgen-macro-support@0.2.87 + wasm-bindgen-macro@0.2.87 + wasm-bindgen-shared@0.2.87 + wasm-bindgen@0.2.87 + web-sys@0.3.64 + winapi-i686-pc-windows-gnu@0.4.0 + winapi-util@0.1.5 + winapi-x86_64-pc-windows-gnu@0.4.0 + winapi@0.3.9 + windows-sys@0.48.0 + windows-sys@0.52.0 + windows-targets@0.48.5 + windows-targets@0.52.0 + windows@0.48.0 + windows_aarch64_gnullvm@0.48.5 + windows_aarch64_gnullvm@0.52.0 + windows_aarch64_msvc@0.48.5 + windows_aarch64_msvc@0.52.0 + windows_i686_gnu@0.48.5 + windows_i686_gnu@0.52.0 + windows_i686_msvc@0.48.5 + windows_i686_msvc@0.52.0 + windows_x86_64_gnu@0.48.5 + windows_x86_64_gnu@0.52.0 + windows_x86_64_gnullvm@0.48.5 + windows_x86_64_gnullvm@0.52.0 + windows_x86_64_msvc@0.48.5 + windows_x86_64_msvc@0.52.0 + winnow@0.6.2 + zoneinfo_compiled@0.5.1 +" + +inherit cargo shell-completion + +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 ~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" + +} + +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 +}