[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
346/418: gnu: texlive-fontinst: Refresh package definition.
From: |
guix-commits |
Subject: |
346/418: gnu: texlive-fontinst: Refresh package definition. |
Date: |
Mon, 29 May 2023 17:39:38 -0400 (EDT) |
ngz pushed a commit to branch tex-team-next
in repository guix.
commit 97e901e01d6751c4102919eddf32ff72582acb26
Author: Nicolas Goaziou <mail@nicolasgoaziou.fr>
AuthorDate: Wed May 17 01:17:37 2023 +0200
gnu: texlive-fontinst: Refresh package definition.
* gnu/packages/tex.sfontinst (texlive-fontinst): Remove
SIMPLE-TEXLIVE-PACKAGE
call.
[native-inputs]: Remove TEXLIVE-BIN and TEXLIVE-DOCSTRIP.
---
gnu/packages/tex.scm | 119 +++++++++++++++------------------------------------
1 file changed, 34 insertions(+), 85 deletions(-)
diff --git a/gnu/packages/tex.scm b/gnu/packages/tex.scm
index 19cf342dc3..c9ac239839 100644
--- a/gnu/packages/tex.scm
+++ b/gnu/packages/tex.scm
@@ -1012,91 +1012,40 @@ information in the TFM file.")
(license license:public-domain)))
(define-public texlive-fontinst
- (let ((template (simple-texlive-package
- "texlive-fontinst"
- (list "/doc/fonts/fontinst/"
- "/doc/man/man1/fontinst.1"
- "/doc/man/man1/fontinst.man1.pdf"
-
- ;; This is used to build parts of
- ;; /tex/fontinst/{base,misc}/ and
- ;; /tex/latex/fontinst/fontdoc.sty.
- "/source/fontinst/base/"
-
- ;; These are not generated.
- "/tex/fontinst/base/bbox.sty"
- "/tex/fontinst/base/multislot.sty"
- "/tex/fontinst/misc/glyphbox.mtx"
- "/tex/fontinst/misc/glyphoff.mtx"
- "/tex/fontinst/misc/glyphon.mtx"
- "/tex/fontinst/misc/kernoff.mtx"
- "/tex/fontinst/misc/kernon.mtx"
-
- "/tex/fontinst/latinetx/"
- "/tex/fontinst/latinmtx/"
- "/tex/fontinst/mathmtx/"
- "/tex/fontinst/smblmtx/")
- (base32
- "195jsijrpv828pqy99gm13j31nsc8bsa58zlbln2r0h5j9l44b5g")
- #:trivial? #t)))
- (package
- (inherit template)
- (arguments
- (substitute-keyword-arguments (package-arguments template)
- ((#:modules _ '())
- '((guix build gnu-build-system)
- (guix build utils)
- (ice-9 match)))
- ((#:phases phases)
- `(modify-phases ,phases
- (replace 'build
- (lambda* (#:key inputs #:allow-other-keys)
- (setenv "TEXINPUTS"
- (string-append (getcwd) "//:"
- (getcwd) "/source/fontinst/base//:"
- (assoc-ref inputs "texlive-docstrip")
"//"))
- (mkdir "build")
- (invoke "tex" "-ini" "-interaction=scrollmode"
- "-output-directory=build"
- "fontinst.ins")))
- ;; Since we're using docstrip without LaTeX we can't set \UseTDS
- ;; or \BaseDirectory, so the generated files are just dumped in
- ;; the "build" directory.
- (add-after 'install 'install-generated-files
- (lambda* (#:key outputs #:allow-other-keys)
- (let* ((out (assoc-ref outputs "out"))
- (root (string-append out "/share/texmf-dist")))
- (for-each (match-lambda
- ((dir files ...)
- (for-each (lambda (file)
- (install-file
- (string-append "build/" file)
- (string-append root dir)))
- files)))
- '(("/tex/fontinst/base"
- "fontinst.sty"
- "cfntinst.sty"
- "xfntinst.sty"
- "finstmsc.sty"
- "fontinst.ini")
- ("/tex/fontinst/misc"
- "csc2x.tex"
- "csckrn2x.tex"
- "osf2x.tex")
- ("/tex/latex/fontinst"
- "fontdoc.sty")))
- #t)))))))
- (native-inputs
- (list texlive-bin texlive-docstrip))
- (home-page "https://www.ctan.org/pkg/fontinst")
- (synopsis "Tools for converting and installing fonts for TeX and LaTeX")
- (description "This package provides TeX macros for converting Adobe Font
-Metric files to TeX metric and virtual font format. Fontinst helps mainly
-with the number crunching and shovelling parts of font installation. This
-means in practice that it creates a number of files which give the TeX
-metrics (and related information) for a font family that TeX needs to do any
-typesetting in these fonts.")
- (license license:lppl1.1+))))
+ (package
+ (name "texlive-fontinst")
+ (version (number->string %texlive-revision))
+ (source (texlive-origin
+ name version
+ (list "doc/fonts/fontinst/"
+ "doc/man/man1/fontinst.1"
+ "doc/man/man1/fontinst.man1.pdf"
+ ;; Extract the sole script expected in the package.
+ "scripts/texlive-extra/fontinst.sh"
+ "source/fontinst/base/"
+ "tex/fontinst/base/"
+ "tex/fontinst/latinetx/"
+ "tex/fontinst/latinmtx/"
+ "tex/fontinst/mathetx/"
+ "tex/fontinst/mathmtx/"
+ "tex/fontinst/misc/"
+ "tex/fontinst/smbletx/"
+ "tex/fontinst/smblmtx/"
+ "tex/latex/fontinst/")
+ (base32
+ "0fbfhjbp7gxbwsbybbb8gm4l6za17nrm2mx2i2xa66lmpqcjbgg7")))
+ (outputs '("out" "doc"))
+ (build-system texlive-build-system)
+ (home-page "https://ctan.org/pkg/fontinst")
+ (synopsis "Tools for converting and installing fonts for TeX and LaTeX")
+ (description
+ "This package provides TeX macros for converting Adobe Font Metric files
+to TeX metric and virtual font format. Fontinst helps mainly with the number
+crunching and shovelling parts of font installation. This means in practice
+that it creates a number of files which give the TeX metrics (and related
+information) for a font family that TeX needs to do any typesetting in these
+fonts.")
+ (license license:lppl1.1+)))
(define-deprecated-package texlive-tex-fontinst-base texlive-fontinst)
- 331/418: gnu: texlive-hardwrap: Refresh package definition., (continued)
- 331/418: gnu: texlive-hardwrap: Refresh package definition., guix-commits, 2023/05/29
- 332/418: gnu: texlive-etex: Refresh package definition., guix-commits, 2023/05/29
- 334/418: gnu: texlive-mflogo-font: Refresh package definition., guix-commits, 2023/05/29
- 335/418: gnu: texlive-knuth-lib: Refresh package definition., guix-commits, 2023/05/29
- 340/418: gnu: texlive-cm-super: Refresh package definition., guix-commits, 2023/05/29
- 343/418: gnu: texlive-cbfonts-fd: Refresh package definition., guix-commits, 2023/05/29
- 336/418: gnu: texlive-lm-math: Refresh package definition., guix-commits, 2023/05/29
- 339/418: gnu: texlive-courier: Refresh package definition., guix-commits, 2023/05/29
- 344/418: gnu: texlive-cbfonts: Refresh package definition., guix-commits, 2023/05/29
- 350/418: gnu: texlive-dvips: Refresh package definition., guix-commits, 2023/05/29
- 346/418: gnu: texlive-fontinst: Refresh package definition.,
guix-commits <=
- 349/418: gnu: texlive-underscore: Refresh package definition., guix-commits, 2023/05/29
- 355/418: gnu: Add texlive-luatex., guix-commits, 2023/05/29
- 356/418: gnu: texlive-siunitx: Refresh package definition., guix-commits, 2023/05/29
- 353/418: gnu: Add texlive-manfnt-font., guix-commits, 2023/05/29
- 357/418: gnu: texlive-context: Refresh package definition., guix-commits, 2023/05/29
- 364/418: gnu: texlive-amscls: Remove SIMPLE-TEXLIVE-PACKAGE call., guix-commits, 2023/05/29
- 365/418: gnu: texlive-catchfile: Remove SIMPLE-TEXLIVE-PACKAGE call., guix-commits, 2023/05/29
- 359/418: gnu: texlive-hyphen-package: Remove SIMPLE-TEXLIVE-PACKAGE call., guix-commits, 2023/05/29
- 360/418: gnu: texlive-tetex: Refresh package definition., guix-commits, 2023/05/29
- 362/418: gnu: texlive-hyph-utf8: Remove SIMPLE-TEXLIVE-PACKAGE call., guix-commits, 2023/05/29