guix-commits
[Top][All Lists]
Advanced

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

01/05: gnu: antiword: Fix broken embedded directory name.


From: Ricardo Wurmus
Subject: 01/05: gnu: antiword: Fix broken embedded directory name.
Date: Tue, 19 Dec 2017 07:17:27 -0500 (EST)

rekado pushed a commit to branch master
in repository guix.

commit b28e05d45e9d9485113ad1535b5572f4eab77da5
Author: Ricardo Wurmus <address@hidden>
Date:   Tue Dec 19 08:34:45 2017 +0100

    gnu: antiword: Fix broken embedded directory name.
    
    * gnu/packages/textutils.scm (antiword)[arguments]: Replace "configure" 
phase
    to substitute reference to "/usr/share/antiword" with the actual directory 
in
    the store.
---
 gnu/packages/textutils.scm | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/textutils.scm b/gnu/packages/textutils.scm
index 674a350..2fb1d14 100644
--- a/gnu/packages/textutils.scm
+++ b/gnu/packages/textutils.scm
@@ -388,7 +388,14 @@ regular expression object can be specified.")
                             (assoc-ref %outputs "out") "/share/antiword"))
        #:phases
        (modify-phases %standard-phases
-         (delete 'configure)
+         (replace 'configure
+           (lambda* (#:key outputs #:allow-other-keys)
+             ;; Ensure that mapping files can be found in the actual package
+             ;; data directory.
+             (substitute* "antiword.h"
+               (("/usr/share/antiword")
+                (string-append (assoc-ref outputs "out") "/share/antiword")))
+             #t))
          (replace 'install
            (lambda* (#:key make-flags #:allow-other-keys)
              (zero? (apply system* "make" `("global_install" 
,@make-flags))))))))



reply via email to

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