[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
139/452: gnu: texlive-metafont: Refresh package definition.
From: |
guix-commits |
Subject: |
139/452: gnu: texlive-metafont: Refresh package definition. |
Date: |
Fri, 9 Jun 2023 13:43:12 -0400 (EDT) |
ngz pushed a commit to branch tex-team-next
in repository guix.
commit 544c1890bff0b8ad0393163193d88728f09399bf
Author: Nicolas Goaziou <mail@nicolasgoaziou.fr>
AuthorDate: Sun May 14 23:20:42 2023 +0200
gnu: texlive-metafont: Refresh package definition.
* gnu/packages/tex.scm (texlive-metafont)[source]: Use TEXLIVE-ORIGIN
instead
of SVN-MULTI-FETCH and SVN-MULTI-REFERENCE.
[build-system]: Use TEXLIVE-BUILD-SYSTEM.
[native-inputs]: Add texlive-modes.
---
gnu/packages/tex.scm | 92 +++++++++++++++++++++++++---------------------------
1 file changed, 45 insertions(+), 47 deletions(-)
diff --git a/gnu/packages/tex.scm b/gnu/packages/tex.scm
index 6e06eca080..ae7ed35cab 100644
--- a/gnu/packages/tex.scm
+++ b/gnu/packages/tex.scm
@@ -873,55 +873,53 @@ to adapt the plain e-TeX source file to work with XeTeX
and LuaTeX.")
(package
(name "texlive-metafont")
(version (number->string %texlive-revision))
- (source (origin
- (method svn-multi-fetch)
- (uri (svn-multi-reference
- (url (string-append "svn://www.tug.org/texlive/tags/"
- %texlive-tag "/Master/texmf-dist"))
- (locations '("/metafont/"
- "/fonts/source/public/modes/"))
- (revision %texlive-revision)))
- (file-name (string-append name "-" version "-checkout"))
- (sha256
- (base32
- "17y72xmz5a36vdsq7pfrwj0j4c7llrm9j5kcq349cpaas7r32lmb"))))
- (build-system gnu-build-system)
+ (source (texlive-origin
+ name version
+ (list "doc/man/man1/inimf.1"
+ "doc/man/man1/inimf.man1.pdf"
+ "doc/man/man1/mf-nowin.1"
+ "doc/man/man1/mf-nowin.man1.pdf"
+ "doc/man/man1/mf.1"
+ "doc/man/man1/mf.man1.pdf"
+ "metafont/base/"
+ "metafont/config/"
+ "metafont/misc/")
+ (base32
+ "1zzab3b8h2xsp88jqjr64i7f0yiqzd9rmzyvpgbfpyhd4sdl4fk4")))
+ (outputs '("out" "doc"))
+ (build-system texlive-build-system)
(arguments
- `(#:tests? #f ; no test target
- #:phases
- (modify-phases %standard-phases
- (delete 'configure)
- (replace 'build
- (lambda* (#:key inputs #:allow-other-keys)
- (let* ((cwd (getcwd))
- (mf (string-append cwd "/metafont"))
- (modes (string-append cwd "/fonts/source/public/modes")))
- (setenv "MFINPUTS"
- (string-append modes ":"
- mf "/base:"
- mf "/misc:"
- mf "/roex:"
- mf "/feynmf:"
- mf "/mfpic:"
- mf "/config")))
- (mkdir "build")
- (with-directory-excursion "build"
- (invoke "inimf" "mf.mf"))))
- (replace 'install
- (lambda* (#:key outputs #:allow-other-keys)
- (let* ((out (assoc-ref outputs "out"))
- (base (string-append out "/share/texmf-dist/web2c"))
- (mf (string-append out "/share/texmf-dist/metafont/")))
- (mkdir-p base)
- (mkdir-p mf)
- (install-file "build/mf.base" base)
- (with-directory-excursion "metafont"
- (for-each (lambda (where)
- (copy-recursively where (string-append mf where)))
- (list "base" "misc" "config")))))))))
+ (list
+ #:texlive-latex-base #f
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-after 'build 'generate-mf.base
+ ;; Even though the file "mf.base" does not appear in tlpdb, it
+ ;; must be generated and provided in metafont package.
+ (lambda _
+ (let* ((cwd (getcwd))
+ (mf (string-append cwd "/metafont"))
+ (modes #$(this-package-native-input "texlive-modes")))
+ (setenv "MFINPUTS"
+ (string-append
+ modes "/share/texmf-dist/fonts/source/public/modes:"
+ mf "/base:"
+ mf "/misc:"
+ mf "/roex:"
+ mf "/feynmf:"
+ mf "/mfpic:"
+ mf "/config")))
+ ;; "build" directory was not created during `build' phases since
+ ;; there is no ".ins" nor ".dtx" file to process.
+ (mkdir-p "build")
+ (with-directory-excursion "build"
+ (invoke "inimf" "mf.mf")
+ (install-file "mf.base"
+ (string-append #$output
+ "/share/texmf-dist/web2c"))))))))
(native-inputs
- (list texlive-bin))
- (home-page "https://www.ctan.org/pkg/metafont")
+ (list texlive-bin texlive-modes))
+ (home-page "https://ctan.org/pkg/metafont")
(synopsis "Metafont base files")
(description "This package provides the Metafont base files needed to
build fonts using the Metafont system.")
- 61/452: gnu: texlive-latex-marginfix -> texlive-marginfix., (continued)
- 61/452: gnu: texlive-latex-marginfix -> texlive-marginfix., guix-commits, 2023/06/09
- 74/452: gnu: texlive-latex-cmap -> texlive-cmap., guix-commits, 2023/06/09
- 83/452: gnu: texlive-latex-multirow -> texlive-multirow., guix-commits, 2023/06/09
- 86/452: gnu: texlive-latex-pbox -> texlive-pbox., guix-commits, 2023/06/09
- 108/452: gnu: texlive-latex-verbatimbox -> texlive-verbatimbox., guix-commits, 2023/06/09
- 106/452: gnu: texlive-latex-eukdate -> texlive-eukdate., guix-commits, 2023/06/09
- 103/452: gnu: texlive-latex-media9 -> texlive-media9., guix-commits, 2023/06/09
- 114/452: gnu: texlive-latex-hyphenat -> texlive-hyphenat., guix-commits, 2023/06/09
- 122/452: gnu: texlive-tex-texinfo -> texlive-texinfo., guix-commits, 2023/06/09
- 124/452: gnu: texlive-metapost: Refresh package definition., guix-commits, 2023/06/09
- 139/452: gnu: texlive-metafont: Refresh package definition.,
guix-commits <=
- 157/452: gnu: texlive-pdflscape: Refresh package definition., guix-commits, 2023/06/09
- 29/452: gnu: Add texlive-euenc., guix-commits, 2023/06/09
- 37/452: gnu: texlive-dvips-l3backend -> texlive-l3backend., guix-commits, 2023/06/09
- 39/452: gnu: texlive-latex-cyrillic -> texlive-cyrillic., guix-commits, 2023/06/09
- 45/452: gnu: texlive-latex-newunicodechar -> texlive-newunicodechar., guix-commits, 2023/06/09
- 46/452: gnu: texlive-latex-psfrag -> texlive-psfrag., guix-commits, 2023/06/09
- 50/452: gnu: texlive-latex-tocloft -> texlive-tocloft., guix-commits, 2023/06/09
- 51/452: gnu: texlive-latex-fncychap -> texlive-fncychap., guix-commits, 2023/06/09
- 63/452: gnu: texlive-latex-upquote -> texlive-upquote., guix-commits, 2023/06/09
- 55/452: gnu: texlive-latex-gcite -> texlive-gcite., guix-commits, 2023/06/09