aboutsummaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorRicardo Wurmus <rekado@elephly.net>2015-08-26 23:23:31 +0200
committerRicardo Wurmus <rekado@elephly.net>2015-08-31 22:23:09 +0200
commit3efb57eaf45b47607aba777b993d9a839bb9d1de (patch)
treed97fb2e2d76aae9264e6dff5cc5e42f620721aaf /gnu
parent8410cb62516d1dfb979685a41791c09aeb1e19c5 (diff)
downloadpatches-3efb57eaf45b47607aba777b993d9a839bb9d1de.tar
patches-3efb57eaf45b47607aba777b993d9a839bb9d1de.tar.gz
gnu: Add python-poppler-qt4.
* gnu/packages/pdf.scm (python-poppler-qt4): New variable.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/pdf.scm38
1 files changed, 38 insertions, 0 deletions
diff --git a/gnu/packages/pdf.scm b/gnu/packages/pdf.scm
index f8f05cd3b8..5897974e78 100644
--- a/gnu/packages/pdf.scm
+++ b/gnu/packages/pdf.scm
@@ -25,6 +25,7 @@
#:use-module (guix download)
#:use-module (guix build-system gnu)
#:use-module (guix build-system cmake)
+ #:use-module (guix build-system python)
#:use-module (gnu packages)
#:use-module (gnu packages compression)
#:use-module (gnu packages fontutils)
@@ -111,6 +112,43 @@
,@(package-inputs poppler)))
(synopsis "Qt4 frontend for the Poppler PDF rendering library")))
+(define-public python-poppler-qt4
+ (package
+ (name "python-poppler-qt4")
+ (version "0.24.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (string-append "https://pypi.python.org/packages/source/p"
+ "/python-poppler-qt4/python-poppler-qt4-"
+ version ".tar.gz"))
+ (sha256
+ (base32
+ "0x63niylkk4q3h3ay8zrk3m1xiik0x3hlr4gvj7kswx48qi1vb99"))))
+ (build-system python-build-system)
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (add-after
+ 'unpack 'patch-poppler-include-paths
+ (lambda _
+ (substitute* (find-files "." "poppler-.*\\.sip")
+ (("qt4/poppler-.*\\.h" header)
+ (string-append "poppler/" header)))
+ #t)))))
+ (native-inputs
+ `(("pkg-config" ,pkg-config)))
+ (inputs
+ `(("python-sip" ,python-sip)
+ ("python-pyqt-4" ,python-pyqt-4)
+ ("poppler-qt4" ,poppler-qt4)))
+ (home-page "https://pypi.python.org/pypi/python-poppler-qt4")
+ (synopsis "Python bindings for Poppler-Qt4")
+ (description
+ "This package provides Python bindings for the Qt4 interface of the
+Poppler PDF rendering library.")
+ (license license:lgpl2.1+)))
+
(define-public xpdf
(package
(name "xpdf")