From unknown Thu Jun 19 14:02:51 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#49324 <49324@debbugs.gnu.org> To: bug#49324 <49324@debbugs.gnu.org> Subject: Status: [PATCH] gnu: Add libmobi. Reply-To: bug#49324 <49324@debbugs.gnu.org> Date: Thu, 19 Jun 2025 21:02:51 +0000 retitle 49324 [PATCH] gnu: Add libmobi. reassign 49324 guix-patches submitter 49324 la snesne severity 49324 normal tag 49324 patch thanks From debbugs-submit-bounces@debbugs.gnu.org Fri Jul 02 02:04:19 2021 Received: (at submit) by debbugs.gnu.org; 2 Jul 2021 06:04:19 +0000 Received: from localhost ([127.0.0.1]:34022 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lzCHi-0001vc-S6 for submit@debbugs.gnu.org; Fri, 02 Jul 2021 02:04:19 -0400 Received: from lists.gnu.org ([209.51.188.17]:47404) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lzCHh-0001vU-3Q for submit@debbugs.gnu.org; Fri, 02 Jul 2021 02:04:17 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47698) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lzCHg-0007s6-Tp for guix-patches@gnu.org; Fri, 02 Jul 2021 02:04:16 -0400 Received: from [14.51.6.220] (port=46490 helo=localhost) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lzCHf-0004WS-92 for guix-patches@gnu.org; Fri, 02 Jul 2021 02:04:16 -0400 Received: from lagunposprasihopre.org (DD-WRT [192.168.1.1]) by localhost (OpenSMTPD) with ESMTPSA id 5d042139 (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO); Fri, 2 Jul 2021 05:57:21 +0000 (UTC) From: la snesne To: guix-patches@gnu.org Subject: [PATCH] gnu: Add libmobi. Date: Fri, 2 Jul 2021 14:57:15 +0900 Message-Id: <20210702055715.9047-1-lasnesne@lagunposprasihopre.org> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Host-Lookup-Failed: Reverse DNS lookup failed for 14.51.6.220 (failed) Received-SPF: none client-ip=14.51.6.220; envelope-from=lasnesne@lagunposprasihopre.org; helo=localhost X-Spam_score_int: 27 X-Spam_score: 2.7 X-Spam_bar: ++ X-Spam_report: (2.7 / 5.0 requ) BAYES_00=-1.9, FSL_HELO_NON_FQDN_1=0.001, HELO_LOCALHOST=3.828, RDNS_NONE=0.793, SPF_NONE=0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: submit Cc: la snesne X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) * 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 ;;; Copyright © 2020, 2021 Vinicius Monego ;;; Copyright © 2020 Zheng Junjie <873216071@qq.com> +;;; Copyright © 2021 la snesne ;;; ;;; 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 From debbugs-submit-bounces@debbugs.gnu.org Fri Jul 30 17:00:01 2021 Received: (at 49324-done) by debbugs.gnu.org; 30 Jul 2021 21:00:01 +0000 Received: from localhost ([127.0.0.1]:32828 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m9Zbt-00016a-09 for submit@debbugs.gnu.org; Fri, 30 Jul 2021 17:00:01 -0400 Received: from eggs.gnu.org ([209.51.188.92]:59492) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m9Zbr-00016O-3w for 49324-done@debbugs.gnu.org; Fri, 30 Jul 2021 16:59:59 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:56928) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m9Zbl-0002o0-Mo; Fri, 30 Jul 2021 16:59:53 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=45338 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m9Zbl-0003z1-DH; Fri, 30 Jul 2021 16:59:53 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: la snesne Subject: Re: bug#49324: [PATCH] gnu: Add libmobi. References: <20210702055715.9047-1-lasnesne@lagunposprasihopre.org> Date: Fri, 30 Jul 2021 22:59:52 +0200 In-Reply-To: <20210702055715.9047-1-lasnesne@lagunposprasihopre.org> (la snesne's message of "Fri, 2 Jul 2021 14:57:15 +0900") Message-ID: <87h7gbzfef.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 49324-done Cc: 49324-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi, la snesne skribis: > * gnu/packages/ebook.scm (libmobi): New variable. Applied with the minor tweaks below (regarding the license, note that source file headers explicitly say =E2=80=9Cversion 3 or any later=E2=80=9D= , hence =E2=80=98lgpl3+=E2=80=99.) Thanks, and sorry for the delay! Ludo=E2=80=99. --=-=-= Content-Type: text/x-patch Content-Disposition: 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+))) --=-=-=-- From unknown Thu Jun 19 14:02:51 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sat, 28 Aug 2021 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator