From 2ed9a3862d3f120986ed40863a26a88c64f5ded7 Mon Sep 17 00:00:00 2001 From: Andreas Enge Date: Sun, 20 Jan 2013 23:26:11 +0100 Subject: [PATCH] gnu: Add psutils. * gnu/packages/ghostscript.scm (psutils): New variable. --- gnu/packages/ghostscript.scm | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/gnu/packages/ghostscript.scm b/gnu/packages/ghostscript.scm index a375675..a2ca108 100644 --- a/gnu/packages/ghostscript.scm +++ b/gnu/packages/ghostscript.scm @@ -75,6 +75,48 @@ paper size.") (license license:gpl2) (home-page "http://packages.qa.debian.org/libp/libpaper.html"))) +(define-public psutils + (package + (name "psutils") + (version "17") + (source (origin + (method url-fetch) + (uri "ftp://ftp.knackered.org/pub/psutils/psutils.tar.gz") + (sha256 (base32 + "1r4ab1fvgganm02kmm70b2r1azwzbav2am41gbigpa2bb1wynlrq")))) + (build-system gnu-build-system) + (inputs `(("perl" ,perl))) + (arguments + `(#:tests? #f ; none provided + #:phases + (alist-replace + 'configure + (lambda* (#:key inputs outputs #:allow-other-keys #:rest args) + (let ((perl (assoc-ref inputs "perl")) + (out (assoc-ref outputs "out"))) + (copy-file "Makefile.unix" "Makefile") + (substitute* "Makefile" + (("/usr/local/bin/perl") (string-append perl "/bin/perl"))) + (substitute* "Makefile" + (("/usr/local") out)) + (substitute* "Makefile" + (("-mkdir") "mkdir -p")) + ;; for the install phase + (substitute* "Makefile" + ((" install.include") "")) + ;; drop installation of non-free files + )) + %standard-phases))) + (synopsis "psutils, a collection of utilities for manipulating PostScript documents") + (description + "PSUtils is a collection of utilities for manipulating PostScript +documents. Programs included are psnup, for placing out several logical pages +on a single sheet of paper, psselect, for selecting pages from a document, +pstops, for general imposition, psbook, for signature generation for booklet +printing, and psresize, for adjusting page sizes.") + (license "other") + (home-page "http://knackered.org/angus/psutils/"))) + (define-public ghostscript (package (name "ghostscript") -- 1.7.10.4