gnu: autojump: Update to 22.5.1.
* gnu/packages/admin.scm (autojump): Update to 22.5.1. [arguments]: Use 'invoke' in 'check' phase. Rewrite 'install' phase for the updated installation script.
This commit is contained in:
parent
bf5e9bfcf9
commit
eb9dda9c83
|
@ -1651,7 +1651,7 @@ limits.")
|
||||||
(define-public autojump
|
(define-public autojump
|
||||||
(package
|
(package
|
||||||
(name "autojump")
|
(name "autojump")
|
||||||
(version "22.3.4")
|
(version "22.5.1")
|
||||||
(source
|
(source
|
||||||
(origin
|
(origin
|
||||||
(method url-fetch)
|
(method url-fetch)
|
||||||
|
@ -1660,7 +1660,7 @@ limits.")
|
||||||
(file-name (string-append name "-" version ".tar.gz"))
|
(file-name (string-append name "-" version ".tar.gz"))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"113rcpr37ngf2xs8da41qdarq5qmj0dwx8ggqy3lhlb0kvqq7g9z"))))
|
"17z9j9936x0nizwrzf664bngh60x5qbvrrf1s5qdzd0f2gdanpvn"))))
|
||||||
(build-system gnu-build-system)
|
(build-system gnu-build-system)
|
||||||
(native-inputs ;for tests
|
(native-inputs ;for tests
|
||||||
`(("python-mock" ,python-mock)
|
`(("python-mock" ,python-mock)
|
||||||
|
@ -1668,36 +1668,19 @@ limits.")
|
||||||
(inputs
|
(inputs
|
||||||
`(("python" ,python-wrapper)))
|
`(("python" ,python-wrapper)))
|
||||||
(arguments
|
(arguments
|
||||||
`(#:phases (modify-phases %standard-phases
|
`(#:phases
|
||||||
|
(modify-phases %standard-phases
|
||||||
(delete 'configure)
|
(delete 'configure)
|
||||||
(delete 'build)
|
(delete 'build)
|
||||||
(replace 'check
|
(replace 'check
|
||||||
(lambda _
|
(lambda _
|
||||||
(zero?
|
(invoke "python" "tests/unit/autojump_utils_test.py")))
|
||||||
(system* "python" "tests/unit/autojump_utils_test.py"))))
|
|
||||||
(replace 'install
|
(replace 'install
|
||||||
;; The install.py script doesn't allow system installation
|
|
||||||
;; into an arbitrary prefix, so do our own install.
|
|
||||||
(lambda* (#:key outputs #:allow-other-keys)
|
(lambda* (#:key outputs #:allow-other-keys)
|
||||||
(let* ((out (assoc-ref outputs "out"))
|
(setenv "SHELL" (which "bash"))
|
||||||
(bin (string-append out "/bin"))
|
(invoke "python" "install.py"
|
||||||
(share (string-append out "/share/autojump"))
|
(string-append "--destdir="
|
||||||
(py (string-append out "/lib/python"
|
(assoc-ref outputs "out"))))))))
|
||||||
,(version-major+minor
|
|
||||||
(package-version python-wrapper))
|
|
||||||
"/site-packages"))
|
|
||||||
(man (string-append out "/share/man/man1")))
|
|
||||||
(install-file "bin/autojump" bin)
|
|
||||||
(for-each (λ (f) (install-file f py))
|
|
||||||
(find-files "bin" "\\.py$"))
|
|
||||||
(for-each (λ (f) (install-file f share))
|
|
||||||
(find-files "bin" "autojump\\..*$"))
|
|
||||||
(substitute* (string-append share "/autojump.sh")
|
|
||||||
(("/usr/local") out))
|
|
||||||
(install-file "docs/autojump.1" man)
|
|
||||||
(wrap-program (string-append bin "/autojump")
|
|
||||||
`("PYTHONPATH" ":" prefix (,py)))
|
|
||||||
#t))))))
|
|
||||||
(home-page "https://github.com/wting/autojump")
|
(home-page "https://github.com/wting/autojump")
|
||||||
(synopsis "Shell extension for file system navigation")
|
(synopsis "Shell extension for file system navigation")
|
||||||
(description
|
(description
|
||||||
|
|
Loading…
Reference in New Issue