~ruther/guix-local

07cda02c5b6bc44007c1d3f44b7f003b35ac07ec — Efraim Flashner 9 years ago 658c987
gnu: wine: Use 'modify-phases' syntax.

* gnu/packages/wine.scm (wine)[arguments]: Use 'modify-phases' syntax.
1 files changed, 12 insertions(+), 12 deletions(-)

M gnu/packages/wine.scm
M gnu/packages/wine.scm => gnu/packages/wine.scm +12 -12
@@ 118,18 118,18 @@
       (list "SHELL=bash")

       #:phases
       (alist-cons-after
        'configure 'patch-dlopen-paths
        ;; Hardcode dlopened sonames to absolute paths.
        (lambda _
          (let* ((library-path (search-path-as-string->list
                                (getenv "LIBRARY_PATH")))
                 (find-so (lambda (soname)
                            (search-path library-path soname))))
            (substitute* "include/config.h"
              (("(#define SONAME_.* )\"(.*)\"" _ defso soname)
               (format #f "~a\"~a\"" defso (find-so soname))))))
        %standard-phases)))
       (modify-phases %standard-phases
         (add-after 'configure 'patch-dlopen-paths
           ;; Hardcode dlopened sonames to absolute paths.
           (lambda _
             (let* ((library-path (search-path-as-string->list
                                   (getenv "LIBRARY_PATH")))
                    (find-so (lambda (soname)
                               (search-path library-path soname))))
               (substitute* "include/config.h"
                 (("(#define SONAME_.* )\"(.*)\"" _ defso soname)
                  (format #f "~a\"~a\"" defso (find-so soname))))
               #t))))))
    (home-page "https://www.winehq.org/")
    (synopsis "Implementation of the Windows API")
    (description