utils: 'modify-phases' no longer introduces quotes.

Suggested by Taylan Ulrich Bayırlı/Kammer <taylanbayirli@gmail.com>.

* guix/build/utils.scm (%modify-phases): Remove quotes.
* guix/build/cmake-build-system.scm (%standard-phases): Adjust
  accordingly.
* guix/build/glib-or-gtk-build-system.scm (%standard-phases): Likewise.
* guix/build/gnu-dist.scm (%dist-phases): Likewise.
* guix/build/perl-build-system.scm (%standard-phases): Likewise.
* guix/build/python-build-system.scm (%standard-phases): Likewise.
* guix/build/ruby-build-system.scm (%standard-phases): Likewise.
* guix/build/waf-build-system.scm (%standard-phases): Likewise.
* gnu/packages/bash.scm, gnu/packages/code.scm, gnu/packages/gl.scm,
  gnu/packages/gnome.scm, gnu/packages/graphics.scm,
  gnu/packages/image.scm, gnu/packages/key-mon.scm,
  gnu/packages/ocr.scm, gnu/packages/plotutils.scm,
  gnu/packages/search.scm, gnu/packages/video.scm: Likewise.
This commit is contained in:
Ludovic Courtès 2015-03-31 22:43:01 +02:00
parent 023dd28a30
commit f8503e2b25
19 changed files with 62 additions and 62 deletions

View file

