summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorMarius Bakke <marius@gnu.org>2022-07-06 22:48:05 +0200
committerMarius Bakke <marius@gnu.org>2022-07-16 23:25:18 +0200
commit55e3b5fa2aeed6cb964ba55c001ce9d8610d3e05 (patch)
tree2d0b27ededfa16228efeec94235728209b8f1e02 /gnu
parent12e77c03bcc41c143157d12d75d9b8a94457019d (diff)
gnu: psutils: Update to 2.09.
* gnu/packages/ghostscript.scm (psutils): Update to 2.09. [source](uri): Change to currently maintained fork. [home-page]: Ditto. [native-inputs]: Add LIBPAPER. [arguments]: Remove #:phases. Add #:tests? and #:configure-flags. [license]: Add GPL3+.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/ghostscript.scm68
1 files changed, 33 insertions, 35 deletions
diff --git a/gnu/packages/ghostscript.scm b/gnu/packages/ghostscript.scm
index 060fc43a1ac..f2d23c6e8a7 100644
--- a/gnu/packages/ghostscript.scm
+++ b/gnu/packages/ghostscript.scm
@@ -42,6 +42,7 @@
42 #:use-module ((guix licenses) #:prefix license:) 42 #:use-module ((guix licenses) #:prefix license:)
43 #:use-module (guix packages) 43 #:use-module (guix packages)
44 #:use-module (guix download) 44 #:use-module (guix download)
45 #:use-module (guix gexp)
45 #:use-module (guix utils) 46 #:use-module (guix utils)
46 #:use-module (guix build-system gnu) 47 #:use-module (guix build-system gnu)
47 #:use-module (guix build-system trivial) 48 #:use-module (guix build-system trivial)
@@ -107,45 +108,42 @@ paper size.")
107 108
108(define-public psutils 109(define-public psutils
109 (package 110 (package
110 (name "psutils") 111 (name "psutils")
111 (version "17") 112 (version "2.09")
112 (source (origin 113 (source (origin
113 (method url-fetch) 114 (method url-fetch)
114 (uri "ftp://ftp.knackered.org/pub/psutils/psutils.tar.gz") 115 (uri (string-append "https://github.com/rrthomas/psutils/releases"
115 (sha256 (base32 116 "/download/v" version "/psutils-"
116 "1r4ab1fvgganm02kmm70b2r1azwzbav2am41gbigpa2bb1wynlrq")))) 117 version ".tar.gz"))
117 (build-system gnu-build-system) 118 (sha256
118 (inputs (list perl)) 119 (base32
119 (arguments 120 "1nmp0hb7c4a315vv1mqw2cbckvca8bzh1cv3gdvwwy24w9qba6p3"))))
120 `(#:tests? #f ; none provided 121 (build-system gnu-build-system)
121 #:phases 122 (inputs (list perl))
122 (modify-phases %standard-phases 123 (native-inputs
123 (replace 'configure 124 (list libpaper))
124 (lambda* (#:key inputs outputs #:allow-other-keys #:rest args) 125 (arguments
125 (let ((perl (assoc-ref inputs "perl")) 126 (list #:tests? #f ;FIXME: requires files not present in tarball
126 (out (assoc-ref outputs "out"))) 127 #:configure-flags
127 (copy-file "Makefile.unix" "Makefile") 128 ;; Help the build system locate Perl when cross-compiling.
128 (substitute* "Makefile" 129 (if (%current-target-system)
129 (("/usr/local/bin/perl") (string-append perl "/bin/perl"))) 130 #~(list (string-append "ac_cv_path_PERL="
130 (substitute* "Makefile" 131 (search-input-file %build-inputs "bin/perl")))
131 (("/usr/local") out)) 132 #~'())))
132 ;; for the install phase 133 (synopsis "Collection of utilities for manipulating PostScript documents")
133 (substitute* "Makefile" 134 (description
134 (("-mkdir") "mkdir -p")) 135 "PSUtils is a collection of utilities for manipulating PostScript
135 ;; drop installation of non-free files
136 (substitute* "Makefile"
137 ((" install.include") "")))
138 #t)))))
139 (synopsis "Collection of utilities for manipulating PostScript documents")
140 (description
141 "PSUtils is a collection of utilities for manipulating PostScript
142documents. Programs included are psnup, for placing out several logical pages 136documents. Programs included are psnup, for placing out several logical pages
143on a single sheet of paper, psselect, for selecting pages from a document, 137on a single sheet of paper, psselect, for selecting pages from a document,
144pstops, for general imposition, psbook, for signature generation for booklet 138pstops, for general imposition, psbook, for signature generation for booklet
145printing, and psresize, for adjusting page sizes.") 139printing, and psresize, for adjusting page sizes.")
146 (license (license:non-copyleft "file://LICENSE" 140 (home-page "https://github.com/rrthomas/psutils")
147 "See LICENSE in the distribution.")) 141 (license (list license:gpl3+
148 (home-page "http://knackered.org/angus/psutils/"))) 142 ;; This file carries the "historical" psutils license (v1),
143 ;; which is "effectively BSD 3-clause" (a quote from the file).
144 (license:non-copyleft
145 "file://extractres.in.in"
146 "See extractres.in.in in the distribution.")))))
149 147
150(define-public ghostscript 148(define-public ghostscript
151 (package 149 (package