unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Ricardo Wurmus <rekado@elephly.net>
To: 27296@debbugs.gnu.org
Cc: Ricardo Wurmus <rekado@elephly.net>
Subject: bug#27296: [PATCH 09/35] gnu: Add texlive-fonts-cm.
Date: Fri,  9 Jun 2017 12:45:33 +0200	[thread overview]
Message-ID: <20170609104559.17416-9-rekado@elephly.net> (raw)
In-Reply-To: <20170609104559.17416-1-rekado@elephly.net>

* gnu/packages/tex.scm (texlive-fonts-cm): New variable.
---
 gnu/packages/tex.scm | 85 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 85 insertions(+)

diff --git a/gnu/packages/tex.scm b/gnu/packages/tex.scm
index 5a92b3ed1..201e0da78 100644
--- a/gnu/packages/tex.scm
+++ b/gnu/packages/tex.scm
@@ -432,6 +432,91 @@ converters, will completely supplant the older patterns.")
 build fonts using the Metafont system.")
     (license license:knuth)))
 
+(define-public texlive-fonts-cm
+  (package
+    (name "texlive-fonts-cm")
+    (version (number->string %texlive-revision))
+    (source (origin
+              (method svn-fetch)
+              (uri (svn-reference
+                    (url (string-append "svn://www.tug.org/texlive/tags/"
+                                        %texlive-tag "/Master/texmf-dist/"
+                                        "/fonts/source/public/cm"))
+                    (revision %texlive-revision)))
+              (sha256
+               (base32
+                "045k5b9rdmbxpy1a3006l1x96z1rd18vg3cwrvnld9bqybw5qz44"))))
+    (build-system gnu-build-system)
+    (arguments
+     `(#:modules ((guix build gnu-build-system)
+                  (guix build utils)
+                  (srfi srfi-1)
+                  (srfi srfi-26))
+       #:tests? #f ; no tests
+       #:phases
+       (modify-phases %standard-phases
+         (delete 'configure)
+         (replace 'build
+           (lambda* (#:key inputs #:allow-other-keys)
+             (let ((mf (assoc-ref inputs "texlive-metafont-base")))
+               ;; Tell mf where to find mf.base
+               (setenv "MFBASES" (string-append mf "/share/texmf-dist/web2c"))
+               ;; Tell mf where to look for source files
+               (setenv "MFINPUTS"
+                       (string-append (getcwd) ":"
+                                      mf "/share/texmf-dist/metafont/base")))
+             (mkdir "build")
+             (every (lambda (font)
+                      (format #t "building font ~a\n" font)
+                      (zero? (system* "mf" "-progname=mf"
+                                      "-output-directory=build"
+                                      (string-append "\\"
+                                                     "mode:=ljfour; "
+                                                     "mag:=1; "
+                                                     "batchmode; "
+                                                     "input " font))))
+                    '("cmb10" "cmbcsc10" "cmbsy10" "cmbtex10"
+                      "cmbtt8" "cmbtt9" "cmbtt10"
+                      "cmbx5" "cmbx6" "cmbx7" "cmbx8" "cmbx9" "cmbx10" "cmbx12"
+                      "cmbxsl10" "cmbxti10" "cmcsc10" "cmdunh10"
+                      "cmex10" "cmexb10" "cmff10" "cmfi10" "cmfib8"
+                      "cminch"
+                      "cmmi5" "cmmi6" "cmmi7" "cmmi8" "cmmi9" "cmmi10" "cmmi12"
+                      "cmmib10" "cmitt10"
+                      "cmr5" "cmr6" "cmr7" "cmr8" "cmr9" "cmr10" "cmr12" "cmr17"
+                      "cmsl8" "cmsl9" "cmsl10" "cmsl12" "cmsltt10"
+                      "cmss8" "cmss9" "cmss10" "cmss12" "cmss17"
+                      "cmssbx10" "cmssdc10"
+                      "cmssi8" "cmssi9" "cmssi10" "cmssi12" "cmssi17"
+                      "cmssq8" "cmssqi8"
+                      "cmsy5" "cmsy6" "cmsy7" "cmsy8" "cmsy9" "cmsy10"
+                      "cmtcsc10" "cmtex8" "cmtex9" "cmtex10"
+                      "cmti7" "cmti8" "cmti9" "cmti10" "cmti12"
+                      "cmtt8" "cmtt9" "cmtt10" "cmtt12"
+                      "cmttb10" "cmu10" "cmvtt10"))))
+         (replace 'install
+           (lambda* (#:key outputs #:allow-other-keys)
+             (let* ((out (assoc-ref outputs "out"))
+                    (tfm (string-append
+                          out "/share/texmf-dist/fonts/tfm/public/cm"))
+                    (mf  (string-append
+                          out "/share/texmf-dist/fonts/source/public/cm")))
+               (for-each (cut install-file <> tfm)
+                         (find-files "build" "\\.*"))
+               (for-each (cut install-file <> mf)
+                         (find-files "." "\\.mf"))
+               #t))))))
+    (native-inputs
+     `(("texlive-bin" ,texlive-bin)
+       ("texlive-metafont-base" ,texlive-metafont-base)))
+    (home-page "http://www.ctan.org/pkg/cm")
+    (synopsis "Computer Modern fonts for TeX")
+    (description "This package provides the Computer Modern fonts by Donald
+Knuth.  The Computer Modern font family is a large collection of text,
+display, and mathematical fonts in a range of styles, based on Monotype Modern
+8A.")
+    (license license:knuth)))
+
 (define texlive-texmf
   (package
    (name "texlive-texmf")
-- 
2.12.2

  parent reply	other threads:[~2017-06-09 10:47 UTC|newest]

Thread overview: 53+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-06-09 10:42 bug#27296: Modular Texlive Ricardo Wurmus
2017-06-09 10:45 ` bug#27296: [PATCH 01/35] guix: Add download-svn-to-store Ricardo Wurmus
2017-06-09 10:45   ` bug#27296: [PATCH 02/35] guix: Add common TeX and LaTeX licenses Ricardo Wurmus
2017-06-09 14:45     ` Ludovic Courtès
2017-06-10  2:15       ` Arun Isaac
2017-06-09 10:45   ` bug#27296: [PATCH 03/35] gnu: Add texlive-dvips Ricardo Wurmus
2017-06-09 10:45   ` bug#27296: [PATCH 04/35] gnu: Add texlive-generic-unicode-data Ricardo Wurmus
2017-06-09 10:45   ` bug#27296: [PATCH 05/35] gnu: Add texlive-generic-dehyph-exptl Ricardo Wurmus
2017-06-09 10:45   ` bug#27296: [PATCH 06/35] gnu: Add texlive-generic-tex-ini-files Ricardo Wurmus
2017-06-09 10:45   ` bug#27296: [PATCH 07/35] gnu: Add texlive-generic-hyph-utf8 Ricardo Wurmus
2017-06-09 10:45   ` bug#27296: [PATCH 08/35] gnu: Add texlive-metafont-base Ricardo Wurmus
2017-06-09 10:45   ` Ricardo Wurmus [this message]
2017-06-09 14:41     ` bug#27296: [PATCH 09/35] gnu: Add texlive-fonts-cm Ludovic Courtès
2017-06-09 15:00       ` Ricardo Wurmus
2017-06-09 10:45   ` bug#27296: [PATCH 10/35] gnu: Add texlive-fonts-knuth-lib Ricardo Wurmus
2017-06-09 10:45   ` bug#27296: [PATCH 11/35] gnu: Add texlive-fonts-latex Ricardo Wurmus
2017-06-09 10:45   ` bug#27296: [PATCH 12/35] gnu: Add texlive-tex-plain Ricardo Wurmus
2017-06-09 10:45   ` bug#27296: [PATCH 13/35] gnu: Add texlive-latex-base Ricardo Wurmus
2017-06-09 10:45   ` bug#27296: [PATCH 14/35] build-system: Add 'texlive-build-system' Ricardo Wurmus
2017-06-09 14:50     ` Ludovic Courtès
2017-06-14  7:24       ` [bug#27296] " Ricardo Wurmus
2017-06-14  7:41         ` Ludovic Courtès
2017-06-09 10:45   ` bug#27296: [PATCH 15/35] gnu: Add texlive-latex-filecontents Ricardo Wurmus
2017-06-09 10:45   ` bug#27296: [PATCH 16/35] gnu: Add texlive-generic-ifxetex Ricardo Wurmus
2017-06-09 10:45   ` bug#27296: [PATCH 17/35] gnu: Add texlive-latex-fancyvrb Ricardo Wurmus
2017-06-09 10:45   ` bug#27296: [PATCH 18/35] gnu: Add texlive-latex-graphics Ricardo Wurmus
2017-06-09 10:45   ` bug#27296: [PATCH 19/35] gnu: Add texlive-latex-xcolor Ricardo Wurmus
2017-06-09 10:45   ` bug#27296: [PATCH 20/35] gnu: Add texlive-latex-hyperref Ricardo Wurmus
2017-06-09 10:45   ` bug#27296: [PATCH 21/35] gnu: Add texlive-latex-oberdiek Ricardo Wurmus
2017-06-09 10:45   ` bug#27296: [PATCH 22/35] gnu: Add texlive-latex-tools Ricardo Wurmus
2017-06-09 10:45   ` bug#27296: [PATCH 23/35] gnu: Add texlive-latex-url Ricardo Wurmus
2017-06-09 10:45   ` bug#27296: [PATCH 24/35] gnu: Add texlive-latex-l3kernel Ricardo Wurmus
2017-06-09 10:45   ` bug#27296: [PATCH 25/35] gnu: Add texlive-latex-l3packages Ricardo Wurmus
2017-06-09 10:45   ` bug#27296: [PATCH 26/35] gnu: Add texlive-latex-fontspec Ricardo Wurmus
2017-06-09 10:45   ` bug#27296: [PATCH 27/35] gnu: Add texlive-luatex-lualibs Ricardo Wurmus
2017-06-09 10:45   ` bug#27296: [PATCH 28/35] gnu: Add texlive-latex-amsmath Ricardo Wurmus
2017-06-09 10:45   ` bug#27296: [PATCH 29/35] gnu: Add texlive-latex-amscls Ricardo Wurmus
2017-06-09 10:45   ` bug#27296: [PATCH 30/35] gnu: Add texlive-latex-babel Ricardo Wurmus
2017-06-09 10:45   ` bug#27296: [PATCH 31/35] gnu: texlive-latex-cyrillic Ricardo Wurmus
2017-06-09 10:45   ` bug#27296: [PATCH 32/35] gnu: Add texlive-latex-psnfss Ricardo Wurmus
2017-06-09 10:45   ` bug#27296: [PATCH 33/35] gnu: Add texlive-union Ricardo Wurmus
2017-06-09 14:57     ` Ludovic Courtès
2017-06-09 15:06       ` Ricardo Wurmus
2017-06-09 15:12         ` Ludovic Courtès
2017-06-09 15:51           ` Ricardo Wurmus
2017-06-09 10:45   ` bug#27296: [PATCH 34/35] gnu: Add texlive-tiny Ricardo Wurmus
2017-06-09 10:45   ` bug#27296: [PATCH 35/35] guix: Add texlive importer Ricardo Wurmus
2017-06-09 15:05     ` Ludovic Courtès
2017-06-15 15:01       ` [bug#27296] " Ricardo Wurmus
2017-06-16 15:06         ` Ludovic Courtès
2017-06-16 16:12           ` Ricardo Wurmus
2017-06-09 14:38   ` bug#27296: [PATCH 01/35] guix: Add download-svn-to-store Ludovic Courtès
2017-06-15 15:04 ` bug#27296: Modular Texlive Ricardo Wurmus

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170609104559.17416-9-rekado@elephly.net \
    --to=rekado@elephly.net \
    --cc=27296@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).