@ -193,8 +193,8 @@ (define-public bash
#:tests? #f #:tests? #f
#:phases (modify-phases %standard-phases #:phases (modify-phases %standard-phases
(add-after install post-install ,post-install-phase) (add-after 'install 'post-install ,post-install-phase)
(add-after install install-headers (add-after 'install 'install-headers
,install-headers-phase)))) ,install-headers-phase))))
(synopsis "The GNU Bourne-Again SHell") (synopsis "The GNU Bourne-Again SHell")
(description (description

View file

@ -142,8 +142,8 @@ (define-public sloccount
(build-system gnu-build-system) (build-system gnu-build-system)
(arguments (arguments
'(#:phases (modify-phases %standard-phases '(#:phases (modify-phases %standard-phases
(delete configure) (delete 'configure)
(add-before build make-dotl-files-older (add-before 'build 'make-dotl-files-older
(lambda _ (lambda _
;; Make the '.l' files as old as the '.c' ;; Make the '.l' files as old as the '.c'
;; files to avoid triggering the rule that ;; files to avoid triggering the rule that
@ -155,7 +155,7 @@ (define ref
(set-file-time file ref)) (set-file-time file ref))
(find-files "." "\\.[chl]$")) (find-files "." "\\.[chl]$"))
#t)) #t))
(add-before install make-target-directories (add-before 'install 'make-target-directories
(lambda* (#:key outputs #:allow-other-keys) (lambda* (#:key outputs #:allow-other-keys)
(let ((out (assoc-ref outputs "out"))) (let ((out (assoc-ref outputs "out")))
(mkdir-p (string-append out "/bin")) (mkdir-p (string-append out "/bin"))
@ -163,7 +163,7 @@ (define ref
"/share/man/man1")) "/share/man/man1"))
(mkdir-p (string-append out (mkdir-p (string-append out
"/share/doc"))))) "/share/doc")))))
(replace check (replace 'check
(lambda _ (lambda _
(setenv "HOME" (getcwd)) (setenv "HOME" (getcwd))
(setenv "PATH" (setenv "PATH"

View file

@ -149,7 +149,7 @@ (define-public s2tc
(arguments (arguments
'(#:phases '(#:phases
(modify-phases %standard-phases (modify-phases %standard-phases
(add-after unpack autogen (add-after 'unpack 'autogen
(lambda _ (lambda _
(zero? (system* "sh" "autogen.sh"))))))) (zero? (system* "sh" "autogen.sh")))))))
(home-page "https://github.com/divVerent/s2tc") (home-page "https://github.com/divVerent/s2tc")
@ -282,10 +282,10 @@ (define-public mesa-headers
(arguments (arguments
'(#:phases '(#:phases
(modify-phases %standard-phases (modify-phases %standard-phases
(delete configure) (delete 'configure)
(delete build) (delete 'build)
(delete check) (delete 'check)
(replace install (replace 'install
(lambda* (#:key outputs #:allow-other-keys) (lambda* (#:key outputs #:allow-other-keys)
(copy-recursively "include" (string-append (copy-recursively "include" (string-append
(assoc-ref outputs "out") (assoc-ref outputs "out")
@ -318,7 +318,7 @@ (define-public mesa-utils
'(#:phases '(#:phases
(modify-phases %standard-phases (modify-phases %standard-phases
(replace (replace
install 'install
(lambda* (#:key outputs #:allow-other-keys) (lambda* (#:key outputs #:allow-other-keys)
(let ((out (assoc-ref outputs "out"))) (let ((out (assoc-ref outputs "out")))
(mkdir-p (string-append out "/bin")) (mkdir-p (string-append out "/bin"))

View file

@ -1639,11 +1639,11 @@ (define-public gnome-mines
(arguments (arguments
'(#:phases '(#:phases
(modify-phases %standard-phases (modify-phases %standard-phases
(add-before configure patch-/bin/true (add-before 'configure 'patch-/bin/true
(lambda _ (lambda _
(substitute* "configure" (substitute* "configure"
(("/bin/true") (which "true"))))) (("/bin/true") (which "true")))))
(add-after install wrap-pixbuf (add-after 'install 'wrap-pixbuf
;; Use librsvg's loaders.cache to support SVG files. ;; Use librsvg's loaders.cache to support SVG files.
(lambda* (#:key inputs outputs #:allow-other-keys) (lambda* (#:key inputs outputs #:allow-other-keys)
(let* ((out (assoc-ref outputs "out")) (let* ((out (assoc-ref outputs "out"))

View file

@ -181,14 +181,14 @@ (define-public brdf-explorer
(build-system gnu-build-system) (build-system gnu-build-system)
(arguments (arguments
`(#:phases (modify-phases %standard-phases `(#:phases (modify-phases %standard-phases
(replace configure (replace 'configure
(lambda* (#:key outputs #:allow-other-keys) (lambda* (#:key outputs #:allow-other-keys)
(let ((out (assoc-ref outputs "out"))) (let ((out (assoc-ref outputs "out")))
(chdir "trunk") (chdir "trunk")
(zero? (system* "qmake" (zero? (system* "qmake"
(string-append (string-append
"prefix=" out)))))) "prefix=" out))))))
(add-after install wrap-program (add-after 'install 'wrap-program
(lambda* (#:key outputs #:allow-other-keys) (lambda* (#:key outputs #:allow-other-keys)
(let* ((out (assoc-ref outputs "out")) (let* ((out (assoc-ref outputs "out"))
(bin (string-append out "/bin")) (bin (string-append out "/bin"))

View file

@ -204,11 +204,11 @@ (define-public leptonica
(modify-phases %standard-phases (modify-phases %standard-phases
;; Prevent make from trying to regenerate config.h.in. ;; Prevent make from trying to regenerate config.h.in.
(add-after (add-after
unpack set-config-h-in-file-time 'unpack 'set-config-h-in-file-time
(lambda _ (lambda _
(set-file-time "config/config.h.in" (stat "configure")))) (set-file-time "config/config.h.in" (stat "configure"))))
(add-after (add-after
unpack patch-reg-wrapper 'unpack 'patch-reg-wrapper
(lambda _ (lambda _
(substitute* "prog/reg_wrapper.sh" (substitute* "prog/reg_wrapper.sh"
((" /bin/sh ") ((" /bin/sh ")

View file

@ -42,7 +42,7 @@ (define-public key-mon
(arguments (arguments
`(#:python ,python-2 ;uses the Python 2 'print' syntax `(#:python ,python-2 ;uses the Python 2 'print' syntax
#:phases (modify-phases %standard-phases #:phases (modify-phases %standard-phases
(add-after install wrap (add-after 'install 'wrap
(lambda* (#:key inputs outputs #:allow-other-keys) (lambda* (#:key inputs outputs #:allow-other-keys)
(let* ((out (assoc-ref outputs "out")) (let* ((out (assoc-ref outputs "out"))
(bin (string-append out "/bin")) (bin (string-append out "/bin"))

View file

@ -76,7 +76,7 @@ (define-public tesseract-ocr
'(#:phases '(#:phases
(modify-phases %standard-phases (modify-phases %standard-phases
(add-after (add-after
unpack autogen 'unpack 'autogen
(lambda _ (lambda _
(zero? (system* "sh" "autogen.sh"))))) (zero? (system* "sh" "autogen.sh")))))
#:configure-flags #:configure-flags

View file

@ -118,13 +118,13 @@ (define-public ploticus
'(#:tests? #f '(#:tests? #f
#:phases #:phases
(modify-phases %standard-phases (modify-phases %standard-phases
(replace configure (lambda _ (chdir "src"))) (replace 'configure (lambda _ (chdir "src")))
(add-before install make-target-directories (add-before 'install 'make-target-directories
(lambda* (#:key outputs #:allow-other-keys) (lambda* (#:key outputs #:allow-other-keys)
(let ((out (assoc-ref outputs "out"))) (let ((out (assoc-ref outputs "out")))
(mkdir-p (string-append out "/bin")) (mkdir-p (string-append out "/bin"))
#t))) #t)))
(add-after install install-prefabs (add-after 'install 'install-prefabs
(lambda* (#:key outputs #:allow-other-keys) (lambda* (#:key outputs #:allow-other-keys)
(let* ((out (assoc-ref outputs "out")) (let* ((out (assoc-ref outputs "out"))
(dir (string-append out (dir (string-append out

View file

@ -76,10 +76,10 @@ (define-public libtocc
(arguments (arguments
`(#:phases (modify-phases %standard-phases `(#:phases (modify-phases %standard-phases
(add-before (add-before
configure chdir-source 'configure 'chdir-source
(lambda _ (chdir "libtocc/src"))) (lambda _ (chdir "libtocc/src")))
(replace (replace
check 'check
(lambda _ (lambda _
(with-directory-excursion "../tests" (with-directory-excursion "../tests"
(and (zero? (system* "./configure" (and (zero? (system* "./configure"
@ -113,7 +113,7 @@ (define-public tocc
`(#:tests? #f ;No tests `(#:tests? #f ;No tests
#:phases (modify-phases %standard-phases #:phases (modify-phases %standard-phases
(add-after (add-after
unpack chdir-source 'unpack 'chdir-source
(lambda _ (chdir "cli/src")))))) (lambda _ (chdir "cli/src"))))))
(home-page "http://t-o-c-c.com/") (home-page "http://t-o-c-c.com/")
(synopsis "Command-line interface to libtocc") (synopsis "Command-line interface to libtocc")

View file

@ -738,12 +738,12 @@ (define-public mpv
'(#:phases '(#:phases
(modify-phases %standard-phases (modify-phases %standard-phases
(add-before (add-before
configure setup-waf 'configure 'setup-waf
(lambda* (#:key inputs #:allow-other-keys) (lambda* (#:key inputs #:allow-other-keys)
(copy-file (assoc-ref inputs "waf") "waf") (copy-file (assoc-ref inputs "waf") "waf")
(setenv "CC" "gcc"))) (setenv "CC" "gcc")))
(add-before (add-before
configure patch-wscript 'configure 'patch-wscript
(lambda* (#:key inputs #:allow-other-keys) (lambda* (#:key inputs #:allow-other-keys)
(substitute* "wscript" (substitute* "wscript"
;; XXX Remove this when our Samba package provides a .pc file. ;; XXX Remove this when our Samba package provides a .pc file.
@ -1219,7 +1219,7 @@ (define-public vapoursynth
'(#:phases '(#:phases
(modify-phases %standard-phases (modify-phases %standard-phases
(add-after (add-after
unpack autogen 'unpack 'autogen
(lambda _ (lambda _
(zero? (system* "sh" "autogen.sh"))))))) (zero? (system* "sh" "autogen.sh")))))))
(home-page "http://www.vapoursynth.com/") (home-page "http://www.vapoursynth.com/")

View file

@ -73,8 +73,8 @@ (define %standard-phases
;; Everything is as with the GNU Build System except for the `configure' ;; Everything is as with the GNU Build System except for the `configure'
;; and 'check' phases. ;; and 'check' phases.
(modify-phases gnu:%standard-phases (modify-phases gnu:%standard-phases
(replace check check) (replace 'check check)
(replace configure configure))) (replace 'configure configure)))
(define* (cmake-build #:key inputs (phases %standard-phases) (define* (cmake-build #:key inputs (phases %standard-phases)
#:allow-other-keys #:rest args) #:allow-other-keys #:rest args)

View file

@ -240,9 +240,9 @@ (define* (generate-icon-cache #:key outputs #:allow-other-keys)
(define %standard-phases (define %standard-phases
(modify-phases gnu:%standard-phases (modify-phases gnu:%standard-phases
(add-after install glib-or-gtk-compile-schemas compile-glib-schemas) (add-after 'install 'glib-or-gtk-compile-schemas compile-glib-schemas)
(add-after install glib-or-gtk-icon-cache generate-icon-cache) (add-after 'install 'glib-or-gtk-icon-cache generate-icon-cache)
(add-after install glib-or-gtk-wrap wrap-all-programs))) (add-after 'install 'glib-or-gtk-wrap wrap-all-programs)))
(define* (glib-or-gtk-build #:key inputs (phases %standard-phases) (define* (glib-or-gtk-build #:key inputs (phases %standard-phases)
#:allow-other-keys #:rest args) #:allow-other-keys #:rest args)

View file

@ -83,10 +83,10 @@ (define* (install-dist #:key outputs #:allow-other-keys)
(define %dist-phases (define %dist-phases
;; Phases for building a source tarball. ;; Phases for building a source tarball.
(modify-phases %standard-phases (modify-phases %standard-phases
(delete strip) (delete 'strip)
(replace install install-dist) (replace 'install install-dist)
(replace build build) (replace 'build build)
(add-before configure autoreconf autoreconf) (add-before 'configure 'autoreconf autoreconf)
(replace unpack copy-source))) (replace 'unpack copy-source)))
;;; gnu-dist.scm ends here ;;; gnu-dist.scm ends here

View file

@ -72,10 +72,10 @@ (define %standard-phases
;; Everything is as with the GNU Build System except for the `configure', ;; Everything is as with the GNU Build System except for the `configure',
;; `build', `check', and `install' phases. ;; `build', `check', and `install' phases.
(modify-phases gnu:%standard-phases (modify-phases gnu:%standard-phases
(replace install install) (replace 'install install)
(replace check check) (replace 'check check)
(replace build build) (replace 'build build)
(replace configure configure))) (replace 'configure configure)))
(define* (perl-build #:key inputs (phases %standard-phases) (define* (perl-build #:key inputs (phases %standard-phases)
#:allow-other-keys #:rest args) #:allow-other-keys #:rest args)

View file

@ -123,12 +123,12 @@ (define %standard-phases
;; 'configure' and 'build' phases are not needed. Everything is done during ;; 'configure' and 'build' phases are not needed. Everything is done during
;; 'install'. ;; 'install'.
(modify-phases gnu:%standard-phases (modify-phases gnu:%standard-phases
(delete configure) (delete 'configure)
(replace install install) (replace 'install install)
(replace check check) (replace 'check check)
(replace build build) (replace 'build build)
(add-after install wrap wrap) (add-after 'install 'wrap wrap)
(add-before strip rename-pth-file rename-pth-file))) (add-before 'strip 'rename-pth-file rename-pth-file)))
(define* (python-build #:key inputs (phases %standard-phases) (define* (python-build #:key inputs (phases %standard-phases)
#:allow-other-keys #:rest args) #:allow-other-keys #:rest args)

View file

@ -72,11 +72,11 @@ (define* (install #:key source inputs outputs #:allow-other-keys)
(define %standard-phases (define %standard-phases
(modify-phases gnu:%standard-phases (modify-phases gnu:%standard-phases
(delete configure) (delete 'configure)
(add-after unpack gitify gitify) (add-after 'unpack 'gitify gitify)
(replace build build) (replace 'build build)
(replace install install) (replace 'install install)
(replace check check))) (replace 'check check)))
(define* (ruby-build #:key inputs (phases %standard-phases) (define* (ruby-build #:key inputs (phases %standard-phases)
#:allow-other-keys #:rest args) #:allow-other-keys #:rest args)

View file

@ -446,13 +446,13 @@ (define-syntax-rule (modify-phases phases mod-spec ...)
(define-syntax %modify-phases (define-syntax %modify-phases
(syntax-rules (delete replace add-before add-after) (syntax-rules (delete replace add-before add-after)
((_ phases (delete old-phase-name)) ((_ phases (delete old-phase-name))
(alist-delete 'old-phase-name phases)) (alist-delete old-phase-name phases))
((_ phases (replace old-phase-name new-phase)) ((_ phases (replace old-phase-name new-phase))
(alist-replace 'old-phase-name new-phase phases)) (alist-replace old-phase-name new-phase phases))
((_ phases (add-before old-phase-name new-phase-name new-phase)) ((_ phases (add-before old-phase-name new-phase-name new-phase))
(alist-cons-before 'old-phase-name 'new-phase-name new-phase phases)) (alist-cons-before old-phase-name new-phase-name new-phase phases))
((_ phases (add-after old-phase-name new-phase-name new-phase)) ((_ phases (add-after old-phase-name new-phase-name new-phase))
(alist-cons-after 'old-phase-name 'new-phase-name new-phase phases)))) (alist-cons-after old-phase-name new-phase-name new-phase phases))))
;;; ;;;

View file

@ -70,10 +70,10 @@ (define* (install #:key outputs inputs (configure-flags '())
(define %standard-phases (define %standard-phases
(modify-phases gnu:%standard-phases (modify-phases gnu:%standard-phases
(replace configure configure) (replace 'configure configure)
(replace build build) (replace 'build build)
(replace check check) (replace 'check check)
(replace install install))) (replace 'install install)))
(define* (waf-build #:key inputs (phases %standard-phases) (define* (waf-build #:key inputs (phases %standard-phases)
#:allow-other-keys #:rest args) #:allow-other-keys #:rest args)