mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 21:38:07 -05:00
gnu: gv: Do not propagate Ghostscript.
* gnu/packages/gv.scm (gv)[propagated-inputs]: Remove. [arguments]: New field. [inputs]: Add GHOSTCRIPT/X.
This commit is contained in:
parent
6d943e553d
commit
fbec5abeef
1 changed files with 20 additions and 3 deletions
|
@ -1,6 +1,6 @@
|
||||||
;;; GNU Guix --- Functional package management for GNU
|
;;; GNU Guix --- Functional package management for GNU
|
||||||
;;; Copyright © 2013 Andreas Enge <andreas@enge.fr>
|
;;; Copyright © 2013 Andreas Enge <andreas@enge.fr>
|
||||||
;;; Copyright © 2013, 2016 Ludovic Courtès <ludo@gnu.org>
|
;;; Copyright © 2013, 2016, 2017 Ludovic Courtès <ludo@gnu.org>
|
||||||
;;; Copyright © 2016 Efraim Flashner <efraim@flashner.co.il>
|
;;; Copyright © 2016 Efraim Flashner <efraim@flashner.co.il>
|
||||||
;;;
|
;;;
|
||||||
;;; This file is part of GNU Guix.
|
;;; This file is part of GNU Guix.
|
||||||
|
@ -40,8 +40,25 @@ (define-public gv
|
||||||
(sha256 (base32
|
(sha256 (base32
|
||||||
"0q8s43z14vxm41pfa8s5h9kyyzk1fkwjhkiwbf2x70alm6rv6qi1"))))
|
"0q8s43z14vxm41pfa8s5h9kyyzk1fkwjhkiwbf2x70alm6rv6qi1"))))
|
||||||
(build-system gnu-build-system)
|
(build-system gnu-build-system)
|
||||||
(propagated-inputs `(("ghostscript" ,ghostscript/x)))
|
(arguments
|
||||||
(inputs `(("libx11" ,libx11)
|
'(#:phases (modify-phases %standard-phases
|
||||||
|
(add-before 'configure 'set-gs-file-name
|
||||||
|
(lambda* (#:key inputs #:allow-other-keys)
|
||||||
|
;; Set the value of 'GV.gsInterpreter' in the generated
|
||||||
|
;; 'gv_system.ad' file.
|
||||||
|
(let ((gs (assoc-ref inputs "ghostscript")))
|
||||||
|
(with-fluids ((%default-port-encoding "ISO-8859-1"))
|
||||||
|
(substitute* "src/Makefile.in"
|
||||||
|
(("GV\\.gsInterpreter:([[:blank:]]+)gs" _ blank)
|
||||||
|
(string-append "GV.gsInterpreter:" blank
|
||||||
|
gs "/bin/gs"))
|
||||||
|
(("GV\\.gsCmd([[:alpha:]]+):([[:blank:]]+)gs" _
|
||||||
|
command blank)
|
||||||
|
(string-append "GV.gsCmd" command ":"
|
||||||
|
blank gs "/bin/gs"))))
|
||||||
|
#t))))))
|
||||||
|
(inputs `(("ghostscript" ,ghostscript/x)
|
||||||
|
("libx11" ,libx11)
|
||||||
("libxaw3d" ,libxaw3d)
|
("libxaw3d" ,libxaw3d)
|
||||||
("libxinerama" ,libxinerama)
|
("libxinerama" ,libxinerama)
|
||||||
("libxpm" ,libxpm)
|
("libxpm" ,libxpm)
|
||||||
|
|
Loading…
Reference in a new issue