gnu: mu: Use 'modify-phases'.

* gnu/packages/mail.scm (mu): Use 'modify-phases'.
This commit is contained in:
Alex Kost 2016-05-08 11:24:19 +03:00
parent 7d0c3c8d01
commit 99404fff9f

View File

@ -13,6 +13,7 @@
;;; Copyright © 2016 Al McElrath <hello@yrns.org> ;;; Copyright © 2016 Al McElrath <hello@yrns.org>
;;; Copyright © 2016 Leo Famulari <leo@famulari.name> ;;; Copyright © 2016 Leo Famulari <leo@famulari.name>
;;; Copyright © 2016 Lukas Gradl <lgradl@openmailbox.org> ;;; Copyright © 2016 Lukas Gradl <lgradl@openmailbox.org>
;;; Copyright © 2016 Alex Kost <alezost@gmail.com>
;;; ;;;
;;; This file is part of GNU Guix. ;;; This file is part of GNU Guix.
;;; ;;;
@ -364,18 +365,18 @@ repository and Maildir/IMAP as LOCAL repository.")
("gmime" ,gmime) ("gmime" ,gmime)
("tzdata" ,tzdata))) ;for mu/test/test-mu-query.c ("tzdata" ,tzdata))) ;for mu/test/test-mu-query.c
(arguments (arguments
'(#:phases (alist-cons-after '(#:phases
'unpack 'autoreconf (modify-phases %standard-phases
(lambda _ (add-after 'unpack 'autoreconf
(zero? (system* "autoreconf" "-vi"))) (lambda _
(alist-cons-before (zero? (system* "autoreconf" "-vi"))))
'check 'check-tz-setup (add-before 'check 'check-tz-setup
(lambda* (#:key inputs #:allow-other-keys) (lambda* (#:key inputs #:allow-other-keys)
;; For mu/test/test-mu-query.c ;; For mu/test/test-mu-query.c
(setenv "TZDIR" (setenv "TZDIR"
(string-append (assoc-ref inputs "tzdata") (string-append (assoc-ref inputs "tzdata")
"/share/zoneinfo"))) "/share/zoneinfo"))
%standard-phases)))) #t)))))
(home-page "http://www.djcbsoftware.nl/code/mu/") (home-page "http://www.djcbsoftware.nl/code/mu/")
(synopsis "Quickly find emails") (synopsis "Quickly find emails")
(description (description