From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id KJCEIqWs3mAYbAAAgWs5BA (envelope-from ) for ; Fri, 02 Jul 2021 08:05:25 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id UB4jHqWs3mDMOQAAbx9fmQ (envelope-from ) for ; Fri, 02 Jul 2021 06:05:25 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 0C3F31AF96 for ; Fri, 2 Jul 2021 08:05:25 +0200 (CEST) Received: from localhost ([::1]:59970 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lzCIl-0007xe-4O for larch@yhetil.org; Fri, 02 Jul 2021 02:05:23 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47992) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lzCIQ-0007xH-GG for guix-patches@gnu.org; Fri, 02 Jul 2021 02:05:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:50709) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lzCIQ-00056a-4y for guix-patches@gnu.org; Fri, 02 Jul 2021 02:05:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lzCIP-0001we-Nd for guix-patches@gnu.org; Fri, 02 Jul 2021 02:05:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#49324] [PATCH] gnu: Add libmobi. Resent-From: la snesne Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 02 Jul 2021 06:05:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 49324 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 49324@debbugs.gnu.org Cc: la snesne X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16252058597420 (code B ref -1); Fri, 02 Jul 2021 06:05:01 +0000 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 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-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1625205925; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=meMTCFLbmBeBAAzC61VTAC7dJc9j8Wsr2z6nPYpAgCg=; b=tntBjnBx85Sfpw5L6aj3vXXKxXrCXhgy1dTD+UsTN1dRDCqQcUlIkZV1H+A0RU8uUeT+Fn y4KiXPfc7dmIfcDMFjqksG10OL2dAfraJtLQDtGzjAqGUURh7l+ETzEEEVUoXu2ZfB3gio R81QbmX48kLsSTGsiEn5WCPYiu3Qn2IIk1xqE9iphhkHUtVuNFNEvBslTeP/Wx4k7e0A80 q1sFDPZhIsSaqkwPvg5d2WFdoujrWuFTqyZcfykrqlHJC/F8jYjlk/zBQedARlJvinpxu0 hwmhz17GxFXBiPbnl6VvNvA3813CIC212A6HZ2fuSSA8+yzr1AlAIZ7aZ1qIug== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1625205925; a=rsa-sha256; cv=none; b=iQaXWuJgOC2xv4zmKIugVIuXTGfht+Nt4ZnOc8u2QMc9WSzkKcgZNuXFdmibJo5/N3E4Wj R3NGRojfHtVHRF6irx8VomcbBli3R1SqjDVO2W1Nite9wuNJYqMz/3nXAR1vwVU2sxjdQC 4mLQtPJRx4/PKda+pLOhxCBGi2kQRVeVqlPOhg4vp7NfJusG86YlzzeQsZCr08wRxo0DiZ zwcNqieSDgZo5nD4v2emGZuCh/je98Wym5NMY0CEx0Fyw6CFI2PcIkTJCGZq+e6m/e4St/ 2qUXSIHT5uMMcAYOfGwqjll9/w/TrEgsYHT/IlkeTfpJGPSKLg6Ll2+9wEbwsg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: 0.08 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: 0C3F31AF96 X-Spam-Score: 0.08 X-Migadu-Scanner: scn0.migadu.com X-TUID: cjYYhi9j5LPp * 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