mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
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.
This commit is contained in:
parent
fb6ca493f1
commit
b28e05d45e
1 changed files with 8 additions and 1 deletions
|
@ -388,7 +388,14 @@ regular expression object can be specified.")
|
||||||
(assoc-ref %outputs "out") "/share/antiword"))
|
(assoc-ref %outputs "out") "/share/antiword"))
|
||||||
#:phases
|
#:phases
|
||||||
(modify-phases %standard-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
|
(replace 'install
|
||||||
(lambda* (#:key make-flags #:allow-other-keys)
|
(lambda* (#:key make-flags #:allow-other-keys)
|
||||||
(zero? (apply system* "make" `("global_install" ,@make-flags))))))))
|
(zero? (apply system* "make" `("global_install" ,@make-flags))))))))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue