[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
07/11: gnu: highlight: Use new package style.
From: |
guix-commits |
Subject: |
07/11: gnu: highlight: Use new package style. |
Date: |
Mon, 14 Aug 2023 18:34:38 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit 5d14e1c0b05b0b559171f513701108e17e72f523
Author: gemmaro <gemmaro.dev@gmail.com>
AuthorDate: Mon Aug 7 23:05:40 2023 +0900
gnu: highlight: Use new package style.
* gnu/packages/pretty-print.scm (highlight) Use new package style.
[arguments]: Use G-expression. Drop trailing #t from phases.
[source, inputs, native-inputs, description]: Reformat with guix style.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
---
gnu/packages/pretty-print.scm | 89 ++++++++++++++++++++++---------------------
1 file changed, 45 insertions(+), 44 deletions(-)
diff --git a/gnu/packages/pretty-print.scm b/gnu/packages/pretty-print.scm
index 9896824f01..1b2cf4becf 100644
--- a/gnu/packages/pretty-print.scm
+++ b/gnu/packages/pretty-print.scm
@@ -352,54 +352,55 @@ seen in a terminal.")
(package
(name "highlight")
(version "4.7")
- (source
- (origin
- (method url-fetch)
- (uri (string-append "http://www.andre-simon.de/zip/highlight-"
- version ".tar.bz2"))
- (sha256
- (base32 "1cl21qpgy92w1x53vrn1bgq84mkh6fgayc9k38mz4xmz2yw01nv1"))))
+ (source (origin
+ (method url-fetch)
+ (uri (string-append "http://www.andre-simon.de/zip/highlight-"
+ version ".tar.bz2"))
+ (sha256
+ (base32
+ "1cl21qpgy92w1x53vrn1bgq84mkh6fgayc9k38mz4xmz2yw01nv1"))))
(build-system gnu-build-system)
(arguments
- `(#:tests? #f ; no tests
- #:make-flags
- (let ((confdir (string-append %output "/share/highlight/config/")))
- (list (string-append "PREFIX=" %output)
- (string-append "HL_CONFIG_DIR=" confdir)
- (string-append "conf_dir=" confdir)))
- #:phases
- (modify-phases %standard-phases
- (delete 'configure) ; no configure script
- (add-after 'unpack 'fix-search-for-lua
- (lambda _
- (substitute* "src/makefile"
- (("(LUA_PKG_NAME=).*" _ assignment)
- (string-append assignment "lua-" ,(version-major+minor
- (package-version lua))
- "\n")))
- (substitute* "extras/swig/makefile"
- (("lua") (string-append "lua-" ,(version-major+minor
- (package-version lua)))))
- #t))
- (add-after 'install 'install-perl-bindings
- (lambda* (#:key outputs #:allow-other-keys)
- (let* ((perldir (string-append (assoc-ref outputs "out")
- "/lib/perl5/site_perl/"
- ,(package-version perl)))
- (autodir (string-append perldir "/auto/highlight")))
- (with-directory-excursion "extras/swig"
- (invoke "make" "perl")
- (invoke "perl" "-I" "." "testmod.pl")
- (install-file "highlight.pm" perldir)
- (install-file "highlight.so" autodir))
- #t))))))
- (inputs
- (list lua boost perl))
- (native-inputs
- (list pkg-config swig))
+ (list #:tests? #f ;no tests
+ #:make-flags #~(let ((confdir (string-append %output
+ "/share/highlight/config/")))
+ (list (string-append "PREFIX=" %output)
+ (string-append "HL_CONFIG_DIR=" confdir)
+ (string-append "conf_dir=" confdir)))
+ #:phases #~(modify-phases %standard-phases
+ (delete 'configure) ;no configure script
+ (add-after 'unpack 'fix-search-for-lua
+ (lambda _
+ (substitute* "src/makefile"
+ (("(LUA_PKG_NAME=).*" _ assignment)
+ (string-append assignment "lua-"
+ #$(version-major+minor
(package-version
+ lua))
+ "\n")))
+ (substitute* "extras/swig/makefile"
+ (("lua")
+ (string-append "lua-"
+ #$(version-major+minor
(package-version
+
lua)))))))
+ (add-after 'install 'install-perl-bindings
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let* ((perldir (string-append (assoc-ref outputs
+ "out")
+ "/lib/perl5/site_perl/"
+ #$(package-version perl)))
+ (autodir (string-append perldir
+ "/auto/highlight")))
+ (with-directory-excursion "extras/swig"
+ (invoke "make" "perl")
+ (invoke "perl" "-I" "." "testmod.pl")
+ (install-file "highlight.pm" perldir)
+ (install-file "highlight.so" autodir))))))))
+ (inputs (list lua boost perl))
+ (native-inputs (list pkg-config swig))
(home-page "http://www.andre-simon.de/doku/highlight/en/highlight.php")
(synopsis "Convert code to documents with syntax highlighting")
- (description "Highlight converts source code to HTML, XHTML, RTF, LaTeX,
+ (description
+ "Highlight converts source code to HTML, XHTML, RTF, LaTeX,
TeX, SVG, BBCode and terminal escape sequences with colored syntax
highlighting. Language definitions and color themes are customizable.")
(license gpl3+)))
- branch master updated (d55d2a971b -> 355f2073fb), guix-commits, 2023/08/14
- 03/11: doc: cookbook: Mention common SRFI-1 procedures., guix-commits, 2023/08/14
- 02/11: doc: cookbook: Add 'use-modules' in gexp example., guix-commits, 2023/08/14
- 06/11: gnu: highlight: Update to 4.7., guix-commits, 2023/08/14
- 11/11: gnu: fennel: Update to 1.3.1., guix-commits, 2023/08/14
- 04/11: doc: Add reference to the Scheme Crash Course., guix-commits, 2023/08/14
- 08/11: gnu: highlight: Add "gui" output., guix-commits, 2023/08/14
- 09/11: gnu: highlight: Fix paths for Perl bindings., guix-commits, 2023/08/14
- 07/11: gnu: highlight: Use new package style.,
guix-commits <=
- 01/11: doc: cookbook: Link to "Package Modules"., guix-commits, 2023/08/14
- 10/11: gnu: llama-cpp: Update to 0.0.0-0.f31b539., guix-commits, 2023/08/14
- 05/11: gnu: guile-smc: Update to 0.6.2., guix-commits, 2023/08/14