From 1cbb9c0f47b24f3b66c7e368946439dfaa79ad11 Mon Sep 17 00:00:00 2001 From: Andreas Enge Date: Mon, 24 Mar 2025 14:50:48 +0100 Subject: [PATCH] gnu: podofo: Add 0.10.4. * gnu/packages/pdf.scm (podofo): Add variable for version 0.10.4. Rename old variable to... (podofo-0.9): ...this. * gnu/packages/ebook.scm (calibre): Use podofo-0.9 as input. Change-Id: I5cb504b82934b039b7ba75cf07b9e57aee3a697a --- gnu/packages/ebook.scm | 2 +- gnu/packages/pdf.scm | 38 +++++++++++++++++++++++++++++++++++++- 2 files changed, 38 insertions(+), 2 deletions(-) diff --git a/gnu/packages/ebook.scm b/gnu/packages/ebook.scm index 0cd2b3172418e53fe3314405feddca3212933cb4..8200f135548e3ac30c323c4f8fcd2dcee5913ea9 100644 --- a/gnu/packages/ebook.scm +++ b/gnu/packages/ebook.scm @@ -176,7 +176,7 @@ with Microsoft Compiled HTML (CHM) files") libusb openssl optipng - podofo + podofo-0.9 poppler python-apsw python-beautifulsoup4 diff --git a/gnu/packages/pdf.scm b/gnu/packages/pdf.scm index 37d2f7474b4e1b490db10a612ad3c2afb984e5e9..6340f9b3bf638f50ca0e1e4382c608d36fdd1c30 100644 --- a/gnu/packages/pdf.scm +++ b/gnu/packages/pdf.scm @@ -752,7 +752,7 @@ minimalistic interface and an interface that mainly focuses on keyboard interaction.") (license license:zlib))) -(define-public podofo +(define-public podofo-0.9 (package (name "podofo") (version "0.9.8") @@ -798,6 +798,42 @@ for applications that wish to do lower level manipulation of PDF, such as extracting content or merging files.") (license license:lgpl2.0+))) +(define-public podofo + (package + (name "podofo") + (version "0.10.4") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/podofo/podofo") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1ffdx3ghz0an3fkz72m0q77g5ipcriapxnphha20gk4b575a93v5")))) + (build-system cmake-build-system) + (native-inputs + (list cppunit pkg-config)) + (inputs + (list fontconfig + freetype + libjpeg-turbo + libpng + libtiff + libxml2 + lua-5.1 + openssl + zlib)) + (home-page "https://github.com/podofo/podofo") + (synopsis "Tools to work with the PDF file format") + (description + "PoDoFo is a C++ library and set of command-line tools to work with the +PDF file format. It can parse PDF files and load them into memory, and makes +it easy to modify them and write the changes to disk. It is primarily useful +for applications that wish to do lower level manipulation of PDF, such as +extracting content or merging files.") + (license license:lgpl2.0+))) + (define-public python-pydyf (package (name "python-pydyf")