summaryrefslogtreecommitdiff
path: root/gnu/packages/ghostscript.scm
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/packages/ghostscript.scm')
-rw-r--r--gnu/packages/ghostscript.scm65
1 files changed, 28 insertions, 37 deletions
diff --git a/gnu/packages/ghostscript.scm b/gnu/packages/ghostscript.scm
index ca522e52abe..060fc43a1ac 100644
--- a/gnu/packages/ghostscript.scm
+++ b/gnu/packages/ghostscript.scm
@@ -33,6 +33,7 @@
33 #:use-module (gnu packages cups) 33 #:use-module (gnu packages cups)
34 #:use-module (gnu packages fontutils) 34 #:use-module (gnu packages fontutils)
35 #:use-module (gnu packages image) 35 #:use-module (gnu packages image)
36 #:use-module (gnu packages man)
36 #:use-module (gnu packages perl) 37 #:use-module (gnu packages perl)
37 #:use-module (gnu packages pkg-config) 38 #:use-module (gnu packages pkg-config)
38 #:use-module (gnu packages python) 39 #:use-module (gnu packages python)
@@ -74,45 +75,35 @@ Consortium standard (ICC), approved as ISO 15076-1.")
74 75
75(define-public libpaper 76(define-public libpaper
76 (package 77 (package
77 (name "libpaper") 78 (name "libpaper")
78 (version "1.1.24") 79 (version "1.2.1")
79 (source (origin 80 (source (origin
80 (method url-fetch) 81 (method url-fetch)
81 (uri (string-append 82 (uri (string-append "https://github.com/rrthomas/libpaper/releases"
82 ;; Debian moved their libpaper-1.1.24 to archive.debian.net 83 "/download/v" version "/libpaper-"
83 ;; but in the move the hash of their tarball changed. 84 version ".tar.gz"))
84 "http://pkgs.fedoraproject.org/repo/pkgs/libpaper/libpaper_" 85 (patches (search-patches "libpaper-free-xdg-config-home.patch"
85 version ".tar.gz/5bc87d494ba470aba54f6d2d51471834/libpaper_" 86 "libpaper-free-systempapername.patch"
86 version ".tar.gz")) 87 "libpaper-invalid-paperspecs.patch"))
87 (sha256 (base32 88 (sha256
88 "0zhcx67afb6b5r936w5jmaydj3ks8zh83n9rm5sv3m3k8q8jib1q")))) 89 (base32
89 (build-system gnu-build-system) 90 "18m1yas7lihlyaxr0vpgy65bq9ri429wrm4sfxyhd5gj88gn16lr"))))
90 (native-inputs 91 (build-system gnu-build-system)
91 (list automake)) ; For up to date 'config.guess' and 'config.sub'. 92 (native-inputs
92 (arguments 93 (list help2man))
93 `(#:configure-flags '("--disable-static") 94 (arguments
94 #:phases 95 '(#:configure-flags '("--disable-static"
95 (modify-phases %standard-phases 96 ;; Tests require a relocatable build.
96 (add-after 'unpack 'fix-configure 97 "--enable-relocatable")))
97 (lambda* (#:key inputs native-inputs #:allow-other-keys) 98 (outputs '("out" "debug"))
98 ;; Replace outdated config.sub and config.guess: 99 (home-page "https://github.com/rrthomas/libpaper")
99 (for-each (lambda (file) 100 (synopsis "Library for handling paper sizes")
100 (install-file 101 (description
101 (string-append (assoc-ref 102 "The paper library and accompanying files are intended to provide a simple
102 (or native-inputs inputs) "automake")
103 "/share/automake-"
104 ,(version-major+minor
105 (package-version automake))
106 "/" file) "."))
107 '("config.sub" "config.guess"))
108 #t)))))
109 (synopsis "Library for handling paper sizes")
110 (description
111 "The paper library and accompanying files are intended to provide a simple
112way for applications to take actions based on a system- or user-specified 103way for applications to take actions based on a system- or user-specified
113paper size.") 104paper size.")
114 (license license:gpl2) 105 ;; The library is LGPL3+, everything else GPL3+.
115 (home-page "https://packages.qa.debian.org/libp/libpaper.html"))) 106 (license (list license:lgpl3+ license:gpl3+))))
116 107
117(define-public psutils 108(define-public psutils
118 (package 109 (package