Subject: [PATCH] gnu: Add xchm.
From: "Jovany Leandro G.C" <[email-masked]>
To: [email-masked]
Cc: "Jovany Leandro G.C" <[email-masked]>
Date: Wed, 24 Jul 2019 20:35:15 -0500
List-Id: <debbugs-submit.debbugs.gnu.org>

* gnu/packages/ebook.scm (xchm): New variable.
---
 gnu/packages/ebook.scm | 28 ++++++++++++++++++++++++++++
 1 file changed, 28 insertions(+)

diff --git a/gnu/packages/ebook.scm b/gnu/packages/ebook.scm
index cf424f285d..7c919710d4 100644
--- a/gnu/packages/ebook.scm
+++ b/gnu/packages/ebook.scm
@@ -330,3 +330,31 @@ following formats:
 @item XHTML
 @end enumerate")
     (license license:gpl2+)))
+
+(define-public xchm
+  (package
+    (name "xchm")
+    (version "1.30")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append "https://github.com/rzvncj/xCHM/archive/"
+                                  version ".tar.gz"))
+              (file-name (string-append name "-" version ".tar.gz"))
+              (sha256
+               (base32
+                "13733g2bz84a15z08qwhrdcn0ff6g9c0aabdn0kzvx0nanj9vra9"))))
+    (build-system gnu-build-system)
+    (inputs
+     `(("wxwidgets" ,wxwidgets)
+       ("chmlib" ,chmlib)))
+    (native-inputs
+     `(("pkg-config" ,pkg-config)
+       ("autoconf" ,autoconf)
+       ("automake" ,automake)
+       ("libtool" ,libtool)
+       ("gettext" ,gettext-minimal)))
+    (home-page "https://github.com/rzvncj/xCHM")
+    (synopsis "UNIX CHM Viewer")
+    (description "xCHM is a cross-platform GPL frontend for CHMLIB written
+with the wxWidgets framework.")
+    (license license:gpl2+)))
-- 
2.19.0