gnu: teximpatient: Build with texlive-union.

* gnu/packages/tex.scm (teximpatient)[source]: Use url-fetch/tarbomb, so that
we can...
[arguments]: ...remove the custom "unpack" phase; disable tests instead of
deleting the "check" phase; add phase "fix-packaging-error".
[native-inputs]: Replace texlive with a texlive-union containing
texlive-latex-amsfonts, texlive-fonts-amsfonts, texlive-fonts-adobe-palatino,
texlive-fonts-adobe-zapfding, texlive-fonts-knuth-lib,
texlive-fonts-mflogo-font, and texlive-generic-pdftex.
This commit is contained in:
Ricardo Wurmus 2019-03-01 23:25:20 +01:00
parent 4628315bfb
commit 4f2ee8e285
No known key found for this signature in database
GPG Key ID: 197A5888235FACAC
1 changed files with 21 additions and 19 deletions

View File

@ -5493,13 +5493,12 @@ PDF documents.")
develop documents with LaTeX, in a single application.") develop documents with LaTeX, in a single application.")
(license license:gpl2+))) (license license:gpl2+)))
(define-public teximpatient (define-public teximpatient
(package (package
(name "teximpatient") (name "teximpatient")
(version "2.4") (version "2.4")
(source (origin (source (origin
(method url-fetch) (method url-fetch/tarbomb)
(uri (string-append "mirror://gnu/" name "/" name "-" (uri (string-append "mirror://gnu/" name "/" name "-"
version ".tar.gz")) version ".tar.gz"))
(sha256 (sha256
@ -5507,25 +5506,28 @@ develop documents with LaTeX, in a single application.")
"0h56w22d99dh4fgld4ssik8ggnmhmrrbnrn1lnxi1zr0miphn1sd")))) "0h56w22d99dh4fgld4ssik8ggnmhmrrbnrn1lnxi1zr0miphn1sd"))))
(build-system gnu-build-system) (build-system gnu-build-system)
(arguments (arguments
`(#:phases `(#:tests? #f ; there are none
#:phases
(modify-phases %standard-phases (modify-phases %standard-phases
(delete 'check) (add-after 'unpack 'fix-packaging-error
;; Unfortunately some mistakes have been made in packaging. (lambda* (#:key inputs #:allow-other-keys)
;; Work around them here ... ;; This file should have been part of the tarball.
(replace 'unpack (install-file (car
(lambda* (#:key inputs outputs #:allow-other-keys) (find-files
(let ((srcdir "teximpatient-2.4")) (assoc-ref inputs "automake")
(system* "tar" "-xzf" (assoc-ref inputs "source") "^install-sh$"))
(string-append "--one-top-level=" srcdir)) ".")
(delete-file (string-append srcdir "/book.pdf")) ;; Remove generated file.
(install-file (car (delete-file "book.pdf")
(find-files #t)))))
(assoc-ref inputs "automake")
"^install-sh$"))
srcdir)
(chdir srcdir)))))))
(native-inputs (native-inputs
`(("texlive" ,texlive) `(("texlive" ,(texlive-union (list texlive-latex-amsfonts
texlive-fonts-amsfonts
texlive-fonts-adobe-palatino
texlive-fonts-adobe-zapfding
texlive-fonts-knuth-lib
texlive-fonts-mflogo-font
texlive-generic-pdftex)))
("automake" ,automake))) ("automake" ,automake)))
(home-page "https://www.gnu.org/software/teximpatient/") (home-page "https://www.gnu.org/software/teximpatient/")
(synopsis "Book on TeX, plain TeX and Eplain") (synopsis "Book on TeX, plain TeX and Eplain")