3
0
Fork 0
forked from mirrors/nixpkgs

poppler: add Qt 5 version

This commit is contained in:
Thomas Tuegel 2015-01-19 11:12:04 -06:00
parent d927da8dae
commit 3319507b70
2 changed files with 12 additions and 2 deletions

View file

@ -1,6 +1,6 @@
{ stdenv, fetchurl, fetchpatch, pkgconfig, cmake, libiconvOrEmpty, libintlOrEmpty
, zlib, curl, cairo, freetype, fontconfig, lcms, libjpeg, openjpeg
, qt4Support ? false, qt4 ? null
, qt4Support ? false, qt4 ? null, qt5
}:
let
@ -71,4 +71,13 @@ let
'';
};
in { inherit poppler_glib poppler_qt4; } // poppler_glib
poppler_qt5 = poppler_drv "qt5" {
propagatedBuildInputs = [ qt5 poppler_glib ];
postConfigure = ''
mkdir -p "$out/lib/pkgconfig"
install -c -m 644 poppler-qt5.pc "$out/lib/pkgconfig"
cd qt5
'';
};
in { inherit poppler_glib poppler_qt4 poppler_qt5; } // poppler_glib

View file

@ -6856,6 +6856,7 @@ let
poppler = callPackage ../development/libraries/poppler { lcms = lcms2; };
popplerQt4 = poppler.poppler_qt4;
popplerQt5 = poppler.poppler_qt5;
popt = callPackage ../development/libraries/popt { };