[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] gnu: add dependencies to poppler.

From: Cyril Roelandt
Subject: [PATCH] gnu: add dependencies to poppler.
Date: Sun, 24 Mar 2013 21:08:52 +0100

Add libpng and zlib to the inputs.

This patch is quite simple. It adds both libpng (which  was already available
in Guix) and zlib (which has to be explicitely enabled) to poppler. Note that
zlib is not enabled by default, even if it is found on the system, because it
is "not safe" according to the poppler developers. Andreas, do you know why ?
Maybe we should remove it from the dependencies.

I also listed the dependencies that are not yet satisfied. I think I will take
care of libopenjpeg soon, but it requires cmake, and I'd rather write a cmake
build system first.


 gnu/packages/pdf.scm |   13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/pdf.scm b/gnu/packages/pdf.scm
index 5a9d513..a172414 100644
--- a/gnu/packages/pdf.scm
+++ b/gnu/packages/pdf.scm
@@ -25,6 +25,7 @@
   #:use-module (gnu packages compression)
   #:use-module (gnu packages fontutils)
   #:use-module (gnu packages libjpeg)
+  #:use-module (gnu packages libpng)
   #:use-module (gnu packages libtiff)
   #:use-module (gnu packages pkg-config))
@@ -40,15 +41,25 @@
    (build-system gnu-build-system)
    ;; FIXME: more dependencies could  be added
+   ;;  cairo output:       no (requires cairo >= 1.10.0)
+   ;;  qt4 wrapper:        no
+   ;;  glib wrapper:       no (requires cairo output)
+   ;;    introspection:    no
+   ;;  use gtk-doc:        no
+   ;;  use libcurl:        no
+   ;;  use libopenjpeg:    no
    (inputs `(("fontconfig" ,fontconfig)
              ("freetype" ,freetype)
              ("libjpeg-8" ,libjpeg-8)
+             ("libpng" ,libpng)
              ("libtiff" ,libtiff)
              ("pkg-config" ,pkg-config)
              ("zlib" ,zlib)))
     `(#:tests? #f ; no test data provided with the tarball
-      #:configure-flags '("--enable-xpdf-headers"))) ; to install header files
+      #:configure-flags
+       '("--enable-xpdf-headers" ; to install header files
+         "--enable-zlib")))
    (synopsis "Poppler, a pdf rendering library")
     "Poppler is a PDF rendering library based on the xpdf-3.0 code base.")

reply via email to

[Prev in Thread] Current Thread [Next in Thread]