mirror of
https://https.git.savannah.gnu.org/git/guix.git/
synced 2025-07-16 20:10:39 +02:00
gnu: ghostscript: Fix build for the Hurd.
* gnu/packages/patches/ghostscript-leptonica-hurd.patch: New file. * gnu/local.mk (dist_patch_DATA): Add it. * gnu/packages/ghostscript.scm (ghostscript)[arguments]: When building for the Hurd, add phase 'patch-leptonica' and use it.
This commit is contained in:
parent
e65647119e
commit
03f35ff390
3 changed files with 89 additions and 2 deletions
|
@ -201,6 +201,16 @@ printing, and psresize, for adjusting page sizes.")
|
|||
'()))
|
||||
#:phases
|
||||
#~(modify-phases %standard-phases
|
||||
#$@(if (target-hurd?)
|
||||
#~((add-after 'unpack 'patch-leptonica
|
||||
(lambda _
|
||||
(let ((patch-file
|
||||
#$(local-file
|
||||
(search-patch
|
||||
"ghostscript-leptonica-hurd.patch"))))
|
||||
(with-directory-excursion "leptonica"
|
||||
(invoke "patch" "--force" "-p1" "-i" patch-file))))))
|
||||
#~())
|
||||
(add-before 'configure 'create-output-directory
|
||||
(lambda _
|
||||
;; The configure script refuses to function if the directory
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue