From: Danny Milosavljevic <dannym@scratchpost.org>
To: 34198@debbugs.gnu.org
Subject: [bug#34198] [PATCH 2/2] gnu: Add diffpdf.
Date: Fri, 25 Jan 2019 17:48:02 +0100 [thread overview]
Message-ID: <20190125164802.17853-2-dannym@scratchpost.org> (raw)
In-Reply-To: <20190125164802.17853-1-dannym@scratchpost.org>
* gnu/packages/pdf.scm (diffpdf): New variable.
---
gnu/packages/pdf.scm | 43 +++++++++++++++++++++++++++++++++++++++++++
1 file changed, 43 insertions(+)
diff --git a/gnu/packages/pdf.scm b/gnu/packages/pdf.scm
index 956e25c6d..3b695f3a6 100644
--- a/gnu/packages/pdf.scm
+++ b/gnu/packages/pdf.scm
@@ -1130,3 +1130,46 @@ presentation. The input files processed by pdfpc are PDF documents.")
rendering of the file. The rendering is done by creating outline curves
through the Pango @code{ft2} backend.")
(license license:lgpl2.0+))))
+
+(define-public diffpdf
+ (package
+ (name "diffpdf")
+ (version "2.1.3")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (string-append "http://www.qtrac.eu/diffpdf-" version ".tar.gz"))
+ (sha256
+ (base32
+ "0cr468fi0d512jjj23r5flfzx957vibc9c25gwwhi0d773h2w566"))))
+ (build-system gnu-build-system)
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'patch-paths
+ (lambda* (#:key inputs #:allow-other-keys)
+ (substitute* "diffpdf.pro"
+ (("-lpoppler-qt4")
+ (string-append "-L" (assoc-ref inputs "poppler-qt4")
+ "/lib -lpoppler-qt4"))
+ (("/usr/local/include/poppler")
+ (string-append (assoc-ref inputs "poppler-qt4")
+ "/include/poppler")))
+ #t))
+ (replace 'configure
+ (lambda _
+ (invoke "lrelease" "diffpdf.pro")
+ (invoke "qmake")))
+ (replace 'install
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let* ((out (assoc-ref outputs "out"))
+ (out-bin (string-append out "/bin")))
+ (install-file "diffpdf" out-bin)
+ #t))))))
+ (inputs
+ `(("poppler-qt4" ,poppler-qt4) ; at least 0.20.1
+ ("qt-4" ,qt-4)))
+ (home-page "http://www.qtrac.eu/diffpdf-foss.html")
+ (synopsis "Compare two PDF files")
+ (description "This package provides a GUI tool to compare two PDF files.")
+ (license license:gpl2)))
next prev parent reply other threads:[~2019-01-25 16:49 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-01-25 16:43 [bug#34198] [PATCH 0/2] Add diffpdf Danny Milosavljevic
2019-01-25 16:48 ` [bug#34198] [PATCH 1/2] gnu: poppler-qt4: Enable qt4 frontend Danny Milosavljevic
2019-01-25 16:48 ` Danny Milosavljevic [this message]
2019-01-29 17:08 ` [bug#34198] [PATCH 2/2] gnu: Add diffpdf Ricardo Wurmus
2019-01-29 20:12 ` Danny Milosavljevic
2019-01-29 17:05 ` [bug#34198] [PATCH 1/2] gnu: poppler-qt4: Enable qt4 frontend Ricardo Wurmus
2019-01-29 20:09 ` Danny Milosavljevic
2019-01-31 21:59 ` Marius Bakke
2020-09-05 20:47 ` bug#34198: Closing Andreas Enge
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190125164802.17853-2-dannym@scratchpost.org \
--to=dannym@scratchpost.org \
--cc=34198@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).