aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcin Puc <tranzystorek.io@protonmail.com>2024-06-27 12:43:47 +0000
committercinerea0 <49368915+cinerea0@users.noreply.github.com>2024-06-27 14:46:44 +0000
commitfb33748e002a97dee7f3a1ac59daf21b53b3c0e3 (patch)
treeb616346f796e9326a4a430952e803f0f35c5fc85
parent753738300ebc3b87589863bbc5c8b3ea904a84e8 (diff)
downloadvoid-packages-fb33748e002a97dee7f3a1ac59daf21b53b3c0e3.tar
void-packages-fb33748e002a97dee7f3a1ac59daf21b53b3c0e3.tar.gz
void-packages-fb33748e002a97dee7f3a1ac59daf21b53b3c0e3.tar.bz2
void-packages-fb33748e002a97dee7f3a1ac59daf21b53b3c0e3.tar.lz
void-packages-fb33748e002a97dee7f3a1ac59daf21b53b3c0e3.tar.xz
void-packages-fb33748e002a97dee7f3a1ac59daf21b53b3c0e3.tar.zst
void-packages-fb33748e002a97dee7f3a1ac59daf21b53b3c0e3.zip
eza: update to 0.18.20
-rw-r--r--srcpkgs/eza/patches/downgrade-git2.patch13
-rw-r--r--srcpkgs/eza/patches/fix-zsh-completions.patch27
-rw-r--r--srcpkgs/eza/template12
3 files changed, 48 insertions, 4 deletions
diff --git a/srcpkgs/eza/patches/downgrade-git2.patch b/srcpkgs/eza/patches/downgrade-git2.patch
new file mode 100644
index 00000000000..68d2c5b3bde
--- /dev/null
+++ b/srcpkgs/eza/patches/downgrade-git2.patch
@@ -0,0 +1,13 @@
+diff --git a/Cargo.toml b/Cargo.toml
+index b76d5c3..5cb3123 100644
+--- a/Cargo.toml
++++ b/Cargo.toml
+@@ -94,7 +94,7 @@ rayon = "1.10.0"
+ ansi-width = "0.1.0"
+
+ [dependencies.git2]
+-version = "0.19"
++version = "0.18"
+ optional = true
+ default-features = false
+
diff --git a/srcpkgs/eza/patches/fix-zsh-completions.patch b/srcpkgs/eza/patches/fix-zsh-completions.patch
new file mode 100644
index 00000000000..b52a81c616b
--- /dev/null
+++ b/srcpkgs/eza/patches/fix-zsh-completions.patch
@@ -0,0 +1,27 @@
+From 30d78ba5ce7fd2aabae174bcac106d6b202c6d31 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Martin=20Maty=C3=A1=C5=A1ek?= <martin.matyasek@gmail.com>
+Date: Thu, 27 Jun 2024 11:58:57 +0200
+Subject: [PATCH] fix(completions): fix missing line breaks in _eza
+
+Before this change the shell would report a parsing error, which was due
+to missing line breaks after the newly introduced symlinks flags. This
+commit fixes that issue.
+---
+ completions/zsh/_eza | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/completions/zsh/_eza b/completions/zsh/_eza
+index f672e0a59..67cf0284d 100644
+--- a/completions/zsh/_eza
++++ b/completions/zsh/_eza
+@@ -33,8 +33,8 @@ __eza() {
+ {-A,--almost-all}"[Equivalent to --all; included for compatibility with \'ls -A\']" \
+ {-d,--list-dirs}"[List directories like regular files]" \
+ {-D,--only-dirs}"[List only directories]" \
+- --no-symlinks"[Do not show symbolic links]"
+- --show-symlinks"[Explictly show symbolic links: for use with '--only-dirs'| '--only-files']"
++ --no-symlinks"[Do not show symbolic links]" \
++ --show-symlinks"[Explictly show symbolic links: for use with '--only-dirs'| '--only-files']" \
+ {-f,--only-files}"[List only files]" \
+ {-L,--level}"+[Limit the depth of recursion]" \
+ {-w,--width}"+[Limits column output of grid, 0 implies auto-width]" \
diff --git a/srcpkgs/eza/template b/srcpkgs/eza/template
index 5c848a5545a..0a05ecf0694 100644
--- a/srcpkgs/eza/template
+++ b/srcpkgs/eza/template
@@ -1,6 +1,6 @@
# Template file for 'eza'
pkgname=eza
-version=0.18.18
+version=0.18.20
revision=1
build_style=cargo
hostmakedepends="pkg-config"
@@ -11,9 +11,9 @@ license="MIT"
homepage="https://eza.rocks"
changelog="https://raw.githubusercontent.com/eza-community/eza/main/CHANGELOG.md"
distfiles="https://github.com/eza-community/eza/archive/refs/tags/v${version}.tar.gz
-https://github.com/eza-community/eza/releases/download/v${version}/man-${version}.tar.gz"
-checksum="437ea76838fea2464b9592f1adef7df0412e27c9fc2a3e7ff47efcdfb17457f5
- 4ed46167bc31712fc25e46287743eec2870644feeb09241cd14a68b7d6527093"
+ https://github.com/eza-community/eza/releases/download/v${version}/man-${version}.tar.gz"
+checksum="f85a7c1a1859e4fb7913d9517bd5fd04714811562b631a71705077c5aceacd78
+ e376bfd7c8657cf9c8b0c1405543fed9142dd5222f1980b2c7e68309d163d23c"
skip_extraction="man-${version}.tar.gz"
@@ -21,6 +21,10 @@ post_extract() {
vsrcextract -C manpages --strip-components=3 man-${version}.tar.gz
}
+post_patch() {
+ cargo update --package git2@0.19.0 --precise 0.18.3
+}
+
post_install() {
vcompletion completions/bash/eza bash
vcompletion completions/fish/eza.fish fish