Archived
1
0
Fork 0

gnu: teximpatient: Update to 2.4-0.e3666ab.

* gnu/packages/tex.scm (teximpatient): Update to 2.4-0.e3666ab.
[source]: Use git repository.
[native-inputs]: Add autoconf.
[arguments]: Make build reproducible.

Signed-off-by: Christopher Baines <mail@cbaines.net>
This commit is contained in:
Morgan Smith 2022-11-06 21:15:24 -05:00 committed by Christopher Baines
parent 9ad311ec15
commit 2c1fc058c5
No known key found for this signature in database
GPG key ID: 5E28A33B0B84F577

View file

@ -8211,46 +8211,64 @@ develop documents with LaTeX, in a single application.")
(license license:gpl2+))) (license license:gpl2+)))
(define-public teximpatient (define-public teximpatient
;; The homepage seems to be distributing this version which is currently the
;; most recent commit
(let ((commit "e3666abff186832fd9c467ceda3958058f30bac2")
(revision "0"))
(package (package
(name "teximpatient") (name "teximpatient")
(version "2.4") (version (git-version "2.4" revision commit))
(source (origin (source (origin
(method url-fetch/tarbomb) (method git-fetch)
(uri (string-append "mirror://gnu/" name "/" name "-" (uri (git-reference
version ".tar.gz")) (url
"https://git.savannah.gnu.org/git/teximpatient.git/")
(commit commit)))
(file-name (git-file-name name version))
(sha256 (sha256
(base32 (base32
"0h56w22d99dh4fgld4ssik8ggnmhmrrbnrn1lnxi1zr0miphn1sd")))) "0r30383nmly7w29il6v3vmilnnyrzak0x0qmabjvnpaga9ansjmi"))))
(build-system gnu-build-system) (build-system gnu-build-system)
(arguments (arguments
`(#:tests? #f ; there are none `(#:tests? #f ;there are none
#:phases #:allowed-references ("out")
(modify-phases %standard-phases #:phases (modify-phases %standard-phases
(add-after 'unpack 'fix-packaging-error (add-after 'unpack 'fix-build
(lambda* (#:key inputs #:allow-other-keys) (lambda* (#:key inputs #:allow-other-keys)
;; This file should have been part of the tarball. (chdir "teximpatient")
(install-file (car
(find-files ;; Remove generated files
(assoc-ref inputs "automake") (for-each delete-file
"^install-sh$")) '("book.pdf"
".") "book.aux"
;; Remove generated file. "book.ccs"
(delete-file "book.pdf") "book.log"
#t))))) "book.idx"
(native-inputs "config.log"
`(("texlive" ,(texlive-updmap.cfg (list texlive-amsfonts "config.status"
"configure"
"Makefile"))
(delete-file-recursively "autom4te.cache")
;; make build reproducible
(substitute* "eplain.tex"
(("timestamp.*%")
(string-append "timestamp{"
,version "}"))))))))
(native-inputs (list autoconf automake
(texlive-updmap.cfg (list texlive-amsfonts
texlive-palatino texlive-palatino
texlive-zapfding texlive-zapfding
texlive-knuth-lib texlive-knuth-lib
texlive-mflogo-font texlive-mflogo-font
texlive-pdftex))) texlive-pdftex))))
("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")
(description "@i{TeX for the Impatient} is a ~350 page book on TeX, (description
"@i{TeX for the Impatient} is a ~350 page book on TeX,
plain TeX, and Eplain, originally written by Paul Abrahams, Kathryn Hargreaves, plain TeX, and Eplain, originally written by Paul Abrahams, Kathryn Hargreaves,
and Karl Berry.") and Karl Berry.")
(license license:fdl1.3+))) (license license:fdl1.3+))))
(define-public lyx (define-public lyx
(package (package