| 1 | |
| 2 | |
| 3 | |
| 4 | |
| 5 | |
| 6 | |
| 7 | |
| 8 | |
| 9 | |
| 10 | |
| 11 | |
| 12 | |
| 13 | |
| 14 | |
| 15 | |
| 16 | |
| 17 | |
| 18 | |
| 19 | |
| 20 |
|
| 21 | (define-module (gnu packages gv)
|
| 22 | #:use-module (gnu packages)
|
| 23 | #:use-module (gnu packages ghostscript)
|
| 24 | #:use-module (gnu packages compression)
|
| 25 | #:use-module (gnu packages pkg-config)
|
| 26 | #:use-module (gnu packages xorg)
|
| 27 | #:use-module ((guix licenses) #:prefix license:)
|
| 28 | #:use-module (guix packages)
|
| 29 | #:use-module (guix download)
|
| 30 | #:use-module (guix gexp)
|
| 31 | #:use-module (guix build-system gnu))
|
| 32 |
|
| 33 | (define-public gv
|
| 34 | (package
|
| 35 | (name "gv")
|
| 36 | (version "3.7.4")
|
| 37 | (source
|
| 38 | (origin
|
| 39 | (method url-fetch)
|
| 40 | (uri (string-append "mirror://gnu/gv/gv-" version ".tar.gz"))
|
| 41 | (sha256
|
| 42 | (base32 "0q8s43z14vxm41pfa8s5h9kyyzk1fkwjhkiwbf2x70alm6rv6qi1"))))
|
| 43 | (build-system gnu-build-system)
|
| 44 | (arguments
|
| 45 | (list
|
| 46 | #:phases
|
| 47 | #~(modify-phases %standard-phases
|
| 48 | (add-before 'configure 'set-gs-file-name
|
| 49 | (lambda* (#:key inputs #:allow-other-keys)
|
| 50 | |
| 51 | |
| 52 | (let ((gs (search-input-file inputs "bin/gs")))
|
| 53 | (with-fluids ((%default-port-encoding "ISO-8859-1"))
|
| 54 | (substitute* "src/Makefile.in"
|
| 55 | (("GV\\.gsInterpreter:([[:blank:]]+)gs" _match
|
| 56 | blank)
|
| 57 | (string-append "GV.gsInterpreter:" blank gs))
|
| 58 | (("GV\\.gsCmd([[:alpha:]]+):([[:blank:]]+)gs"
|
| 59 | _match command blank)
|
| 60 | (string-append "GV.gsCmd" command ":" blank gs))))))))))
|
| 61 | (inputs
|
| 62 | (list ghostscript/x
|
| 63 | libx11
|
| 64 | libxaw3d
|
| 65 | libxinerama
|
| 66 | libxpm
|
| 67 | zlib))
|
| 68 | (native-inputs
|
| 69 | (list pkg-config))
|
| 70 | (home-page "https://www.gnu.org/software/gv/")
|
| 71 | (synopsis "PostScript and PDF viewer using Ghostscript as a back-end")
|
| 72 | (description
|
| 73 | "GNU GV is a graphical user interface to the Ghostscript interpreter.
|
| 74 | With it, one can view and navigate through PostScript and PDF documents in X
|
| 75 | Windows.")
|
| 76 | (license license:gpl3+)))
|