Archived
1
0
Fork 0

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.
This commit is contained in:
Nicolas Goaziou 2023-05-17 01:17:37 +02:00
parent 9f6188727b
commit 301f9e533e
No known key found for this signature in database
GPG key ID: DA00B4F048E92F2D

View file

@ -1012,91 +1012,40 @@ information in the TFM file.")
(license license:public-domain))) (license license:public-domain)))
(define-public texlive-fontinst (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 (package
(inherit template) (name "texlive-fontinst")
(arguments (version (number->string %texlive-revision))
(substitute-keyword-arguments (package-arguments template) (source (texlive-origin
((#:modules _ '()) name version
'((guix build gnu-build-system) (list "doc/fonts/fontinst/"
(guix build utils) "doc/man/man1/fontinst.1"
(ice-9 match))) "doc/man/man1/fontinst.man1.pdf"
((#:phases phases) ;; Extract the sole script expected in the package.
`(modify-phases ,phases "scripts/texlive-extra/fontinst.sh"
(replace 'build "source/fontinst/base/"
(lambda* (#:key inputs #:allow-other-keys) "tex/fontinst/base/"
(setenv "TEXINPUTS" "tex/fontinst/latinetx/"
(string-append (getcwd) "//:" "tex/fontinst/latinmtx/"
(getcwd) "/source/fontinst/base//:" "tex/fontinst/mathetx/"
(assoc-ref inputs "texlive-docstrip") "//")) "tex/fontinst/mathmtx/"
(mkdir "build") "tex/fontinst/misc/"
(invoke "tex" "-ini" "-interaction=scrollmode" "tex/fontinst/smbletx/"
"-output-directory=build" "tex/fontinst/smblmtx/"
"fontinst.ins"))) "tex/latex/fontinst/")
;; Since we're using docstrip without LaTeX we can't set \UseTDS (base32
;; or \BaseDirectory, so the generated files are just dumped in "0fbfhjbp7gxbwsbybbb8gm4l6za17nrm2mx2i2xa66lmpqcjbgg7")))
;; the "build" directory. (outputs '("out" "doc"))
(add-after 'install 'install-generated-files (build-system texlive-build-system)
(lambda* (#:key outputs #:allow-other-keys) (home-page "https://ctan.org/pkg/fontinst")
(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") (synopsis "Tools for converting and installing fonts for TeX and LaTeX")
(description "This package provides TeX macros for converting Adobe Font (description
Metric files to TeX metric and virtual font format. Fontinst helps mainly "This package provides TeX macros for converting Adobe Font Metric files
with the number crunching and shovelling parts of font installation. This to TeX metric and virtual font format. Fontinst helps mainly with the number
means in practice that it creates a number of files which give the TeX crunching and shovelling parts of font installation. This means in practice
metrics (and related information) for a font family that TeX needs to do any that it creates a number of files which give the TeX metrics (and related
typesetting in these fonts.") information) for a font family that TeX needs to do any typesetting in these
(license license:lppl1.1+)))) fonts.")
(license license:lppl1.1+)))
(define-deprecated-package texlive-tex-fontinst-base texlive-fontinst) (define-deprecated-package texlive-tex-fontinst-base texlive-fontinst)