me
/
guix
Archived
1
0
Fork 0

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
Maxim Cournoyer 2021-01-05 21:19:21 -05:00
parent be023c00e7
commit 788170d8e9
No known key found for this signature in database
GPG Key ID: 1260E46482E63562
1 changed files with 34 additions and 27 deletions

View File

@ -5394,37 +5394,44 @@ 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/"
(base32 "/doc/fonts/stmaryrd/")
"08pn4ca3vl6qm9l3wm5h5iyjsrg411kkm1yana329xwg2j14s9n6")))) (base32
(build-system texlive-build-system) "0yn0yl6x1z9ab5gb56lhvkqabd2agz3ggxifwxkiysrj5780j29z"))))
(arguments (package
'(#:tex-directory "latex/stmaryrd" (inherit template)
#:phases (arguments (substitute-keyword-arguments (package-arguments template)
(modify-phases %standard-phases ((#:tex-directory _ #t)
(add-after 'configure 'patch-ins "latex/stmaryrd")
(lambda _ ((#:phases phases)
(substitute* "stmaryrd.ins" `(modify-phases ,phases
(("^%% LaTeX2e.*") "\\input docstrip\n") (add-after 'unpack 'chdir
(("fontdef\\}\\}" line) (lambda _
(string-append line "\n\\endbatchfile"))) (chdir "source/fonts/stmaryrd")
#t))))) #t))
(home-page "https://www.ctan.org/pkg/stmaryrd") (add-after 'chdir 'patch-ins
(synopsis "St Mary Road symbols for theoretical computer science") (lambda _
(description (substitute* "stmaryrd.ins"
"The fonts were originally distributed as Metafont sources only, but (("^%% LaTeX2e.*") "\\input docstrip\n")
(("fontdef\\}\\}" line)
(string-append line "\n\\endbatchfile")))
#t))))))
(home-page "https://www.ctan.org/pkg/stmaryrd")
(synopsis "St Mary Road symbols for theoretical computer science")
(description
"The fonts were originally distributed as Metafont sources only, but
Adobe Type 1 versions are also now available. Macro support is provided for 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))