[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
41/97: gnu: Add texlive-ttfutils-bin.
From: |
guix-commits |
Subject: |
41/97: gnu: Add texlive-ttfutils-bin. |
Date: |
Fri, 21 Jun 2024 08:23:00 -0400 (EDT) |
ngz pushed a commit to branch tex-team
in repository guix.
commit ea1bf1e1d881b975cd2199eec5af9845ea393870
Author: Nicolas Goaziou <mail@nicolasgoaziou.fr>
AuthorDate: Tue May 28 00:38:29 2024 +0200
gnu: Add texlive-ttfutils-bin.
* gnu/packages/tex.scm (texlive-ttfutils-bin): New variable.
(texlive-ttfutils)[propagated-inputs]: Add TEXLIVE-TTFUTILS-BIN.
Change-Id: I03fdd5a6522f9c486e9efa4f19630881007a53e8
---
gnu/packages/tex.scm | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 54 insertions(+)
diff --git a/gnu/packages/tex.scm b/gnu/packages/tex.scm
index e4bf23f508..827358af7e 100644
--- a/gnu/packages/tex.scm
+++ b/gnu/packages/tex.scm
@@ -45923,14 +45923,68 @@ emulates the macro, using TikZ.")
"1yfr3yic0bx73imxhmxhnhjc1mpwy9f55sh3p430p2f2yvxwm0cs")))
(outputs '("out" "doc"))
(build-system texlive-build-system)
+ (propagated-inputs (list texlive-ttfutils-bin))
(home-page "https://ctan.org/pkg/ttfutils")
(synopsis "Convert TrueType to TFM and PK fonts")
+ ;; XXX: "ttf2afm" is actually provided by PDFTeX, through "texlive-bin".
(description
"This package provides utilities to convert TrueType to TFM and PK fonts:
@command{ttf2afm}, @command{ttf2pk}, @command{ttf2tfm}, and
@command{ttfdump}.")
(license license:gpl2+)))
+(define-public texlive-ttfutils-bin
+ (package
+ (inherit texlive-bin)
+ (name "texlive-ttfutils-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" '("ttfdump" "ttf2pk2"))))))
+ (arguments
+ (substitute-keyword-arguments (package-arguments texlive-bin)
+ ((#:configure-flags flags)
+ #~(cons* "--enable-ttfdump"
+ "--enable-ttf2pk2"
+ (delete "--enable-web2c" #$flags)))
+ ((#:phases phases)
+ #~(modify-phases #$phases
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (with-directory-excursion "texk/ttfdump"
+ (invoke "make" "check"))
+ (with-directory-excursion "texk/ttf2pk2"
+ (invoke "make" "check")))))
+ (replace 'install
+ (lambda _
+ (with-directory-excursion "texk/ttfdump"
+ (invoke "make" "install"))
+ (with-directory-excursion "texk/ttf2pk2"
+ (invoke "make" "install"))))))))
+ (native-inputs (list pkg-config))
+ (inputs (list freetype texlive-libkpathsea))
+ (propagated-inputs '())
+ (home-page (package-home-page texlive-ttfutils))
+ (synopsis "Binaries for @code{texlive-ttfutils}")
+ (description
+ "This package provides the binaries for @code{texlive-ttfutils}.")
+ (license (package-license texlive-ttfutils))))
+
(define-public texlive-twemojis
(package
(name "texlive-twemojis")
- 26/97: gnu: Add texlive-aleph-bin., (continued)
- 26/97: gnu: Add texlive-aleph-bin., guix-commits, 2024/06/21
- 30/97: gnu: Add texlive-autosp-bin., guix-commits, 2024/06/21
- 32/97: gnu: Add texlive-pmx-bin., guix-commits, 2024/06/21
- 31/97: gnu: Add texlive-gregoriotex-bin., guix-commits, 2024/06/21
- 36/97: gnu: Add texlive-dvips-bin., guix-commits, 2024/06/21
- 34/97: gnu: Add texlive-bibtex8-bin., guix-commits, 2024/06/21
- 37/97: gnu: Add texlive-psutils-bin., guix-commits, 2024/06/21
- 38/97: gnu: Add texlive-tex4ht-bin., guix-commits, 2024/06/21
- 03/97: gnu: Add texlive-source., guix-commits, 2024/06/21
- 40/97: gnu: Add texlive-tpic2pdftex-bin., guix-commits, 2024/06/21
- 41/97: gnu: Add texlive-ttfutils-bin.,
guix-commits <=
- 42/97: gnu: Add texlive-upmendex-bin., guix-commits, 2024/06/21
- 43/97: gnu: Add texlive-gsftopk-bin., guix-commits, 2024/06/21
- 44/97: gnu: Add texlive-makeindex-bin., guix-commits, 2024/06/21
- 45/97: gnu: Add texlive-metapost-bin., guix-commits, 2024/06/21
- 53/97: gnu: Add texlive-dviljk-bin., guix-commits, 2024/06/21
- 02/97: gnu: texlive-libkpathsea: Remove duplicate documentation., guix-commits, 2024/06/21
- 14/97: gnu: texlive-latex-bin: Create symlinks for "latex" variants., guix-commits, 2024/06/21
- 19/97: gnu: Add texlive-patgen-bin., guix-commits, 2024/06/21
- 24/97: gnu: Add texlive-dvipdfmx-bin., guix-commits, 2024/06/21
- 25/97: gnu: Add texlive-xetex-bin., guix-commits, 2024/06/21