gnu: texlive-stmaryrd: Actually include the fonts.
* gnu/packages/tex.scm (texlive-stmaryrd): Rewrite package to inherit from a simple-texlive-template package, so that fonts resources as listed in the texlive.tlpdb database are retrieved and installed. [arguments]: Adapt to use with the inherited template. {chdir}: New phase.master
parent
be023c00e7
commit
788170d8e9
|
@ -5394,28 +5394,35 @@ use this package to insert PostScript files, in addition to PDF files.")
|
||||||
(license license:lppl1.3+)))
|
(license license:lppl1.3+)))
|
||||||
|
|
||||||
(define-public texlive-stmaryrd
|
(define-public texlive-stmaryrd
|
||||||
(package
|
(let ((template (simple-texlive-package
|
||||||
(name "texlive-stmaryrd")
|
"texlive-stmaryrd"
|
||||||
(version (number->string %texlive-revision))
|
(list "/fonts/afm/public/stmaryrd/"
|
||||||
(source (origin
|
"/fonts/map/dvips/stmaryrd/"
|
||||||
(method svn-fetch)
|
"/fonts/source/public/stmaryrd/"
|
||||||
(uri (texlive-ref "fonts" "stmaryrd"))
|
"/fonts/tfm/public/stmaryrd/"
|
||||||
(file-name (string-append name "-" version "-checkout"))
|
"/fonts/type1/public/stmaryrd/"
|
||||||
(sha256
|
"/source/fonts/stmaryrd/"
|
||||||
|
"/doc/fonts/stmaryrd/")
|
||||||
(base32
|
(base32
|
||||||
"08pn4ca3vl6qm9l3wm5h5iyjsrg411kkm1yana329xwg2j14s9n6"))))
|
"0yn0yl6x1z9ab5gb56lhvkqabd2agz3ggxifwxkiysrj5780j29z"))))
|
||||||
(build-system texlive-build-system)
|
(package
|
||||||
(arguments
|
(inherit template)
|
||||||
'(#:tex-directory "latex/stmaryrd"
|
(arguments (substitute-keyword-arguments (package-arguments template)
|
||||||
#:phases
|
((#:tex-directory _ #t)
|
||||||
(modify-phases %standard-phases
|
"latex/stmaryrd")
|
||||||
(add-after 'configure 'patch-ins
|
((#:phases phases)
|
||||||
|
`(modify-phases ,phases
|
||||||
|
(add-after 'unpack 'chdir
|
||||||
|
(lambda _
|
||||||
|
(chdir "source/fonts/stmaryrd")
|
||||||
|
#t))
|
||||||
|
(add-after 'chdir 'patch-ins
|
||||||
(lambda _
|
(lambda _
|
||||||
(substitute* "stmaryrd.ins"
|
(substitute* "stmaryrd.ins"
|
||||||
(("^%% LaTeX2e.*") "\\input docstrip\n")
|
(("^%% LaTeX2e.*") "\\input docstrip\n")
|
||||||
(("fontdef\\}\\}" line)
|
(("fontdef\\}\\}" line)
|
||||||
(string-append line "\n\\endbatchfile")))
|
(string-append line "\n\\endbatchfile")))
|
||||||
#t)))))
|
#t))))))
|
||||||
(home-page "https://www.ctan.org/pkg/stmaryrd")
|
(home-page "https://www.ctan.org/pkg/stmaryrd")
|
||||||
(synopsis "St Mary Road symbols for theoretical computer science")
|
(synopsis "St Mary Road symbols for theoretical computer science")
|
||||||
(description
|
(description
|
||||||
|
@ -5424,7 +5431,7 @@ Adobe Type 1 versions are also now available. Macro support is provided for
|
||||||
use under LaTeX; the package supports the @code{only} option (provided by the
|
use under LaTeX; the package supports the @code{only} option (provided by the
|
||||||
@code{somedefs} package) to restrict what is loaded, for those who don't need
|
@code{somedefs} package) to restrict what is loaded, for those who don't need
|
||||||
the whole font.")
|
the whole font.")
|
||||||
(license license:lppl)))
|
(license license:lppl))))
|
||||||
|
|
||||||
(define-public texlive-fonts-stmaryrd
|
(define-public texlive-fonts-stmaryrd
|
||||||
(deprecated-package "texlive-fonts-stmaryrd" texlive-stmaryrd))
|
(deprecated-package "texlive-fonts-stmaryrd" texlive-stmaryrd))
|
||||||
|
|
Reference in New Issue