From 85bf43ebf72446b765982b00224d7f4610a00482 Mon Sep 17 00:00:00 2001 From: Raghav Gururajan Date: Fri, 7 Aug 2020 22:44:20 -0400 Subject: [PATCH 48/65] gnu: Add latex2html. * gnu/packages/documentation.scm (latex2html): New variable. --- gnu/packages/documentation.scm | 44 ++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/gnu/packages/documentation.scm b/gnu/packages/documentation.scm index a3a07f56db..18e3ce60f1 100644 --- a/gnu/packages/documentation.scm +++ b/gnu/packages/documentation.scm @@ -46,6 +46,50 @@ #:use-module (gnu packages perl) #:use-module (gnu packages xml)) +(define-public latex2html + (package + (name "latex2html") + (version "2020.2") + (source + (origin + (method git-fetch) + (uri + (git-reference + (url "https://github.com/latex2html/latex2html.git") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1icyl6kl60wh7cavprgbd8q6lpjwr7wn24m34kpiif7ahknhcbcm")))) + (build-system gnu-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-after 'unpack 'patch-configure + (lambda* (#:key outputs #:allow-other-keys) + (substitute* "configure" + (("/usr/local") + (assoc-ref outputs "out")) + (("\\$\\{CONFIG_SHELL-/bin/sh\\}") + (which "bash"))) + #t)) + (replace 'configure + (lambda _ + (invoke "./configure") + #t)) + (add-after 'configure 'patch-cfgcache + (lambda* (#:key outputs #:allow-other-keys) + (substitute* "cfgcache.pm" + (("/usr/local") + (assoc-ref outputs "out"))) + #t))))) + (inputs + `(("perl" ,perl))) + (synopsis "LaTeX documents to HTML") + (description "LaTeX2HTML is a utility that converts LaTeX documents to web +pages in HTML.") + (home-page "https://www.latex2html.org/") + (license gpl2+))) + (define-public asciidoc (package (name "asciidoc") -- 2.28.0