summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2023-04-10 23:14:25 +0300
committerEfraim Flashner <efraim@flashner.co.il>2023-04-10 23:23:15 +0300
commit49cbc18334f2e90c03d2ed8f96f3bb8fa00725df (patch)
treef433942314dbfc2e0c861fe4148edf2f774e904c
parent9def25b458da4a749fd9a7c3db1446a5362a2f9b (diff)
gnu: ijs: Fix cross-building to riscv64-linux.
* gnu/packages/ghostscript.scm (ijs)[arguments]: When building for riscv64-linux replace config.guess and config.sub. [native-inputs]: When building for riscv64-linux add config.
-rw-r--r--gnu/packages/ghostscript.scm19
1 files changed, 16 insertions, 3 deletions
diff --git a/gnu/packages/ghostscript.scm b/gnu/packages/ghostscript.scm
index 55f3ab9364b..dfd43d8ed01 100644
--- a/gnu/packages/ghostscript.scm
+++ b/gnu/packages/ghostscript.scm
@@ -4,7 +4,7 @@
4;;; Copyright © 2015 Ricardo Wurmus <rekado@elephly.net> 4;;; Copyright © 2015 Ricardo Wurmus <rekado@elephly.net>
5;;; Copyright © 2013, 2015, 2016, 2017, 2019 Ludovic Courtès <ludo@gnu.org> 5;;; Copyright © 2013, 2015, 2016, 2017, 2019 Ludovic Courtès <ludo@gnu.org>
6;;; Copyright © 2017 Alex Vong <alexvong1995@gmail.com> 6;;; Copyright © 2017 Alex Vong <alexvong1995@gmail.com>
7;;; Copyright © 2017, 2018, 2019, 2021 Efraim Flashner <efraim@flashner.co.il> 7;;; Copyright © 2017, 2018, 2019, 2021, 2023 Efraim Flashner <efraim@flashner.co.il>
8;;; Copyright © 2017 Leo Famulari <leo@famulari.name> 8;;; Copyright © 2017 Leo Famulari <leo@famulari.name>
9;;; Copyright © 2018 Tobias Geerinckx-Rice <me@tobias.gr> 9;;; Copyright © 2018 Tobias Geerinckx-Rice <me@tobias.gr>
10;;; Copyright © 2018, 2020 Marius Bakke <mbakke@fastmail.com> 10;;; Copyright © 2018, 2020 Marius Bakke <mbakke@fastmail.com>
@@ -313,7 +313,10 @@ output file formats and printers.")
313 (source (package-source ghostscript)) 313 (source (package-source ghostscript))
314 (build-system gnu-build-system) 314 (build-system gnu-build-system)
315 (native-inputs 315 (native-inputs
316 (list libtool automake autoconf)) 316 (append (if (target-riscv64?)
317 (list config)
318 '())
319 (list libtool automake autoconf)))
317 (arguments 320 (arguments
318 `(#:phases 321 `(#:phases
319 (modify-phases %standard-phases 322 (modify-phases %standard-phases
@@ -331,7 +334,17 @@ output file formats and printers.")
331 (substitute* "autogen.sh" 334 (substitute* "autogen.sh"
332 (("^.*\\$srcdir/configure.*") "") 335 (("^.*\\$srcdir/configure.*") "")
333 (("^ + && echo Now type.*$") "")) 336 (("^ + && echo Now type.*$") ""))
334 (invoke "bash" "autogen.sh")))))) 337 (invoke "bash" "autogen.sh")))
338 ,@(if (target-riscv64?)
339 `((add-after 'unpack 'update-config-scripts
340 (lambda* (#:key native-inputs inputs #:allow-other-keys)
341 (for-each (lambda (file)
342 (install-file
343 (search-input-file
344 (or native-inputs inputs)
345 (string-append "/bin/" file)) "ijs"))
346 '("config.guess" "config.sub")))))
347 '()))))
335 (synopsis "IJS driver framework for inkjet and other raster devices") 348 (synopsis "IJS driver framework for inkjet and other raster devices")
336 (description 349 (description
337 "IJS is a protocol for transmission of raster page images. This package 350 "IJS is a protocol for transmission of raster page images. This package