;;; GNU Guix --- Functional package management for GNU ;;; Copyright © 2013 Nikita Karetnikov ;;; ;;; This file is part of GNU Guix. ;;; ;;; GNU Guix is free software; you can redistribute it and/or modify it ;;; under the terms of the GNU General Public License as published by ;;; the Free Software Foundation; either version 3 of the License, or (at ;;; your option) any later version. ;;; ;;; GNU Guix is distributed in the hope that it will be useful, but ;;; WITHOUT ANY WARRANTY; without even the implied warranty of ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ;;; GNU General Public License for more details. ;;; ;;; You should have received a copy of the GNU General Public License ;;; along with GNU Guix. If not, see . (define-module (gnu packages a2ps) #:use-module (guix licenses) #:use-module (gnu packages gperf) #:use-module (guix packages) #:use-module (guix download) #:use-module (guix build-system gnu)) (define-public a2ps (package (name "a2ps") (version "4.14") (source (origin (method url-fetch) (uri (string-append "mirror://gnu/a2ps/a2ps-" version ".tar.gz")) (sha256 (base32 "195k78m1h03m961qn7jr120z815iyb93gwi159p1p9348lyqvbpk")))) (build-system gnu-build-system) (inputs `(("gperf" ,gperf))) (arguments '(#:phases (alist-cons-before 'build 'pre-build (lambda _ (substitute* '("contrib/card.in" "contrib/fixps.in" "contrib/psset.m4" "contrib/fixps.m4" "contrib/fixbb.m4" "contrib/psmandup.in" "contrib/psmandup.m4" "contrib/card.m4" "contrib/psset.in" "afm/make_fonts_map.sh" "tests/backup.tst" "tests/defs.in" "tests/tstfiles/psmandup" "tests/gps-ref/psmandup.ps" "tests/ps-ref/psmandup.ps" "tests/view-diff" "tests/styles.tst") (("/bin/rm") (which "rm")))) %standard-phases))) (home-page "https://gnu.org/software/a2ps/") (synopsis "Convert any file to PostScript") (description "GNU a2ps is a filter which generates PostScript from various formats, with pretty-printing features, has strong support for many alphabets, and customizable layout.") (license gpl3+)))