guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

branch master updated: gnu: Add html2text.


From: guix-commits
Subject: branch master updated: gnu: Add html2text.
Date: Tue, 27 Apr 2021 07:37:32 -0400

This is an automated email from the git hooks/post-receive script.

glv pushed a commit to branch master
in repository guix.

The following commit(s) were added to refs/heads/master by this push:
     new b43e9c8  gnu: Add html2text.
b43e9c8 is described below

commit b43e9c8ecd44b597936033eb441f50980d00c398
Author: Guillaume Le Vaillant <glv@posteo.net>
AuthorDate: Tue Apr 27 11:52:40 2021 +0200

    gnu: Add html2text.
    
    * gnu/packages/textutils.scm (html2text): New variable.
---
 gnu/packages/textutils.scm | 33 +++++++++++++++++++++++++++++++++
 1 file changed, 33 insertions(+)

diff --git a/gnu/packages/textutils.scm b/gnu/packages/textutils.scm
index c2eb7ca..398bfc2 100644
--- a/gnu/packages/textutils.scm
+++ b/gnu/packages/textutils.scm
@@ -1011,6 +1011,39 @@ indentation.
     (home-page "http://docx2txt.sourceforge.net";)
     (license license:gpl3+)))
 
+(define-public html2text
+  ;; Use commit directly to get the fixes to the installation phase
+  ;; that are not in a release yet.
+  (let ((commit "05364c1028026a87d6f45130a8e86e1ee67704d2")
+        (revision "1"))
+    (package
+      (name "html2text")
+      (version (git-version "2.0.1_pre" revision commit))
+      (source
+       (origin
+         (method git-fetch)
+         (uri (git-reference
+               (url "https://github.com/grobian/html2text";)
+               (commit (string-append commit))))
+         (file-name (git-file-name name version))
+         (sha256
+          (base32 "0n6pl0nijcn4z3p0dvf3gmvvpjq261pagnk84s9f78c4c55bw5cm"))))
+      (build-system gnu-build-system)
+      (arguments
+       `(#:phases
+         (modify-phases %standard-phases
+           (add-after 'unpack 'fix-paths
+             (lambda* (#:key outputs #:allow-other-keys)
+               (substitute* "Makefile.in"
+                 (("/usr/local")
+                  (assoc-ref outputs "out"))))))))
+      (home-page "https://github.com/grobian/html2text";)
+      (synopsis "HTML to plain text converter")
+      (description
+       "@code{html2text} is a command line utility that converts HTML
+documents into plain text.")
+      (license license:gpl2+))))
+
 (define-public odt2txt
   (package
     (name "odt2txt")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]