From 14b2422cef6cbf47b4b79c23d1d9f68694cfb5a6 Mon Sep 17 00:00:00 2001 From: Olivier Dion Date: Sat, 22 Apr 2023 12:57:10 -0400 Subject: gnu: Add diffpdf. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * gnu/packages/pdf.scm (diffpdf): New variable. Co-authored-by: Ludovic Courtès --- gnu/packages/pdf.scm | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/gnu/packages/pdf.scm b/gnu/packages/pdf.scm index ff7d895774..ddac5537f0 100644 --- a/gnu/packages/pdf.scm +++ b/gnu/packages/pdf.scm @@ -78,6 +78,7 @@ (define-module (gnu packages pdf) #:use-module (gnu packages gtk) #:use-module (gnu packages image) #:use-module (gnu packages javascript) + #:use-module (gnu packages kde-frameworks) #:use-module (gnu packages lesstif) #:use-module (gnu packages libffi) #:use-module (gnu packages linux) @@ -166,6 +167,33 @@ (define-public a4pdf convert data in any way.") (license license:asl2.0))) +(define-public diffpdf + (let ((commit "ba68231d3d05e0cb3a2d4a4fca8b70d4044f4303") + (revision "1")) + (package + (name "diffpdf") + (version (git-version "2.1.3.1" revision commit)) + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://gitlab.com/eang/diffpdf") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1vwgv28b291lrcs9fljnlbnicv16lwj4vvl4bz6w3ldp9n5isjmf")))) + (build-system cmake-build-system) + (arguments + `(#:tests? #f)) + (inputs (list qtbase-5 qttools-5 poppler-qt5)) + (native-inputs (list pkg-config extra-cmake-modules)) + (home-page "http://www.qtrac.eu/diffpdf-foss.html") + (synopsis "Compare two PDF files") + (description + "@command{diffpdf} lets you compare PDF files, offering three +comparison modes: words, characters, and appearance.") + (license license:gpl2)))) + (define-public extractpdfmark (package (name "extractpdfmark") -- cgit v1.2.3