[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/12: gnu: texlive-mptopdf: Fix package.
From: |
guix-commits |
Subject: |
02/12: gnu: texlive-mptopdf: Fix package. |
Date: |
Mon, 3 Jul 2023 16:27:38 -0400 (EDT) |
ngz pushed a commit to branch tex-team-next
in repository guix.
commit 2f4df00d76469985cc5039cde61a644c490cc9ed
Author: Nicolas Goaziou <mail@nicolasgoaziou.fr>
AuthorDate: Mon Jul 3 09:24:51 2023 +0200
gnu: texlive-mptopdf: Fix package.
* gnu/packages/tex.scm (texlive-mptopdf)[source]: Only grab specific
"mptopdf.pl" scripts, not all other scripts in the same directory.
[arguments]<#:phases>: Add a phase to use provided Perl.
[inputs]: Add PERL.
---
gnu/packages/tex.scm | 19 +++++++++++++------
1 file changed, 13 insertions(+), 6 deletions(-)
diff --git a/gnu/packages/tex.scm b/gnu/packages/tex.scm
index 54a7966f05..fa7db3c180 100644
--- a/gnu/packages/tex.scm
+++ b/gnu/packages/tex.scm
@@ -1532,21 +1532,28 @@ information in the TFM file.")
(version (number->string %texlive-revision))
(source (texlive-origin
name version
- ;; The first location prevents from downloading all ConTeXt
- ;; "doc/context/scripts/mkii" directory.
(list "doc/context/scripts/mkii/mptopdf.man"
"doc/man/man1/mptopdf.1"
"doc/man/man1/mptopdf.man1.pdf"
- "scripts/context/perl/"
+ "scripts/context/perl/mptopdf.pl"
"tex/context/base/mkii/"
"tex/generic/context/mptopdf/")
(base32
- "08z0hxq0645lf8jyl0wq3kwn1f7xsvj736sqgfin9ldd89zc2ch3")))
+ "19kpqbkmz8al9wxn83fmg89fyv2pl2iqgnh256wi6pz4q3p77f0d")))
(outputs '("out" "doc"))
(build-system texlive-build-system)
(arguments
- (list #:link-scripts #~(list "mptopdf.pl")
- #:create-formats #~(list "mptopdf")))
+ (list
+ #:link-scripts #~(list "mptopdf.pl")
+ #:create-formats #~(list "mptopdf")
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'unpack 'fix-perl-header
+ (lambda* (#:key inputs #:allow-other-keys)
+ (let ((perl (search-input-file inputs "/bin/perl")))
+ (substitute* "scripts/context/perl/mptopdf.pl"
+ (("exec perl") (string-append "exec " perl)))))))))
+ (inputs (list perl))
(propagated-inputs (list texlive-plain))
(home-page "https://ctan.org/pkg/mptopdf")
(synopsis "mpost to PDF, native MetaPost graphics inclusion")
- branch tex-team-next updated (f149f099dc -> 5673520884), guix-commits, 2023/07/03
- 04/12: gnu: Add texlive-cweb., guix-commits, 2023/07/03
- 02/12: gnu: texlive-mptopdf: Fix package.,
guix-commits <=
- 01/12: guix: texlive importer: Do not pull all "scripts/context/" files., guix-commits, 2023/07/03
- 03/12: gnu: texlive-context: Fix package., guix-commits, 2023/07/03
- 07/12: guix: Add linter warning about texlive-updmap.cfg and texlive-tiny., guix-commits, 2023/07/03
- 10/12: gnu: chez-web: Fix build., guix-commits, 2023/07/03
- 11/12: gnu: asymptote: Fix build., guix-commits, 2023/07/03
- 05/12: gnu: texlive-updmap.cfg: Provide basic scheme., guix-commits, 2023/07/03
- 06/12: gnu: Rationalize texlive-updmap.cfg and texlive-tiny inputs., guix-commits, 2023/07/03
- 08/12: gnu: Add texlive-forloop., guix-commits, 2023/07/03
- 09/12: gnu: discrover: Fix build., guix-commits, 2023/07/03
- 12/12: gnu: Deprecate `texlive-tiny'., guix-commits, 2023/07/03