~ruther/guix-local

b28e05d45e9d9485113ad1535b5572f4eab77da5 — Ricardo Wurmus 8 years ago fb6ca49
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.
1 files changed, 8 insertions(+), 1 deletions(-)

M gnu/packages/textutils.scm
M gnu/packages/textutils.scm => gnu/packages/textutils.scm +8 -1
@@ 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))))))))