diff options
author | Andreas Enge <andreas@enge.fr> | 2013-01-20 23:26:11 +0100 |
---|---|---|
committer | Andreas Enge <andreas@enge.fr> | 2013-01-21 23:18:46 +0100 |
commit | 87ec7a7a5e85e0c4aa40383ff5d124c94be6888b (patch) | |
tree | 859d9b5c2069f650dedbefbe25385a7c88244749 | |
parent | 05bf6f82897d3f2cc1b63c1dd9385477a34ef6c7 (diff) |
gnu: Add psutils.
* gnu/packages/ghostscript.scm (psutils): New variable.
-rw-r--r-- | gnu/packages/ghostscript.scm | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/gnu/packages/ghostscript.scm b/gnu/packages/ghostscript.scm index a37567506d..f5ca71313d 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)) + ;; for the install phase + (substitute* "Makefile" + (("-mkdir") "mkdir -p")) + ;; drop installation of non-free files + (substitute* "Makefile" + ((" install.include") "")))) + %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 (license:bsd-style "file://LICENSE" + "See LICENSE in the distribution.")) + (home-page "http://knackered.org/angus/psutils/"))) + (define-public ghostscript (package (name "ghostscript") |