1
Fork 0
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:
Janneke Nieuwenhuizen 2023-06-13 12:41:08 +02:00
parent e65647119e
commit 03f35ff390
No known key found for this signature in database
GPG key ID: F3C1A0D9C1D65273
3 changed files with 89 additions and 2 deletions

View file

@ -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