~ruther/guix-local

b8058086ed840f2f69eb938daa3e7de68b127cef — Yelninei 8 months ago 7f5c1c6
gnu: libxcb: Use gexps.

* gnu/packages/xorg.scm (libxcb): Use gexps for phases and configure-flags

Change-Id: I762476b35ac366a3df9d289d7a22512fe0328077
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
1 files changed, 15 insertions(+), 13 deletions(-)

M gnu/packages/xorg.scm
M gnu/packages/xorg.scm => gnu/packages/xorg.scm +15 -13
@@ 5189,19 5189,21 @@ protocol.")
    (native-inputs
     (list pkg-config python-minimal-wrapper))
    (arguments
     `(#:configure-flags (list "--enable-xkb"
                               "--disable-static"
                               (string-append "--mandir="
                                              (assoc-ref %outputs "doc")
                                              "/share/man"))
       #:phases ,(if (target-hurd?)
                     '(modify-phases %standard-phases
                        (add-after 'unpack 'fix-PATH_MAX
                          (lambda _
                            ;; Hurd doesn't define PATH_MAX.
                            (substitute* "src/xcb_util.c"
                              (("PATH_MAX") "4096")))))
                     '%standard-phases)))
     (list
      #:configure-flags #~(list "--enable-xkb"
                                "--disable-static"
                                (string-append "--mandir="
                                               (assoc-ref %outputs "doc")
                                               "/share/man"))
       #:phases
       (if (target-hurd?)
           #~(modify-phases %standard-phases
              (add-after 'unpack 'fix-PATH_MAX
                (lambda _
                  ;; Hurd doesn't define PATH_MAX.
                  (substitute* "src/xcb_util.c"
                    (("PATH_MAX") "4096")))))
           #~%standard-phases)))
    (home-page "https://xcb.freedesktop.org/")
    (synopsis "The X C Binding (XCB) library")
    (description