2010-12-14 14:30:06 +01:00
|
|
|
{ fetchurl, stdenv, qt4Support ? false, qt4, cairo, freetype, fontconfig, zlib,
|
|
|
|
libjpeg, pixman, curl, libpthreadstubs, libXau, libXdmcp, openjpeg,
|
|
|
|
libxml2, pkgconfig, glib, gtk, cmake, lcms }:
|
2008-07-17 17:02:57 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2010-12-14 14:30:06 +01:00
|
|
|
name = "poppler-0.14.5";
|
2008-07-17 17:02:57 +02:00
|
|
|
|
2009-02-21 00:43:29 +01:00
|
|
|
src = fetchurl {
|
2010-12-14 14:30:06 +01:00
|
|
|
url = "${meta.homepage}${name}.tar.gz";
|
|
|
|
sha256 = "0k41cj0yp3l7854y1hlghn2cgqmqq6hw5iz8i84q0w0s9iy321f8";
|
2009-02-21 00:43:29 +01:00
|
|
|
};
|
2007-11-11 17:00:51 +01:00
|
|
|
|
2010-12-14 14:30:06 +01:00
|
|
|
propagatedBuildInputs = [zlib glib cairo freetype fontconfig libjpeg gtk lcms
|
|
|
|
pixman curl libpthreadstubs libXau libXdmcp openjpeg libxml2 stdenv.gcc.libc]
|
2008-07-17 17:02:57 +02:00
|
|
|
++ (if qt4Support then [qt4] else []);
|
2007-11-11 17:00:51 +01:00
|
|
|
|
2010-12-14 14:30:06 +01:00
|
|
|
buildInputs = [ pkgconfig cmake ];
|
2007-11-11 17:00:51 +01:00
|
|
|
|
2010-12-14 14:30:06 +01:00
|
|
|
cmakeFlags = "-DENABLE_XPDF_HEADERS=ON -DENABLE_LIBCURL=ON -DENABLE_ZLIB=ON";
|
2008-07-17 17:02:57 +02:00
|
|
|
|
2009-02-21 22:53:50 +01:00
|
|
|
# XXX: The Poppler/Qt4 test suite refers to non-existent PDF files
|
|
|
|
# such as `../../../test/unittestcases/UseNone.pdf'.
|
2010-12-14 14:30:06 +01:00
|
|
|
#doCheck = !qt4Support;
|
|
|
|
checkTarget = "test";
|
2008-07-17 17:02:57 +02:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://poppler.freedesktop.org/;
|
|
|
|
description = "Poppler, a PDF rendering library";
|
2009-02-21 00:43:29 +01:00
|
|
|
|
|
|
|
longDescription = ''
|
|
|
|
Poppler is a PDF rendering library based on the xpdf-3.0 code base.
|
|
|
|
'';
|
|
|
|
|
2010-12-14 14:30:06 +01:00
|
|
|
platforms = if qt4Support
|
|
|
|
then qt4.meta.platforms
|
|
|
|
else stdenv.lib.platforms.all;
|
|
|
|
|
2008-07-17 17:02:57 +02:00
|
|
|
license = "GPLv2";
|
|
|
|
};
|
2007-11-11 17:00:51 +01:00
|
|
|
}
|