gnu: vifm: Update to 0.9.
* gnu/packages/vim.scm (vifm): Update to 0.9. [source]: Add alternate uri. [arguments]: Remove build timestamp. Add phase to install vim plugins into vim plugin directory. Patch more shebangs.
This commit is contained in:
parent
bda6c35093
commit
1dbd34329b
|
@ -1,6 +1,6 @@
|
||||||
;;; GNU Guix --- Functional package management for GNU
|
;;; GNU Guix --- Functional package management for GNU
|
||||||
;;; Copyright © 2013 Cyril Roelandt <tipecaml@gmail.com>
|
;;; Copyright © 2013 Cyril Roelandt <tipecaml@gmail.com>
|
||||||
;;; Copyright © 2016 Efraim Flashner <efraim@flashner.co.il>
|
;;; Copyright © 2016, 2017 Efraim Flashner <efraim@flashner.co.il>
|
||||||
;;; Copyright © 2016, 2017 ng0 <ng0@no-reply.pragmatique.xyz>
|
;;; Copyright © 2016, 2017 ng0 <ng0@no-reply.pragmatique.xyz>
|
||||||
;;; Copyright © 2017 Ricardo Wurmus <rekado@elephly.net>
|
;;; Copyright © 2017 Ricardo Wurmus <rekado@elephly.net>
|
||||||
;;; Copyright © 2017 Marius Bakke <mbakke@fastmail.com>
|
;;; Copyright © 2017 Marius Bakke <mbakke@fastmail.com>
|
||||||
|
@ -648,23 +648,45 @@ refactor Vim in order to:
|
||||||
(define-public vifm
|
(define-public vifm
|
||||||
(package
|
(package
|
||||||
(name "vifm")
|
(name "vifm")
|
||||||
(version "0.8.2")
|
(version "0.9")
|
||||||
(source
|
(source
|
||||||
(origin
|
(origin
|
||||||
(method url-fetch)
|
(method url-fetch)
|
||||||
(uri (string-append "mirror://sourceforge/vifm/vifm/vifm-"
|
(uri (list
|
||||||
version ".tar.bz2"))
|
(string-append "https://github.com/vifm/vifm/releases/download/v"
|
||||||
|
version "/vifm-" version ".tar.bz2")
|
||||||
|
(string-append "https://sourceforge.net/projects/vifm/files/vifm/"
|
||||||
|
"vifm-" version ".tar.bz2")))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"07r15kq7kjl3a41sd11ncpsii866xxps4f90zh3lv8jqcrv6silb"))))
|
"1zd72vcgir3g9rhs2iyca13qf5fc0b1f22y20f5gy92c3sfwj45b"))))
|
||||||
(build-system gnu-build-system)
|
(build-system gnu-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
'(#:phases
|
'(#:configure-flags '("--disable-build-timestamp")
|
||||||
|
#:phases
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
(add-after 'patch-source-shebangs 'patch-test-shebangs
|
(add-after 'patch-source-shebangs 'patch-test-shebangs
|
||||||
(lambda _
|
(lambda _
|
||||||
(substitute* (find-files "tests" "\\.c$")
|
(substitute* (cons* "src/background.c"
|
||||||
(("/bin/sh") (which "sh")))
|
"src/cfg/config.c"
|
||||||
|
(find-files "tests" "\\.c$"))
|
||||||
|
(("/bin/sh") (which "sh"))
|
||||||
|
(("/bin/bash") (which "bash")))
|
||||||
|
;; This test segfaults
|
||||||
|
(substitute* "tests/Makefile"
|
||||||
|
(("misc") ""))
|
||||||
|
#t))
|
||||||
|
(add-after 'install 'install-vim-plugin-files
|
||||||
|
(lambda* (#:key outputs #:allow-other-keys)
|
||||||
|
(let* ((out (assoc-ref outputs "out"))
|
||||||
|
(vifm (string-append out "/share/vifm"))
|
||||||
|
(vimfiles (string-append out "/share/vim/vimfiles")))
|
||||||
|
(copy-recursively (string-append vifm "/colors")
|
||||||
|
(string-append vimfiles "/colors"))
|
||||||
|
(copy-recursively (string-append vifm "/vim")
|
||||||
|
vimfiles)
|
||||||
|
(delete-file-recursively (string-append vifm "/colors"))
|
||||||
|
(delete-file-recursively (string-append vifm "/vim")))
|
||||||
#t)))))
|
#t)))))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
`(("groff" ,groff) ; for the documentation
|
`(("groff" ,groff) ; for the documentation
|
||||||
|
|
Loading…
Reference in New Issue