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:
parent
9f6188727b
commit
301f9e533e
1 changed files with 34 additions and 85 deletions
|
@ -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
|
(package
|
||||||
"texlive-fontinst"
|
(name "texlive-fontinst")
|
||||||
(list "/doc/fonts/fontinst/"
|
(version (number->string %texlive-revision))
|
||||||
"/doc/man/man1/fontinst.1"
|
(source (texlive-origin
|
||||||
"/doc/man/man1/fontinst.man1.pdf"
|
name version
|
||||||
|
(list "doc/fonts/fontinst/"
|
||||||
;; This is used to build parts of
|
"doc/man/man1/fontinst.1"
|
||||||
;; /tex/fontinst/{base,misc}/ and
|
"doc/man/man1/fontinst.man1.pdf"
|
||||||
;; /tex/latex/fontinst/fontdoc.sty.
|
;; Extract the sole script expected in the package.
|
||||||
"/source/fontinst/base/"
|
"scripts/texlive-extra/fontinst.sh"
|
||||||
|
"source/fontinst/base/"
|
||||||
;; These are not generated.
|
"tex/fontinst/base/"
|
||||||
"/tex/fontinst/base/bbox.sty"
|
"tex/fontinst/latinetx/"
|
||||||
"/tex/fontinst/base/multislot.sty"
|
"tex/fontinst/latinmtx/"
|
||||||
"/tex/fontinst/misc/glyphbox.mtx"
|
"tex/fontinst/mathetx/"
|
||||||
"/tex/fontinst/misc/glyphoff.mtx"
|
"tex/fontinst/mathmtx/"
|
||||||
"/tex/fontinst/misc/glyphon.mtx"
|
"tex/fontinst/misc/"
|
||||||
"/tex/fontinst/misc/kernoff.mtx"
|
"tex/fontinst/smbletx/"
|
||||||
"/tex/fontinst/misc/kernon.mtx"
|
"tex/fontinst/smblmtx/"
|
||||||
|
"tex/latex/fontinst/")
|
||||||
"/tex/fontinst/latinetx/"
|
(base32
|
||||||
"/tex/fontinst/latinmtx/"
|
"0fbfhjbp7gxbwsbybbb8gm4l6za17nrm2mx2i2xa66lmpqcjbgg7")))
|
||||||
"/tex/fontinst/mathmtx/"
|
(outputs '("out" "doc"))
|
||||||
"/tex/fontinst/smblmtx/")
|
(build-system texlive-build-system)
|
||||||
(base32
|
(home-page "https://ctan.org/pkg/fontinst")
|
||||||
"195jsijrpv828pqy99gm13j31nsc8bsa58zlbln2r0h5j9l44b5g")
|
(synopsis "Tools for converting and installing fonts for TeX and LaTeX")
|
||||||
#:trivial? #t)))
|
(description
|
||||||
(package
|
"This package provides TeX macros for converting Adobe Font Metric files
|
||||||
(inherit template)
|
to TeX metric and virtual font format. Fontinst helps mainly with the number
|
||||||
(arguments
|
crunching and shovelling parts of font installation. This means in practice
|
||||||
(substitute-keyword-arguments (package-arguments template)
|
that it creates a number of files which give the TeX metrics (and related
|
||||||
((#:modules _ '())
|
information) for a font family that TeX needs to do any typesetting in these
|
||||||
'((guix build gnu-build-system)
|
fonts.")
|
||||||
(guix build utils)
|
(license license:lppl1.1+)))
|
||||||
(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+))))
|
|
||||||
|
|
||||||
(define-deprecated-package texlive-tex-fontinst-base texlive-fontinst)
|
(define-deprecated-package texlive-tex-fontinst-base texlive-fontinst)
|
||||||
|
|
||||||
|
|
Reference in a new issue