[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
08/25: gnu: source-highlight: Inline skip-doc-directory phase.
From: |
guix-commits |
Subject: |
08/25: gnu: source-highlight: Inline skip-doc-directory phase. |
Date: |
Sat, 15 Apr 2023 00:27:32 -0400 (EDT) |
apteryx pushed a commit to branch core-updates
in repository guix.
commit 530cf34edbd5173e3973856600321e70815cc718
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Fri Apr 14 21:27:04 2023 -0400
gnu: source-highlight: Inline skip-doc-directory phase.
* gnu/packages/pretty-print.scm (source-highlight) [source]: Fix
indentation.
[arguments]: Inline skip-doc-directory phase.
---
gnu/packages/pretty-print.scm | 61 ++++++++++++++++++++-----------------------
1 file changed, 28 insertions(+), 33 deletions(-)
diff --git a/gnu/packages/pretty-print.scm b/gnu/packages/pretty-print.scm
index 58efb3237b..5e4d16e24a 100644
--- a/gnu/packages/pretty-print.scm
+++ b/gnu/packages/pretty-print.scm
@@ -9,7 +9,7 @@
;;; Copyright © 2020 Vincent Legoll <vincent.legoll@gmail.com>
;;; Copyright © 2021 Greg Hogan <code@greghogan.com>
;;; Copyright © 2022 Zhu Zihao <all_but_last@163.com>
-;;; Copyright © 2022 Maxim Cournoyer <maxim.cournoyer@gmail.com>
+;;; Copyright © 2022, 2023 Maxim Cournoyer <maxim.cournoyer@gmail.com>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -275,13 +275,13 @@ a fast alternative to @code{IOStreams}.")
(version "3.1.9")
(source
(origin
- (method url-fetch)
- (uri (string-append "mirror://gnu/src-highlite/source-highlight-"
- version ".tar.gz"))
- (patches (search-patches "source-highlight-gcc-compat.patch"))
- (sha256
- (base32
- "148w47k3zswbxvhg83z38ifi85f9dqcpg7icvvw1cm6bg21x4zrs"))))
+ (method url-fetch)
+ (uri (string-append "mirror://gnu/src-highlite/source-highlight-"
+ version ".tar.gz"))
+ (patches (search-patches "source-highlight-gcc-compat.patch"))
+ (sha256
+ (base32
+ "148w47k3zswbxvhg83z38ifi85f9dqcpg7icvvw1cm6bg21x4zrs"))))
(build-system gnu-build-system)
;; The ctags that comes with emacs does not support the --excmd options,
;; so can't be used
@@ -292,38 +292,33 @@ a fast alternative to @code{IOStreams}.")
(arguments
(list #:configure-flags
#~(list (string-append "--with-boost=" (assoc-ref %build-inputs
"boost")))
- #:parallel-tests? #f ;There appear to be race conditions
+ #:parallel-tests? #f ;There appear to be race conditions
#:phases
#~(modify-phases %standard-phases
(add-before 'build 'rename-lesspipe-to-lesspipe.sh.in
(lambda _
(substitute* "src/src-hilite-lesspipe.sh.in"
(("lesspipe") "lesspipe.sh"))))
- #$@(if (%current-target-system)
- ;; 'doc/Makefile.am' tries to run stuff even when
- ;; cross-compiling. Explicitly skip it.
- ;; XXX: Inline this on next rebuild cycle.
- #~((add-before 'build 'skip-doc-directory
- (lambda _
- (substitute* "Makefile"
- (("^SUBDIRS = (.*) doc(.*)$" _ before after)
- (string-append "SUBDIRS = " before
- " " after "\n"))))))
- '())
+ (add-before 'build 'skip-doc-directory
+ (lambda _
+ (substitute* "Makefile"
+ (("^SUBDIRS = (.*) doc(.*)$" _ before after)
+ (string-append "SUBDIRS = " before
+ " " after "\n")))))
(add-before 'check 'patch-test-files
- (lambda _
- ;; Unpatch shebangs in test input so that source-highlight
- ;; is still able to infer input language
- (substitute* '("tests/test.sh"
- "tests/test2.sh"
- "tests/test.tcl")
- (((string-append "#! *" (which "sh"))) "#!/bin/sh"))
- ;; Initial patching unrecoverably removes whitespace, so
- ;; remove it also in the comparison output.
- (substitute* '("tests/test.sh.html"
- "tests/test2.sh.html"
- "tests/test.tcl.html")
- (("#! */bin/sh") "#!/bin/sh")))))))
+ (lambda _
+ ;; Unpatch shebangs in test input so that source-highlight
+ ;; is still able to infer input language
+ (substitute* '("tests/test.sh"
+ "tests/test2.sh"
+ "tests/test.tcl")
+ (((string-append "#! *" (which "sh"))) "#!/bin/sh"))
+ ;; Initial patching unrecoverably removes whitespace, so
+ ;; remove it also in the comparison output.
+ (substitute* '("tests/test.sh.html"
+ "tests/test2.sh.html"
+ "tests/test.tcl.html")
+ (("#! */bin/sh") "#!/bin/sh")))))))
(home-page "https://www.gnu.org/software/src-highlite/")
(synopsis "Produce a document with syntax highlighting from a source file")
(description
- branch core-updates updated (f14aa6d0a3 -> 7ccf994302), guix-commits, 2023/04/15
- 05/25: gnu: freetype: Update remove-reference-to-pkg-config phase., guix-commits, 2023/04/15
- 09/25: gnu: python-docutils: Update to 0.19., guix-commits, 2023/04/15
- 03/25: maint: Merge sanity-check-next.py into sanity-check.py., guix-commits, 2023/04/15
- 08/25: gnu: source-highlight: Inline skip-doc-directory phase.,
guix-commits <=
- 02/25: gnu: nss: Add which to to native inputs and use regular nspr., guix-commits, 2023/04/15
- 01/25: gnu: python-clickgen: Replace python-numpy-next with python-numpy., guix-commits, 2023/04/15
- 04/25: gnu: poppler-next: Delete variable., guix-commits, 2023/04/15
- 12/25: gnu: ruby-tzinfo-data: Remove #:guile argument in file-union call., guix-commits, 2023/04/15
- 19/25: gnu: hplip: Update to 3.23.3., guix-commits, 2023/04/15
- 21/25: gnu: python-jsonschema: Update to 4.5.1., guix-commits, 2023/04/15
- 13/25: gnu: valgrind/interactive: Rely on non-stripped glibc symbols., guix-commits, 2023/04/15
- 10/25: gnu: python-pluggy: Update to 1.0.0., guix-commits, 2023/04/15
- 15/25: gnu: hplip: Update to 3.22.10., guix-commits, 2023/04/15
- 17/25: gnu: hplip: Use gexps., guix-commits, 2023/04/15