guix-commits
[Top][All Lists]
Advanced

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

03/04: gnu: mg: Add new phase to find 'diff'.


From: Ludovic Courtès
Subject: 03/04: gnu: mg: Add new phase to find 'diff'.
Date: Wed, 26 Jul 2017 17:14:32 -0400 (EDT)

civodul pushed a commit to branch master
in repository guix.

commit 217ce5702cde1543cfc56727c1ca3bb3f9dbc5a5
Author: ng0 <address@hidden>
Date:   Wed Jul 26 14:24:56 2017 +0000

    gnu: mg: Add new phase to find 'diff'.
    
    * gnu/packages/text-editors.scm (mg)[phases]: Add new 
'correct-location-of-difftool'.
    
    Signed-off-by: Ludovic Courtès <address@hidden>
---
 gnu/packages/text-editors.scm | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/gnu/packages/text-editors.scm b/gnu/packages/text-editors.scm
index 7357df7..7843c12 100644
--- a/gnu/packages/text-editors.scm
+++ b/gnu/packages/text-editors.scm
@@ -261,6 +261,12 @@ Wordstar-, EMACS-, Pico, Nedit or vi-like key bindings.  
e3 can be used on
                           "CC=gcc")
        #:phases (modify-phases %standard-phases
                   (delete 'configure)
+                  (add-before 'build 'correct-location-of-difftool
+                    (lambda _
+                      (substitute* "buffer.c"
+                        (("/usr/bin/diff")
+                         (which "diff")))
+                      #t))
                   (add-before 'install 'patch-tutorial-location
                     (lambda* (#:key outputs #:allow-other-keys)
                       (substitute* "mg.1"



reply via email to

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