[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#45293] [PATCH] gnu: Add skim.
From: |
John Soo |
Subject: |
[bug#45293] [PATCH] gnu: Add skim. |
Date: |
Sun, 24 Jan 2021 10:46:07 -0800 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) |
Hello,
I made some patches for skim also. Yours look good but there are some
extras not installed. In particular the manpages, vim plugins and shell
completions are missing. Can you add something like the following to the
#:phases part of the arguments?
(modify-phases %standard-phases
(add-after 'install 'install-extras
(lambda* (#:key outputs #:allow-other-keys)
(let* ((out (assoc-ref outputs "out"))
(bin (string-append out "/bin"))
(share (string-append out "/share"))
(man (string-append out "/share/man"))
(vimfiles (string-append share "/vim/vimfiles/plugin"))
(bash-completion (string-append share
"/bash-completions/completions"))
(zsh-site (string-append share "/zsh/site-functions"))
(fish-vendor (string-append share "/fish/vendor-completions.d")))
;; Binaries
(for-each
(lambda (binary) (install-file binary bin))
(find-files "bin"))
(mkdir-p share)
;; Manpages
(copy-recursively "man" man)
;; Vim plugins
(mkdir-p vimfiles)
(copy-recursively "plugin" vimfiles)
;; Completions
(mkdir-p bash-completion)
(copy-file
"shell/completion.bash"
(string-append bash-completion "/skim"))
(copy-file
"shell/key-bindings.bash"
(string-append bash-completion "/skim-bindings"))
(mkdir-p zsh-site)
(copy-file
"shell/completion.zsh"
(string-append zsh-site "/_skim"))
(copy-file
"shell/key-bindings.zsh"
(string-append zsh-site "/_skim-bindings"))
(mkdir-p fish-vendor)
(copy-file
"shell/key-bindings.fish"
(string-append fish-vendor "/skim-bindings.fish"))))))
Thanks!
John
- [bug#45293] [PATCH] gnu: Add skim.,
John Soo <=