[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
33/244: gnu: a2ps: Improve package style.
From: |
guix-commits |
Subject: |
33/244: gnu: a2ps: Improve package style. |
Date: |
Wed, 12 Apr 2023 08:47:15 -0400 (EDT) |
apteryx pushed a commit to branch staging
in repository guix.
commit c072084fed3d514598e9a4f8dc16e4011d78daac
Author: Nicolas Goaziou <mail@nicolasgoaziou.fr>
AuthorDate: Mon Apr 3 12:35:33 2023 +0200
gnu: a2ps: Improve package style.
* gnu/packages/pretty-print.scm (a2ps)[origin]<snippet>: Use G-expressions.
[arguments]<#:phases>: Use G-expression and SEARCH-INPUT-FILE.
---
gnu/packages/pretty-print.scm | 79 ++++++++++++++++++++++---------------------
1 file changed, 40 insertions(+), 39 deletions(-)
diff --git a/gnu/packages/pretty-print.scm b/gnu/packages/pretty-print.scm
index 365743261b..ea1d26e8d7 100644
--- a/gnu/packages/pretty-print.scm
+++ b/gnu/packages/pretty-print.scm
@@ -27,6 +27,7 @@
;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
(define-module (gnu packages pretty-print)
+ #:use-module (guix gexp)
#:use-module (guix packages)
#:use-module (guix licenses)
#:use-module (guix git-download)
@@ -65,46 +66,46 @@
(modules '((guix build utils)))
(snippet
;; Remove timestamp from the installed 'README' file.
- '(begin
- (substitute* "etc/README.in"
- (("@date@")
- "1st of some month, sometime after 1970"))))))
+ #~(begin
+ (substitute* "etc/README.in"
+ (("@date@")
+ "1st of some month, sometime after 1970"))))))
(build-system gnu-build-system)
(arguments
- '(#:phases
- (modify-phases %standard-phases
- (add-after 'unpack 'skip-failing-tests
- (lambda _
- (substitute* (list "tests/Makefile.am" "tests/Makefile.in")
- (("(encoding|prolog-2)\\.tst") ""))))
- (add-before 'build 'patch-scripts
- (lambda _
- (substitute*
- '("afm/make_fonts_map.sh"
- "tests/defs"
- "tests/backup.tst"
- "tests/styles.tst")
- (("/bin/rm") (which "rm")))))
- (add-before 'check 'patch-test-files
- ;; Alternatively, we could unpatch the shebangs in tstfiles
- (lambda* (#:key inputs #:allow-other-keys)
- (let ((perl (assoc-ref inputs "perl")))
- (substitute* '("tests/ps-ref/includeres.ps"
- "tests/gps-ref/includeres.ps")
- (("/usr/local/bin/perl")
- (string-append perl "/bin/perl"))))
- ;; Some of the reference postscript contain a 'version 3'
- ;; string that in inconsistent with the source text in the
- ;; tstfiles directory. Erroneous search-and-replace?
- (substitute* '("tests/ps-ref/InsertBlock.ps"
- "tests/gps-ref/InsertBlock.ps"
- "tests/ps-ref/bookie.ps"
- "tests/gps-ref/bookie.ps")
- (("version 3") "version 2"))
- (substitute* '("tests/ps-ref/psmandup.ps"
- "tests/gps-ref/psmandup.ps")
- (("#! */bin/sh") (string-append
- "#!" (which "sh")))))))))
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'skip-failing-tests
+ (lambda _
+ (substitute* (list "tests/Makefile.am" "tests/Makefile.in")
+ (("(encoding|prolog-2)\\.tst") ""))))
+ (add-before 'build 'patch-scripts
+ (lambda _
+ (substitute*
+ '("afm/make_fonts_map.sh"
+ "tests/defs"
+ "tests/backup.tst"
+ "tests/styles.tst")
+ (("/bin/rm") (which "rm")))))
+ (add-before 'check 'patch-test-files
+ ;; Alternatively, we could unpatch the shebangs in tst files.
+ (lambda* (#:key inputs #:allow-other-keys)
+ (substitute* '("tests/ps-ref/includeres.ps"
+ "tests/gps-ref/includeres.ps")
+ (("/usr/local/bin/perl")
+ (search-input-file inputs "/bin/perl")))
+ ;; Some of the reference postscript contain a 'version 3'
+ ;; string that in inconsistent with the source text in the
+ ;; tstfiles directory. Erroneous search-and-replace?
+ (substitute* '("tests/ps-ref/InsertBlock.ps"
+ "tests/gps-ref/InsertBlock.ps"
+ "tests/ps-ref/bookie.ps"
+ "tests/gps-ref/bookie.ps")
+ (("version 3") "version 2"))
+ (substitute* '("tests/ps-ref/psmandup.ps"
+ "tests/gps-ref/psmandup.ps")
+ (("#! */bin/sh")
+ (string-append "#!" (which "sh")))))))))
(native-inputs
(list gperf groff perl pkg-config))
(inputs
@@ -116,7 +117,7 @@
printing. It accomplishes this by being able to delegate files to external
handlers, such as Groff and Gzip. It handles as many steps as is necessary to
produce a pretty-printed file. It also includes some extra abilities for
-special cases, such as pretty-printing \"--help\" output.")
+special cases, such as pretty-printing @samp{-help} output.")
(license gpl3+)))
(define-public trueprint
- 14/244: gnu: Add mairix., (continued)
- 14/244: gnu: Add mairix., guix-commits, 2023/04/12
- 17/244: gnu: Add youplot., guix-commits, 2023/04/12
- 19/244: gnu: ytfzf: Replace YOUTUBE-DL by YT-DLP., guix-commits, 2023/04/12
- 20/244: gnu: Add font-chivo., guix-commits, 2023/04/12
- 23/244: gnu: python-hy: Update to 0.26.0., guix-commits, 2023/04/12
- 24/244: gnu: python-hy: Report version., guix-commits, 2023/04/12
- 31/244: gnu: libjxr: Fix cross-compilation., guix-commits, 2023/04/12
- 30/244: services: xvnc: Do not create a regular HOME directory for xvnc user., guix-commits, 2023/04/12
- 37/244: gnu: bambam: Update to 1.2.1., guix-commits, 2023/04/12
- 34/244: gnu: Add dool., guix-commits, 2023/04/12
- 33/244: gnu: a2ps: Improve package style.,
guix-commits <=
- 38/244: gnu: thermald: Update to 2.5.2., guix-commits, 2023/04/12
- 44/244: gnu: emacs-org: Update to 9.6.3., guix-commits, 2023/04/12
- 40/244: gnu: qpwgraph: Update to 0.4.2., guix-commits, 2023/04/12
- 41/244: gnu: uwufetch: Update to 2.1., guix-commits, 2023/04/12
- 22/244: gnu: endless-sky: Update to 0.10.0., guix-commits, 2023/04/12
- 53/244: doc: Add a reference to a page explaining consensus decision making., guix-commits, 2023/04/12
- 36/244: gnu: fheroes2: Update to 1.0.2., guix-commits, 2023/04/12
- 39/244: gnu: drawing: Update to 1.0.2., guix-commits, 2023/04/12
- 42/244: gnu: genie: Update to 1170., guix-commits, 2023/04/12
- 45/244: gnu: emacs-eshell-syntax-highlighting: Update to 0.4., guix-commits, 2023/04/12