[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
03/09: gnu: texinfo: Make 'perl-archive-zip' available to 'texi2any'.
From: |
guix-commits |
Subject: |
03/09: gnu: texinfo: Make 'perl-archive-zip' available to 'texi2any'. |
Date: |
Mon, 30 Jan 2023 17:51:00 -0500 (EST) |
civodul pushed a commit to branch master
in repository guix.
commit 29ee56d1fa6d43da31d44f66200a2760b46a46d1
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Mon Jan 30 11:10:25 2023 +0100
gnu: texinfo: Make 'perl-archive-zip' available to 'texi2any'.
This makes "texi2any --epub3" work out of the box.
Reported by BitPuffin on #guile.
* gnu/packages/texinfo.scm (texinfo-7)[inputs, arguments]: New fields.
---
gnu/packages/texinfo.scm | 25 +++++++++++++++++++++++--
1 file changed, 23 insertions(+), 2 deletions(-)
diff --git a/gnu/packages/texinfo.scm b/gnu/packages/texinfo.scm
index ec953f57b5..77fc3baaf7 100644
--- a/gnu/packages/texinfo.scm
+++ b/gnu/packages/texinfo.scm
@@ -1,5 +1,5 @@
;;; GNU Guix --- Functional package management for GNU
-;;; Copyright © 2012, 2013, 2015, 2016, 2017, 2019, 2022 Ludovic Courtès
<ludo@gnu.org>
+;;; Copyright © 2012-2013, 2015-2017, 2019, 2022-2023 Ludovic Courtès
<ludo@gnu.org>
;;; Copyright © 2014, 2016 Eric Bavier <bavier@member.fsf.org>
;;; Copyright © 2015 Mark H Weaver <mhw@netris.org>
;;; Copyright © 2017, 2019, 2022 Efraim Flashner <efraim@flashner.co.il>
@@ -43,6 +43,7 @@
#:use-module ((gnu packages hurd) #:select (hurd-target?))
#:use-module (gnu packages ncurses)
#:use-module (gnu packages perl)
+ #:use-module (gnu packages perl-compression)
#:use-module (gnu packages readline))
(define-public texinfo
@@ -110,7 +111,27 @@ is on expressing the content semantically, avoiding
physical markup commands.")
version ".tar.xz"))
(sha256
(base32
- "1balvbkdlwa8zwnzp4irkixq1zhps2wr6njmwj4ilgiqc4rfq4gj"))))))
+ "1balvbkdlwa8zwnzp4irkixq1zhps2wr6njmwj4ilgiqc4rfq4gj"))))
+ (inputs (modify-inputs (package-inputs texinfo)
+ (append perl-archive-zip))) ;needed for 'tex2any --epub3'
+ (arguments
+ (substitute-keyword-arguments (package-arguments texinfo)
+ ((#:phases phases #~%standard-phases)
+ #~(modify-phases #$phases
+ (add-after 'install 'wrap-program
+ (lambda* (#:key inputs outputs #:allow-other-keys)
+ (let* ((out (assoc-ref outputs "out"))
+ (bin (string-append out "/bin"))
+ (program (string-append bin "/texi2any"))
+ (zip (car (find-files
+ (assoc-ref inputs "perl-archive-zip")
+ (lambda (file stat)
+ (and (eq? 'directory (stat:type stat))
+ (string=? (basename file)
+ "Archive")))
+ #:directories? #t))))
+ (wrap-program program
+ `("PERL5LIB" prefix (,(dirname zip)))))))))))))
(define-public texinfo-5
(package (inherit texinfo)
- branch master updated (17448c8afa -> e6f557dd23), guix-commits, 2023/01/30
- 01/09: container: Correctly report exit status., guix-commits, 2023/01/30
- 06/09: gnu: Add go-github-com-google-gopacket., guix-commits, 2023/01/30
- 03/09: gnu: texinfo: Make 'perl-archive-zip' available to 'texi2any'.,
guix-commits <=
- 07/09: gnu: Add go-github-com-macronut-go-tproxy., guix-commits, 2023/01/30
- 08/09: gnu: Add phantomsocks., guix-commits, 2023/01/30
- 09/09: gnu: guile-ssh: Update to 0.16.3., guix-commits, 2023/01/30
- 04/09: gnu: Add font-carlito., guix-commits, 2023/01/30
- 02/09: linux-container: 'container-excursion' forks to join the PID namespace., guix-commits, 2023/01/30
- 05/09: gnu: Add python-haversine., guix-commits, 2023/01/30