all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [bug#32432] [PATCH 1/2] gnu: texlive-latex-base: Include support files.
@ 2018-08-13 20:43 Pierre Neidhardt
  2018-08-13 20:44 ` [bug#32432] [PATCH 2/2] gnu: asymptote: Use minimal texlive-union Pierre Neidhardt
  2018-08-21 14:34 ` bug#32432: [PATCH 1/2] gnu: texlive-latex-base: Include support files Pierre Neidhardt
  0 siblings, 2 replies; 3+ messages in thread
From: Pierre Neidhardt @ 2018-08-13 20:43 UTC (permalink / raw)
  To: 32432

* gnu/packages/tex.scm (texlive-latex-base)[native-inputs]: Include support files.
---
 gnu/packages/tex.scm | 25 +++++++++++++++++++++++--
 1 file changed, 23 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/tex.scm b/gnu/packages/tex.scm
index e33a98a9f..e5406e9b3 100644
--- a/gnu/packages/tex.scm
+++ b/gnu/packages/tex.scm
@@ -1005,12 +1005,13 @@ book).")
                          '("dviluatex" "dvilualatex" "luatex" "lualatex"))
                #t))
            (replace 'install
-             (lambda* (#:key outputs #:allow-other-keys)
+             (lambda* (#:key inputs outputs #:allow-other-keys)
                (let* ((out (assoc-ref outputs "out"))
                       (target (string-append
                                out "/share/texmf-dist/tex/latex/base"))
                       (web2c (string-append
-                              out "/share/texmf-dist/web2c")))
+                              out "/share/texmf-dist/web2c"))
+                      (support-files (assoc-ref inputs "texlive-latex-base-support-files")))
                  (mkdir-p target)
                  (mkdir-p web2c)
                  (for-each delete-file (find-files "." "\\.(log|aux)$"))
@@ -1022,6 +1023,14 @@ book).")
                  ;; doesn't have its own format file, we need to copy it.
                  (copy-file "web2c/pdfetex.fmt"
                             (string-append web2c "/pdftex.fmt"))
+                 ;; "source" is missing the support files as per doc/latex/base/manifest.txt.
+                 ;; FIXME: We are probably not packaging this right.
+                 (for-each (lambda (file)
+                             (install-file
+                              (string-append support-files "/" file)
+                              target))
+                           '("ltxguide.cls" "ltnews.cls" "minimal.cls" "idx.tex"
+                             "lablst.tex" "testpage.tex" "ltxcheck.tex"))
                  #t))))))
       (native-inputs
        `(("texlive-bin" ,texlive-bin)
@@ -1044,6 +1053,18 @@ book).")
          ("texlive-generic-config"
           ,(texlive-dir "tex/generic/config/"
                         "19vj088p4kkp6xll0141m4kl6ssgdzhs3g10i232khb07aqiag8s"))
+         ("texlive-latex-base-support-files"
+          ,(origin
+             (method svn-fetch)
+             (uri (svn-reference
+                   (url (string-append "svn://www.tug.org/texlive/tags/"
+                                       %texlive-tag "/Master/texmf-dist/"
+                                       "/tex/latex/base"))
+                   (revision %texlive-revision)))
+             (file-name (string-append name "-" version "-checkout"))
+             (sha256
+              (base32
+               "16bs9pi3nq407xhg59glklqv43v102cg3yim6k3zcri5d9nkbv3a"))))
          ("texlive-tex-plain" ,texlive-tex-plain)
          ("texlive-fonts-cm" ,texlive-fonts-cm)
          ("texlive-fonts-latex" ,texlive-fonts-latex)
-- 
2.18.0

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [bug#32432] [PATCH 2/2] gnu: asymptote: Use minimal texlive-union.
  2018-08-13 20:43 [bug#32432] [PATCH 1/2] gnu: texlive-latex-base: Include support files Pierre Neidhardt
@ 2018-08-13 20:44 ` Pierre Neidhardt
  2018-08-21 14:34 ` bug#32432: [PATCH 1/2] gnu: texlive-latex-base: Include support files Pierre Neidhardt
  1 sibling, 0 replies; 3+ messages in thread
From: Pierre Neidhardt @ 2018-08-13 20:44 UTC (permalink / raw)
  To: 32432

* gnu/packages/plotutils.scm (asymptote)[native-inputs]: Replace texlive with texlive-union.
---
 gnu/packages/plotutils.scm | 16 +++++++++++++++-
 1 file changed, 15 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/plotutils.scm b/gnu/packages/plotutils.scm
index ab0ca0852..0e65cb319 100644
--- a/gnu/packages/plotutils.scm
+++ b/gnu/packages/plotutils.scm
@@ -194,7 +194,15 @@ colors, styles, options and details.")
     (native-inputs
      `(("gs" ,ghostscript)              ;For tests
        ("texinfo" ,texinfo)             ;For generating documentation
-       ("texlive" ,texlive)             ;For tests and documentation
+       ;; For the manual and the tests.
+       ("texlive" ,(texlive-union (list texlive-fonts-amsfonts
+                                        texlive-generic-ifxetex
+                                        texlive-latex-amsfonts
+                                        texlive-latex-geometry
+                                        texlive-latex-graphics
+                                        texlive-latex-oberdiek
+                                        texlive-latex-parskip
+                                        texlive-tex-texinfo)))
        ("emacs" ,emacs-minimal)
        ("perl" ,perl)))
     (inputs
@@ -234,6 +242,12 @@ colors, styles, options and details.")
            ;; "failed to create directory /homeless-shelter/.asy" error.
            (lambda _
              (setenv "HOME" "/tmp")
+             ;; The "gs" test fails, complaining about an incompatible
+             ;; Ghostscript version.  Not sure what's going on...  Is this
+             ;; because I've just replaced texlive with texlive-union?
+             (substitute* "tests/Makefile"
+               (("^(TESTDIRS =.*) gs(.*)" begin end)
+                (string-append begin " " end)))
              #t))
          (add-after 'install 'install-Emacs-data
            (lambda* (#:key outputs #:allow-other-keys)
-- 
2.18.0

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* bug#32432: [PATCH 1/2] gnu: texlive-latex-base: Include support files.
  2018-08-13 20:43 [bug#32432] [PATCH 1/2] gnu: texlive-latex-base: Include support files Pierre Neidhardt
  2018-08-13 20:44 ` [bug#32432] [PATCH 2/2] gnu: asymptote: Use minimal texlive-union Pierre Neidhardt
@ 2018-08-21 14:34 ` Pierre Neidhardt
  1 sibling, 0 replies; 3+ messages in thread
From: Pierre Neidhardt @ 2018-08-21 14:34 UTC (permalink / raw)
  To: 32432-done

[-- Attachment #1: Type: text/plain, Size: 6 bytes --]

close

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-08-21 14:35 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-08-13 20:43 [bug#32432] [PATCH 1/2] gnu: texlive-latex-base: Include support files Pierre Neidhardt
2018-08-13 20:44 ` [bug#32432] [PATCH 2/2] gnu: asymptote: Use minimal texlive-union Pierre Neidhardt
2018-08-21 14:34 ` bug#32432: [PATCH 1/2] gnu: texlive-latex-base: Include support files Pierre Neidhardt

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.