Archived
1
0
Fork 0

gnu: Replace texlive-latex-fontspec with texlive-fontspec.

* gnu/packages/tex.scm (texlive-latex-fontspec): Deprecate in favor of...
(texlive-fontspec): ...this new variable.
This commit is contained in:
Ricardo Wurmus 2020-10-28 23:04:27 +01:00
parent 2fa52bbcb5
commit ad5dddc610
No known key found for this signature in database
GPG key ID: 197A5888235FACAC

View file

@ -3056,58 +3056,37 @@ programming tools and kernel sup­port. Packages provided in this release are:
@end enumerate\n") @end enumerate\n")
(license license:lppl1.3c+))) (license license:lppl1.3c+)))
(define-public texlive-latex-fontspec (define-public texlive-fontspec
(package (let ((template (simple-texlive-package
(name "texlive-latex-fontspec") "texlive-fontspec"
(version (number->string %texlive-revision)) (list "/doc/latex/fontspec/"
(source (origin "/source/latex/fontspec/"
(method svn-fetch) "/tex/latex/fontspec/fontspec.cfg")
(uri (texlive-ref "latex" "fontspec")) (base32
(file-name (string-append name "-" version "-checkout")) "1ksqhxlnqia4v85hbx0bw58cw77wfdhs33n1a1qmczd4b3zg4wp9"))))
(sha256 (package
(base32 (inherit template)
"1223cw029n6zff7pqpwbsq1x8v3w63smczkmnybqxkw5h2za8gbz")))) (arguments
(build-system texlive-build-system) (substitute-keyword-arguments (package-arguments template)
(arguments ((#:tex-directory _ #t)
'(#:tex-directory "latex/fontspec" "latex/fontspec")
#:phases ((#:phases phases)
(modify-phases %standard-phases `(modify-phases ,phases
(add-after 'install 'install-default-fontspec.cfg (add-after 'unpack 'chdir
(lambda* (#:key outputs #:allow-other-keys) (lambda _ (chdir "source/latex/fontspec/") #t))))))
(with-output-to-file (propagated-inputs
(string-append (assoc-ref outputs "out") `(("texlive-latex-l3packages" ,texlive-latex-l3packages)))
"/share/texmf-dist/tex/latex/fontspec/fontspec.cfg") (home-page "https://www.ctan.org/pkg/fontspec")
(lambda _ (synopsis "Advanced font selection in XeLaTeX and LuaLaTeX")
(display "\ (description
%%% FONTSPEC.CFG %%% "Fontspec is a package for XeLaTeX and LuaLaTeX. It provides an
%
% This configuration file sets up TeX Ligatures by default for all fonts loaded
% with `\\setmainfont` and `\\setsansfont`.
%
% In addition, `\\setmonofont` has default features to enforce \"monospace\"
% settings with regard to space stretchability and shrinkability.
\\defaultfontfeatures
[\\rmfamily,\\sffamily]
{Ligatures=TeX}
\\defaultfontfeatures
[\\ttfamily]
{WordSpace={1,0,0},
HyphenChar=None,
PunctuationSpace=WordSpace}
")))
#t)))))
(propagated-inputs
`(("texlive-latex-l3packages" ,texlive-latex-l3packages)))
(home-page "https://www.ctan.org/pkg/fontspec")
(synopsis "Advanced font selection in XeLaTeX and LuaLaTeX")
(description
"Fontspec is a package for XeLaTeX and LuaLaTeX. It provides an
automatic and unified interface to feature-rich AAT and OpenType fonts through automatic and unified interface to feature-rich AAT and OpenType fonts through
the NFSS in LaTeX running on XeTeX or LuaTeX engines. The package requires the NFSS in LaTeX running on XeTeX or LuaTeX engines. The package requires
the l3kernel and xparse bundles from the LaTeX 3 development team.") the l3kernel and xparse bundles from the LaTeX 3 development team.")
(license license:lppl1.3+))) (license license:lppl1.3+))))
(define-public texlive-latex-fontspec
(deprecated-package "texlive-latex-fontspec" texlive-fontspec))
(define-public texlive-l3build (define-public texlive-l3build
(let ((template (simple-texlive-package (let ((template (simple-texlive-package