[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
18/53: gnu: texlive-afm2pl: Build executable.
From: |
guix-commits |
Subject: |
18/53: gnu: texlive-afm2pl: Build executable. |
Date: |
Mon, 13 May 2024 10:02:18 -0400 (EDT) |
ngz pushed a commit to branch tex-team
in repository guix.
commit 430c5af8fe43f27eb33e4209e0956a9644cd0a51
Author: Nicolas Goaziou <mail@nicolasgoaziou.fr>
AuthorDate: Sat May 11 15:26:11 2024 +0200
gnu: texlive-afm2pl: Build executable.
* gnu/packages/tex.scm (texlive-afm2pl-bin): New variable.
(texlive-afm2pl)[arguments]<#:phases>: Include executable.
[native-inputs]: Add TEXLIVE-AFM2PL-BIN.
* gnu/packages/tex.scm (texlive-bin): Do not build afm2pl.
Change-Id: I1cf4f5fc8a17a1eab634218040bbfc7394db337a
---
gnu/packages/tex.scm | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++-
1 file changed, 54 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/tex.scm b/gnu/packages/tex.scm
index 6d369228df..e5df27e048 100644
--- a/gnu/packages/tex.scm
+++ b/gnu/packages/tex.scm
@@ -702,7 +702,8 @@ and should be preferred to it whenever a package would
otherwise depend on
'())
;; Disable tools built in other packages.
#$@(map (lambda (p) (string-append "--disable-" p))
- '("axodraw2"
+ '("afm2pl"
+ "axodraw2"
"chktex"
"cjkutils"
"dvipng"
@@ -1806,6 +1807,48 @@ Gyre Pagella, and the Latin Modern fonts are supported.
The other fonts in
the TeX Gyre bundle do not need this support.")
(license (list license:gfl1.0 license:gpl3+))))
+(define texlive-afm2pl-bin
+ (package
+ (inherit texlive-bin)
+ (name "texlive-afm2pl-bin")
+ (source
+ (origin
+ (inherit texlive-source)
+ (modules '((guix build utils)
+ (ice-9 ftw)))
+ (snippet
+ #~(let ((delete-other-directories
+ (lambda (root dirs)
+ (with-directory-excursion root
+ (for-each
+ delete-file-recursively
+ (scandir "."
+ (lambda (file)
+ (and (not (member file (append '("." "..")
dirs)))
+ (eq? 'directory (stat:type (stat
file)))))))))))
+ (delete-other-directories "libs" '())
+ (delete-other-directories "utils" '())
+ (delete-other-directories "texk" '("afm2pl"))))))
+ (arguments
+ (substitute-keyword-arguments (package-arguments texlive-bin)
+ ((#:configure-flags flags)
+ #~(cons* "--disable-all-pkgs"
+ "--enable-afm2pl"
+ (delete "--disable-afm2pl" #$flags)))
+ ((#:phases _)
+ #~(modify-phases %standard-phases
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (with-directory-excursion "texk/afm2pl"
+ (invoke "make" "check")))))
+ (replace 'install
+ (lambda* (#:key inputs native-inputs #:allow-other-keys)
+ (with-directory-excursion "texk/afm2pl"
+ (invoke "make" "install"))))))))
+ (native-inputs (list pkg-config texlive-libkpathsea))
+ (inputs '())))
+
(define-public texlive-afm2pl
(package
(name "texlive-afm2pl")
@@ -1820,6 +1863,16 @@ the TeX Gyre bundle do not need this support.")
"19llzzr4kmmyf7l18ngx1rhaqaqvgm3md924m4dxcv7nmrvga2b2")))
(outputs '("out" "doc"))
(build-system texlive-build-system)
+ (arguments
+ (list #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'install 'install-bin
+ (lambda _
+ (let ((source
+ #$(this-package-native-input "texlive-afm2pl-bin")))
+ (copy-recursively (string-append source "/bin")
+ (string-append #$output "/bin"))))))))
+ (native-inputs (list texlive-afm2pl-bin))
(home-page "https://ctan.org/pkg/afm2pl")
(synopsis "Convert AFM to TeX property list (@file{.pl}) metrics")
(description
- branch tex-team created (now c86eb1db00), guix-commits, 2024/05/13
- 12/53: gnu: texlive-bin: Skip building axodraw2., guix-commits, 2024/05/13
- 08/53: gnu: texlive-dvisvgm: Build executables., guix-commits, 2024/05/13
- 16/53: gnu: texlive-t1utils: Build executables., guix-commits, 2024/05/13
- 13/53: gnu: texlive-cjkutils: Build executables., guix-commits, 2024/05/13
- 21/53: gnu: texlive-autosp: Build executable., guix-commits, 2024/05/13
- 10/53: gnu: texlive-xindy: Refactor package., guix-commits, 2024/05/13
- 38/53: gnu: texlive-ptex: Build executables., guix-commits, 2024/05/13
- 18/53: gnu: texlive-afm2pl: Build executable.,
guix-commits <=
- 20/53: gnu: texlive-dvi2tty: Build executables., guix-commits, 2024/05/13
- 01/53: gnu: texlive-libkpathsea: Fix TEXMFCACHE location., guix-commits, 2024/05/13
- 03/53: gnu: texlive-psutils: Build executables., guix-commits, 2024/05/13
- 05/53: gnu: texlive-bin: Remove unnecessary phases., guix-commits, 2024/05/13
- 06/53: gnu: texlive-bin: Remove conditional tests on some architectures., guix-commits, 2024/05/13
- 07/53: gnu: texlive-libkpathsea: Set sane values in "texmf.cnf"., guix-commits, 2024/05/13
- 02/53: gnu: texlive-chktex: Fix runtime error., guix-commits, 2024/05/13
- 24/53: gnu: texlive-xpdfopen: Build executables., guix-commits, 2024/05/13
- 09/53: gnu: texlive-upmendex: Build executable., guix-commits, 2024/05/13
- 17/53: gnu: texlive-dvipng: Build executables., guix-commits, 2024/05/13