unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Jaeme Sifat via Guix-patches via <guix-patches@gnu.org>
To: 67919@debbugs.gnu.org
Cc: Jaeme Sifat <jaeme@runbox.com>, Efraim Flashner <efraim@flashner.co.il>
Subject: [bug#67919] [PATCH 55/55] gnu: eza: Refactor package definition.
Date: Tue, 19 Dec 2023 22:55:17 -0500	[thread overview]
Message-ID: <72f385c7d91ab049b73989b3b1ca83c1e4e1b62e.1703044085.git.jaeme@runbox.com> (raw)
In-Reply-To: <cover.1703044079.git.jaeme@runbox.com>

* gnu/packages/rust-apps.scm (eza): Refactor package definition.
[arguments]: Made 'install-extras phase clearer.

Change-Id: I4df0fdcde11d8ab07eed5aeeb1d14a6fe5fe55c3
---
 gnu/packages/rust-apps.scm | 45 ++++++++++++++++++++------------------
 1 file changed, 24 insertions(+), 21 deletions(-)

diff --git a/gnu/packages/rust-apps.scm b/gnu/packages/rust-apps.scm
index cf29cf051c..2f339f55d7 100644
--- a/gnu/packages/rust-apps.scm
+++ b/gnu/packages/rust-apps.scm
@@ -404,7 +404,6 @@ (define-public eza
       #:install-source? #f
       #:cargo-inputs
       `(("rust-ansiterm" ,rust-ansiterm-0.12)
-        ("rust-chrono" ,rust-chrono-0.4)
         ("rust-chrono" ,rust-chrono-0.4)
         ("rust-git2" ,rust-git2-0.18)
         ("rust-glob" ,rust-glob-0.3)
@@ -438,40 +437,44 @@ (define-public eza
                          (map (lambda (page)
                                 (with-output-to-file page
                                   (lambda _
-                                    (invoke "pandoc" "--standalone"
-                                            "-f" "markdown"
-                                            "-t" "man"
+                                    (invoke "pandoc"
+                                            "--standalone"
+                                            "-f"
+                                            "markdown"
+                                            "-t"
+                                            "man"
                                             (string-append "man/" page ".md")))))
                               (list "eza.1" "eza_colors.5")))))
                    (add-after 'install 'install-extras
                      (lambda* (#:key outputs #:allow-other-keys)
                        (let* ((out (assoc-ref outputs "out"))
                               (share (string-append out "/share"))
+                              (bash-completions-dir (string-append share
+                                                     "/bash-completion/completions"))
+                              (zsh-completions-dir (string-append share
+                                                    "/zsh/site-functions"))
+                              (fish-completions-dir (string-append share
+                                                     "/fish/vendor_completions.d"))
                               (man1 (string-append share "/man/man1"))
                               (man5 (string-append share "/man/man5")))
                          (when (file-exists? "eza.1")
                            (install-file "eza.1" man1))
                          (when (file-exists? "eza_colors.5")
                            (install-file "eza_colors.5" man5))
-                         (mkdir-p (string-append out "/etc/bash_completion.d"))
-                         (mkdir-p (string-append
-                                    share "/fish/vendor_completions.d"))
-                         (mkdir-p (string-append share "/zsh/site-functions"))
+                         (mkdir-p bash-completions-dir)
+                         (mkdir-p zsh-completions-dir)
+                         (mkdir-p fish-completions-dir)
                          (copy-file "completions/bash/eza"
-                                    (string-append
-                                      out "/etc/bash_completion.d/eza"))
-                         (copy-file "completions/fish/eza.fish"
-                                    (string-append
-                                      share "/fish/vendor_completions.d/eza.fish"))
+                                    (string-append bash-completions-dir "/eza"))
                          (copy-file "completions/zsh/_eza"
-                                    (string-append
-                                      share "/zsh/site-functions/_eza"))))))))
-    (native-inputs
-     (append
-       (list pkg-config)
-       (if (supported-package? pandoc)
-         (list pandoc)
-         '())))
+                                    (string-append zsh-completions-dir "/_eza"))
+                         (copy-file "completions/fish/eza.fish"
+                                    (string-append fish-completions-dir
+                                                   "/eza.fish"))))))))
+    (native-inputs (append (list pkg-config)
+                           (if (supported-package? pandoc)
+                               (list pandoc)
+                               '())))
     (inputs (list libgit2-1.7 zlib))
     (home-page "https://github.com/eza-community/eza")
     (synopsis "Modern replacement for ls")
-- 
2.41.0





  parent reply	other threads:[~2023-12-20  4:14 UTC|newest]

Thread overview: 57+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-12-20  3:48 [bug#67919] [PATCH 00/55 rust-team] gnu: eza: Update to 0.17.0 Jaeme Sifat via Guix-patches via
2023-12-20  3:54 ` [bug#67919] [PATCH 01/55] gnu: Add rust-windows-x86-64-msvc-0.52 Jaeme Sifat via Guix-patches via
2023-12-20  3:54 ` [bug#67919] [PATCH 02/55] gnu: Add rust-windows-x86-64-gnullvm-0.52 Jaeme Sifat via Guix-patches via
2023-12-20  3:54 ` [bug#67919] [PATCH 03/55] gnu: Add rust-windows-x86-64-gnu-0.52 Jaeme Sifat via Guix-patches via
2023-12-20  3:54 ` [bug#67919] [PATCH 04/55] gnu: Add rust-windows-i686-msvc-0.52 Jaeme Sifat via Guix-patches via
2023-12-20  3:54 ` [bug#67919] [PATCH 05/55] gnu: Add rust-windows-i686-gnu-0.52 Jaeme Sifat via Guix-patches via
2023-12-20  3:54 ` [bug#67919] [PATCH 06/55] gnu: Add rust-windows-aarch64-msvc-0.52 Jaeme Sifat via Guix-patches via
2023-12-20  3:54 ` [bug#67919] [PATCH 07/55] gnu: Add rust-windows-aarch64-gnullvm-0.52 Jaeme Sifat via Guix-patches via
2023-12-20  3:54 ` [bug#67919] [PATCH 08/55] gnu: Add rust-windows-targets-0.52 Jaeme Sifat via Guix-patches via
2023-12-20  3:54 ` [bug#67919] [PATCH 09/55] gnu: Add rust-windows-sys-0.52 Jaeme Sifat via Guix-patches via
2023-12-20  3:54 ` [bug#67919] [PATCH 10/55] gnu: rust-uniquote-3: Update to 0.1.11 Jaeme Sifat via Guix-patches via
2023-12-20  3:54 ` [bug#67919] [PATCH 11/55] gnu: Add rust-toml-edit-0.1 Jaeme Sifat via Guix-patches via
2023-12-20  3:54 ` [bug#67919] [PATCH 12/55] gnu: Add rust-rstest-test-0.2 Jaeme Sifat via Guix-patches via
2023-12-20  3:54 ` [bug#67919] [PATCH 13/55] gnu: Add rust-rstest-reuse-0.1 Jaeme Sifat via Guix-patches via
2023-12-20  3:54 ` [bug#67919] [PATCH 14/55] gnu: Add rust-rstest-0.7 Jaeme Sifat via Guix-patches via
2023-12-20  3:54 ` [bug#67919] [PATCH 15/55] gnu: Add rust-rstest-0.8 Jaeme Sifat via Guix-patches via
2023-12-20  3:54 ` [bug#67919] [PATCH 16/55] gnu: Add rust-rstest-0.9 Jaeme Sifat via Guix-patches via
2023-12-20  3:54 ` [bug#67919] [PATCH 17/55] gnu: rust-rstest-0.6: Downgrade to 0.6.4 Jaeme Sifat via Guix-patches via
2023-12-20  3:54 ` [bug#67919] [PATCH 18/55] gnu: Add rust-rstest-test-0.9 Jaeme Sifat via Guix-patches via
2023-12-20  3:54 ` [bug#67919] [PATCH 19/55] gnu: Add rust-rstest-macros-0.16 Jaeme Sifat via Guix-patches via
2023-12-20  3:54 ` [bug#67919] [PATCH 20/55] gnu: Add rust-rstest-0.16 Jaeme Sifat via Guix-patches via
2023-12-20  3:54 ` [bug#67919] [PATCH 21/55] gnu: Add rust-rstest-test-0.11 Jaeme Sifat via Guix-patches via
2023-12-20  3:54 ` [bug#67919] [PATCH 22/55] gnu: Add rust-rstest-macros-0.18 Jaeme Sifat via Guix-patches via
2023-12-20  3:54 ` [bug#67919] [PATCH 23/55] gnu: Add rust-rstest-0.18 Jaeme Sifat via Guix-patches via
2023-12-20  3:54 ` [bug#67919] [PATCH 24/55] gnu: rust-time-core-0.1: Update to 0.1.2 Jaeme Sifat via Guix-patches via
2023-12-20  3:54 ` [bug#67919] [PATCH 25/55] gnu: rust-time-macros-0.2: Update to 0.2.15 Jaeme Sifat via Guix-patches via
2023-12-20  3:54 ` [bug#67919] [PATCH 26/55] gnu: rust-time-0.3: Update to 0.3.30 Jaeme Sifat via Guix-patches via
2023-12-20  3:54 ` [bug#67919] [PATCH 27/55] gnu: Add rust-quick-xml-0.31 Jaeme Sifat via Guix-patches via
2023-12-20  3:54 ` [bug#67919] [PATCH 28/55] gnu: Add rust-elain-0.3 Jaeme Sifat via Guix-patches via
2023-12-20  3:54 ` [bug#67919] [PATCH 29/55] gnu: Add rust-zerocopy-derive-0.7 Jaeme Sifat via Guix-patches via
2023-12-20  3:54 ` [bug#67919] [PATCH 30/55] gnu: rust-zerocopy-derive-0.3: Add build step Jaeme Sifat via Guix-patches via
2023-12-20  3:54 ` [bug#67919] [PATCH 31/55] gnu: rust-zerocopy-derive-0.2: Downgrade to 0.2.0 Jaeme Sifat via Guix-patches via
2023-12-20  3:54 ` [bug#67919] [PATCH 32/55] gnu: Add rust-zerocopy-0.7 Jaeme Sifat via Guix-patches via
2023-12-20  3:54 ` [bug#67919] [PATCH 33/55] gnu: rust-ahash-0.8: Update to 0.8.6 Jaeme Sifat via Guix-patches via
2023-12-20  3:54 ` [bug#67919] [PATCH 34/55] gnu: rust-hashbrown-0.14: Update to 0.14.3 Jaeme Sifat via Guix-patches via
2023-12-20  3:54 ` [bug#67919] [PATCH 35/55] gnu: rust-indexmap-2: Update to 2.1.0 Jaeme Sifat via Guix-patches via
2023-12-20  3:54 ` [bug#67919] [PATCH 36/55] gnu: rust-plist-1: Update to 1.6.0 Jaeme Sifat via Guix-patches via
2023-12-20  3:54 ` [bug#67919] [PATCH 37/55] gnu: rust-percent-encoding-2: Update to 2.3.1 Jaeme Sifat via Guix-patches via
2023-12-20  3:55 ` [bug#67919] [PATCH 38/55] gnu: Add rust-generic-array-0.11 Jaeme Sifat via Guix-patches via
2023-12-20  3:55 ` [bug#67919] [PATCH 39/55] gnu: Add rust-alga-derive-0.7 Jaeme Sifat via Guix-patches via
2023-12-20  3:55 ` [bug#67919] [PATCH 40/55] gnu: Add rust-alga-0.7 Jaeme Sifat via Guix-patches via
2023-12-20  3:55 ` [bug#67919] [PATCH 41/55] gnu: Add rust-abomonation-0.5 Jaeme Sifat via Guix-patches via
2023-12-20  3:55 ` [bug#67919] [PATCH 42/55] gnu: Add rust-nalgebra-0.16 Jaeme Sifat via Guix-patches via
2023-12-20  3:55 ` [bug#67919] [PATCH 43/55] gnu: Add rust-scad-1 Jaeme Sifat via Guix-patches via
2023-12-20  3:55 ` [bug#67919] [PATCH 44/55] gnu: Add rust-rand-mt-4 Jaeme Sifat via Guix-patches via
2023-12-20  3:55 ` [bug#67919] [PATCH 45/55] gnu: Add rust-topology-traits-0.1 Jaeme Sifat via Guix-patches via
2023-12-20  3:55 ` [bug#67919] [PATCH 46/55] gnu: Add rust-assert-float-eq-1 Jaeme Sifat via Guix-patches via
2023-12-20  3:55 ` [bug#67919] [PATCH 47/55] gnu: Add rust-enterpolation-0.2 Jaeme Sifat via Guix-patches via
2023-12-20  3:55 ` [bug#67919] [PATCH 48/55] gnu: Add rust-find-crate-0.6 Jaeme Sifat via Guix-patches via
2023-12-20  3:55 ` [bug#67919] [PATCH 49/55] gnu: Add rust-palette-derive-0.7 Jaeme Sifat via Guix-patches via
2023-12-20  3:55 ` [bug#67919] [PATCH 50/55] gnu: Add rust-fast-srgb8-1 Jaeme Sifat via Guix-patches via
2023-12-20  3:55 ` [bug#67919] [PATCH 51/55] gnu: Add rust-palette-0.7 Jaeme Sifat via Guix-patches via
2023-12-20  3:55 ` [bug#67919] [PATCH 52/55] gnu: rust-once-cell-1: Update to 1.19.0 Jaeme Sifat via Guix-patches via
2023-12-20  3:55 ` [bug#67919] [PATCH 53/55] gnu: eza: Update to 0.17.0 Jaeme Sifat via Guix-patches via
2023-12-20  3:55 ` [bug#67919] [PATCH 54/55] gnu: Remove exa Jaeme Sifat via Guix-patches via
2023-12-20  3:55 ` Jaeme Sifat via Guix-patches via [this message]
2023-12-26 11:45 ` bug#67919: [PATCH 00/55 rust-team] gnu: eza: Update to 0.17.0 Efraim Flashner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=72f385c7d91ab049b73989b3b1ca83c1e4e1b62e.1703044085.git.jaeme@runbox.com \
    --to=guix-patches@gnu.org \
    --cc=67919@debbugs.gnu.org \
    --cc=efraim@flashner.co.il \
    --cc=jaeme@runbox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).