unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#49324] [PATCH] gnu: Add libmobi.
@ 2021-07-02  5:57 la snesne
  2021-07-30 20:59 ` bug#49324: " Ludovic Courtès
  0 siblings, 1 reply; 2+ messages in thread
From: la snesne @ 2021-07-02  5:57 UTC (permalink / raw)
  To: 49324; +Cc: la snesne

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

diff --git a/gnu/packages/ebook.scm b/gnu/packages/ebook.scm
index 48f005f51a..c7f9b3da29 100644
--- a/gnu/packages/ebook.scm
+++ b/gnu/packages/ebook.scm
@@ -8,6 +8,7 @@
 ;;; Copyright © 2020 Marius Bakke <mbakke@fastmail.com>
 ;;; Copyright © 2020, 2021 Vinicius Monego <monego@posteo.net>
 ;;; Copyright © 2020 Zheng Junjie <873216071@qq.com>
+;;; Copyright © 2021 la snesne <lasnesne@lagunposprasihopre.org>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -35,6 +36,7 @@
   #:use-module (guix build-system meson)
   #:use-module (guix build-system python)
   #:use-module (gnu packages)
+  #:use-module (gnu packages autotools)
   #:use-module (gnu packages compression)
   #:use-module (gnu packages curl)
   #:use-module (gnu packages databases)
@@ -596,3 +598,46 @@ Some of the current features:
     (description "xCHM is a graphical CHM file viewer.  It is a frontend to
 the CHM library CHMLIB.")
     (license license:gpl2+)))
+
+(define-public libmobi
+  (package
+    (name "libmobi")
+    (version "0.6")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/bfabiszewski/libmobi/")
+                    (commit (string-append "v" version))))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "0yps72cm609xn2k7alflkdhp9kgr1w7zzyxjygz0n1kqrdcplihh"))))
+    (build-system gnu-build-system)
+    (native-inputs
+     `(("autoconf" ,autoconf)
+       ("automake" ,automake)
+       ("libtool" ,libtool)))
+    (inputs
+     `(("zlib" ,zlib)
+       ("libxml2" ,libxml2)))
+    (home-page "https://github.com/bfabiszewski/libmobi/")
+    (synopsis "C library for handling MOBI formats")
+    (description "C library for handling MOBI ebook
+format documents, with following features.
+@itemize
+@item reading and parsing:
+@itemize
+@item some older text Palmdoc formats (pdb),
+@item Mobipocket files (prc, mobi),
+@item newer MOBI files including KF8 format (azw, azw3),
+@item Replica Print files (azw4)
+@end itemize
+@item recreating source files using indices
+@item reconstructing references (links and embedded) in html files
+@item reconstructing source structure that can be fed back to kindlegen
+@item reconstructing dictionary markup (orth, infl tags)
+@item writing back loaded documents
+@item metadata editing
+@item handling encrypted documents
+@end itemize")
+    (license license:lgpl3)))
-- 
2.32.0





^ permalink raw reply related	[flat|nested] 2+ messages in thread

* bug#49324: [PATCH] gnu: Add libmobi.
  2021-07-02  5:57 [bug#49324] [PATCH] gnu: Add libmobi la snesne
@ 2021-07-30 20:59 ` Ludovic Courtès
  0 siblings, 0 replies; 2+ messages in thread
From: Ludovic Courtès @ 2021-07-30 20:59 UTC (permalink / raw)
  To: la snesne; +Cc: 49324-done

[-- Attachment #1: Type: text/plain, Size: 327 bytes --]

Hi,

la snesne <lasnesne@lagunposprasihopre.org> skribis:

> * gnu/packages/ebook.scm (libmobi): New variable.

Applied with the minor tweaks below (regarding the license, note that
source file headers explicitly say “version 3 or any later”, hence
‘lgpl3+’.)

Thanks, and sorry for the delay!

Ludo’.


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Type: text/x-patch, Size: 864 bytes --]

diff --git a/gnu/packages/ebook.scm b/gnu/packages/ebook.scm
index abd8e3005c..003ea0c743 100644
--- a/gnu/packages/ebook.scm
+++ b/gnu/packages/ebook.scm
@@ -622,8 +622,9 @@ the CHM library CHMLIB.")
        ("libxml2" ,libxml2)))
     (home-page "https://github.com/bfabiszewski/libmobi/")
     (synopsis "C library for handling MOBI formats")
-    (description "C library for handling MOBI ebook
-format documents, with following features.
+    (description "Libmobi is a C library for handling MOBI ebook
+format documents, with the following features:
+
 @itemize
 @item reading and parsing:
 @itemize
@@ -639,5 +640,5 @@ format documents, with following features.
 @item writing back loaded documents
 @item metadata editing
 @item handling encrypted documents
-@end itemize")
-    (license license:lgpl3)))
+@end itemize\n")
+    (license license:lgpl3+)))

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-07-30 21:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-02  5:57 [bug#49324] [PATCH] gnu: Add libmobi la snesne
2021-07-30 20:59 ` bug#49324: " Ludovic Courtès

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).