mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-26 14:28:15 -05:00
gnu: rename: Update to 1.00.
* gnu/packages/admin.scm (rename): Update to 1.00. [arguments]: Wrap executable to find its own library.
This commit is contained in:
parent
4cb4af797a
commit
e6dcf9ca5f
1 changed files with 18 additions and 2 deletions
|
@ -869,7 +869,7 @@ (define-public clusterssh
|
||||||
(define-public rename
|
(define-public rename
|
||||||
(package
|
(package
|
||||||
(name "rename")
|
(name "rename")
|
||||||
(version "0.35")
|
(version "1.00")
|
||||||
(source (origin
|
(source (origin
|
||||||
(method url-fetch)
|
(method url-fetch)
|
||||||
(uri (string-append
|
(uri (string-append
|
||||||
|
@ -877,8 +877,24 @@ (define-public rename
|
||||||
version ".tar.gz"))
|
version ".tar.gz"))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"052iqmn7ya3w1nadpiyavmr3rx566r0lbflx94y8b5wx9q5c16rq"))))
|
"03yhf8nmqsb0zyliv501fdvwlp589jqfn44yqkrflmpzrbik3zxl"))))
|
||||||
(build-system perl-build-system)
|
(build-system perl-build-system)
|
||||||
|
(arguments
|
||||||
|
`(#:phases
|
||||||
|
(modify-phases %standard-phases
|
||||||
|
(add-after 'install 'find-itself
|
||||||
|
;; Fix run-time 'Can't locate File/Rename.pm in @INC' failure.
|
||||||
|
(lambda* (#:key outputs #:allow-other-keys)
|
||||||
|
(let* ((out (assoc-ref outputs "out"))
|
||||||
|
(bin (string-append out "/bin")))
|
||||||
|
(with-directory-excursion bin
|
||||||
|
(for-each
|
||||||
|
(lambda (program)
|
||||||
|
(wrap-program program
|
||||||
|
`("PERL5LIB" ":" prefix
|
||||||
|
(,(string-append out "/lib/perl5/site_perl")))))
|
||||||
|
(find-files "." ".*")))
|
||||||
|
#t))))))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
`(("perl-module-build" ,perl-module-build)
|
`(("perl-module-build" ,perl-module-build)
|
||||||
("perl-test-pod" ,perl-test-pod)
|
("perl-test-pod" ,perl-test-pod)
|
||||||
|
|
Loading…
Reference in a new issue