guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

01/02: gnu: weechat: Use 'modify-phases'.


From: Ludovic Courtès
Subject: 01/02: gnu: weechat: Use 'modify-phases'.
Date: Wed, 18 Nov 2015 16:47:31 +0000

civodul pushed a commit to branch master
in repository guix.

commit e33cf9a69ae20d6d3098a1287d9247b1e32c7402
Author: Ludovic Courtès <address@hidden>
Date:   Wed Nov 18 17:35:14 2015 +0100

    gnu: weechat: Use 'modify-phases'.
    
    * gnu/packages/weechat.scm (weechat)[arguments]: Use 'modify-phases'.
      Remove 'fix-file' phase.
---
 gnu/packages/weechat.scm |   30 ++++++++++++------------------
 1 files changed, 12 insertions(+), 18 deletions(-)

diff --git a/gnu/packages/weechat.scm b/gnu/packages/weechat.scm
index d88ad53..18508dd 100644
--- a/gnu/packages/weechat.scm
+++ b/gnu/packages/weechat.scm
@@ -47,11 +47,11 @@
     (name "weechat")
     (version "1.3")
     (source (origin
-             (method url-fetch)
-             (uri (string-append "http://weechat.org/files/src/weechat-";
+              (method url-fetch)
+              (uri (string-append "http://weechat.org/files/src/weechat-";
                                   version ".tar.gz"))
-             (sha256
-              (base32 
"13b7dfs3sn71c51fi0bli5rzlsppil6gg1lzik3k8l43yhhqyv2w"))))
+              (sha256
+               (base32 
"13b7dfs3sn71c51fi0bli5rzlsppil6gg1lzik3k8l43yhhqyv2w"))))
     (build-system gnu-build-system)
     (native-inputs `(("autoconf" ,autoconf)
                      ("pkg-config" ,pkg-config)
@@ -75,20 +75,14 @@
               ("python" ,python-2)
               ("perl" ,perl)
               ("tcl" ,tcl)))
-    (arguments `(#:configure-flags (list
-                                    (string-append
-                                     "--with-tclconfig="
-                                     (assoc-ref %build-inputs "tcl") "/lib"))
-                 #:phases (alist-cons-after
-                           'autogen 'fix-file
-                           (lambda _
-                             (substitute* "configure"
-                               (("/usr/bin/file") (which "file"))))
-                           (alist-cons-before
-                            'configure 'autogen
-                            (lambda _
-                              (zero? (system* "./autogen.sh")))
-                            %standard-phases))))
+    (arguments
+     `(#:configure-flags (list (string-append
+                                "--with-tclconfig="
+                                (assoc-ref %build-inputs "tcl") "/lib"))
+       #:phases (modify-phases %standard-phases
+                  (add-before 'configure 'autogen
+                    (lambda _
+                      (zero? (system* "./autogen.sh")))))))
     (synopsis "Extensible chat client")
     (description "WeeChat (Wee Enhanced Environment for Chat) is an
 Internet Relay Chat client, which is designed to be light and fast.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]