GNU bug report logs - #49324
[PATCH] gnu: Add libmobi.

Previous Next

Package: guix-patches;

Reported by: la snesne <lasnesne <at> lagunposprasihopre.org>

Date: Fri, 2 Jul 2021 06:05:01 UTC

Severity: normal

Tags: patch

Done: Ludovic Courtès <ludo <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 49324 in the body.
You can then email your comments to 49324 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to guix-patches <at> gnu.org:
bug#49324; Package guix-patches. (Fri, 02 Jul 2021 06:05:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to la snesne <lasnesne <at> lagunposprasihopre.org>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Fri, 02 Jul 2021 06:05:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: la snesne <lasnesne <at> lagunposprasihopre.org>
To: guix-patches <at> gnu.org
Cc: la snesne <lasnesne <at> lagunposprasihopre.org>
Subject: [PATCH] gnu: Add libmobi.
Date: Fri,  2 Jul 2021 14:57:15 +0900
* 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 <at> fastmail.com>
 ;;; Copyright © 2020, 2021 Vinicius Monego <monego <at> posteo.net>
 ;;; Copyright © 2020 Zheng Junjie <873216071 <at> qq.com>
+;;; Copyright © 2021 la snesne <lasnesne <at> 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





Reply sent to Ludovic Courtès <ludo <at> gnu.org>:
You have taken responsibility. (Fri, 30 Jul 2021 21:00:02 GMT) Full text and rfc822 format available.

Notification sent to la snesne <lasnesne <at> lagunposprasihopre.org>:
bug acknowledged by developer. (Fri, 30 Jul 2021 21:00:02 GMT) Full text and rfc822 format available.

Message #10 received at 49324-done <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: la snesne <lasnesne <at> lagunposprasihopre.org>
Cc: 49324-done <at> debbugs.gnu.org
Subject: Re: bug#49324: [PATCH] gnu: Add libmobi.
Date: Fri, 30 Jul 2021 22:59:52 +0200
[Message part 1 (text/plain, inline)]
Hi,

la snesne <lasnesne <at> 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’.

[Message part 2 (text/x-patch, inline)]
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+)))

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 28 Aug 2021 11:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 2 years and 233 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.