Archived
1
0
Fork 0

gnu: latex2html: Update to 2022.2, use new package style.

* gnu/packages/documentation.scm (latex2html): Update to 2022.2.
[arguments]: Use G-expressions. Remove trailing #t. Use #$output instead of
assoc-ref.

Signed-off-by: Christopher Baines <mail@cbaines.net>
This commit is contained in:
kiasoc5 2022-12-26 15:55:16 -05:00 committed by Christopher Baines
parent bc61a788b3
commit a5c422f958
No known key found for this signature in database
GPG key ID: 5E28A33B0B84F577

View file

@ -66,7 +66,7 @@
(define-public latex2html (define-public latex2html
(package (package
(name "latex2html") (name "latex2html")
(version "2020.2") (version "2022.2")
(source (source
(origin (origin
(method git-fetch) (method git-fetch)
@ -76,29 +76,26 @@
(commit (string-append "v" version)))) (commit (string-append "v" version))))
(file-name (git-file-name name version)) (file-name (git-file-name name version))
(sha256 (sha256
(base32 "1icyl6kl60wh7cavprgbd8q6lpjwr7wn24m34kpiif7ahknhcbcm")))) (base32 "1z71anjzxy5jsdlaqba4w9spncc6iycldarnr2z1dq8xmk6yhpjn"))))
(build-system gnu-build-system) (build-system gnu-build-system)
(arguments (arguments
`(#:phases (list #:phases
(modify-phases %standard-phases #~(modify-phases %standard-phases
(add-after 'unpack 'patch-configure (add-after 'unpack 'patch-configure
(lambda* (#:key outputs #:allow-other-keys) (lambda* (#:key outputs #:allow-other-keys)
(substitute* "configure" (substitute* "configure"
(("/usr/local") (("/usr/local")
(assoc-ref outputs "out")) #$output)
(("\\$\\{CONFIG_SHELL-/bin/sh\\}") (("\\$\\{CONFIG_SHELL-/bin/sh\\}")
(which "bash"))) (which "bash")))))
#t)) (replace 'configure
(replace 'configure (lambda _
(lambda _ (invoke "./configure")))
(invoke "./configure") (add-after 'configure 'patch-cfgcache
#t)) (lambda* (#:key outputs #:allow-other-keys)
(add-after 'configure 'patch-cfgcache (substitute* "cfgcache.pm"
(lambda* (#:key outputs #:allow-other-keys) (("/usr/local")
(substitute* "cfgcache.pm" #$output)))))))
(("/usr/local")
(assoc-ref outputs "out")))
#t)))))
(inputs (inputs
(list perl)) (list perl))
(synopsis "LaTeX documents to HTML") (synopsis "LaTeX documents to HTML")