Archived
1
0
Fork 0

gnu: ocaml-bibtex2html: Improve package style.

* gnu/packages/ocaml.scm (ocaml-bibtex2html)[origin]<uri>: Re-use version.
[arguments]: Use G-expressions.  Remove trailing #T from phases.
[native-inputs]: Remove labels.
This commit is contained in:
Nicolas Goaziou 2023-07-01 19:11:30 +02:00
parent 97a59bbef9
commit fc91998274
No known key found for this signature in database
GPG key ID: DA00B4F048E92F2D

View file

@ -10239,28 +10239,32 @@ SHA384, SHA512, Blake2b, Blake2s and RIPEMD160.")
(name "ocaml-bibtex2html") (name "ocaml-bibtex2html")
(version "1.99") (version "1.99")
(source (source
(origin (origin
(method url-fetch) (method url-fetch)
(uri "https://www.lri.fr/~filliatr/ftp/bibtex2html/bibtex2html-1.99.tar.gz") (uri (string-append "https://www.lri.fr/~filliatr/ftp/bibtex2html/"
(sha256 (base32 "07gzrs4lfrkvbn48cgn2gn6c7cx3jsanakkrb2irj0gmjzfxl96j")))) "bibtex2html-" version ".tar.gz"))
(sha256
(base32
"07gzrs4lfrkvbn48cgn2gn6c7cx3jsanakkrb2irj0gmjzfxl96j"))))
(build-system ocaml-build-system) (build-system ocaml-build-system)
(arguments (arguments
`(#:phases (list
(modify-phases %standard-phases #:phases
#~(modify-phases %standard-phases
(add-after 'unpack 'patch-/bin/sh (add-after 'unpack 'patch-/bin/sh
(lambda _ (lambda _
(substitute* "configure" (("/bin/sh") (which "bash"))) (substitute* "configure" (("/bin/sh") (which "bash")))
(setenv "HOME" (getcwd)) ;; mktexfmt needs writable home directory ;; mktexfmt needs writable home directory.
#t))))) (setenv "HOME" (getcwd)))))))
(native-inputs (native-inputs
`(("which" ,which) (list (texlive-updmap.cfg
("texlive" ,(texlive-updmap.cfg (list texlive-bibtex
(list texlive-bibtex texlive-hyperref
texlive-hyperref texlive-infwarerr
texlive-infwarerr texlive-kvoptions
texlive-kvoptions texlive-pdftexcmds
texlive-pdftexcmds texlive-preprint))
texlive-preprint))))) which))
(propagated-inputs (propagated-inputs
(list hevea)) (list hevea))
(home-page "https://www.lri.fr/~filliatr/bibtex2html/") (home-page "https://www.lri.fr/~filliatr/bibtex2html/")