Merge pull request #117658 from r-ryantm/auto-update/poppler-glib
poppler: 21.02.0 -> 21.05.0
This commit is contained in:
commit
3f061ca18e
1 changed files with 73 additions and 26 deletions
|
@ -1,10 +1,30 @@
|
||||||
{ stdenv, lib, fetchurl, fetchpatch, cmake, ninja, pkg-config, libiconv, libintl
|
{ stdenv
|
||||||
, zlib, curl, cairo, freetype, fontconfig, lcms, libjpeg, openjpeg
|
, lib
|
||||||
|
, fetchurl
|
||||||
|
, fetchpatch
|
||||||
|
, cmake
|
||||||
|
, ninja
|
||||||
|
, pkg-config
|
||||||
|
, libiconv
|
||||||
|
, libintl
|
||||||
|
, zlib
|
||||||
|
, curl
|
||||||
|
, cairo
|
||||||
|
, freetype
|
||||||
|
, fontconfig
|
||||||
|
, lcms
|
||||||
|
, libjpeg
|
||||||
|
, openjpeg
|
||||||
, withData ? true, poppler_data
|
, withData ? true, poppler_data
|
||||||
, qt5Support ? false, qtbase ? null
|
, qt5Support ? false, qtbase ? null
|
||||||
, introspectionSupport ? false, gobject-introspection ? null
|
, introspectionSupport ? false, gobject-introspection ? null
|
||||||
, utils ? false, nss ? null
|
, utils ? false, nss ? null
|
||||||
, minimal ? false, suffix ? "glib"
|
, minimal ? false
|
||||||
|
, suffix ? "glib"
|
||||||
|
, inkscape
|
||||||
|
, cups-filters
|
||||||
|
, texlive
|
||||||
|
, scribusUnstable
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
|
@ -12,33 +32,46 @@ let
|
||||||
in
|
in
|
||||||
stdenv.mkDerivation (rec {
|
stdenv.mkDerivation (rec {
|
||||||
name = "poppler-${suffix}-${version}";
|
name = "poppler-${suffix}-${version}";
|
||||||
version = "21.02.0"; # beware: updates often break cups-filters build, check texlive and scribusUnstable too!
|
version = "21.05.0"; # beware: updates often break cups-filters build, check texlive and scribusUnstable too!
|
||||||
|
|
||||||
src = fetchurl {
|
|
||||||
url = "${meta.homepage}/poppler-${version}.tar.xz";
|
|
||||||
sha256 = "sha256-XBR1nJmJHm5HKs7W1fD/Haz4XYDNkCbTZcVcZT7feSw=";
|
|
||||||
};
|
|
||||||
|
|
||||||
outputs = [ "out" "dev" ];
|
outputs = [ "out" "dev" ];
|
||||||
|
|
||||||
buildInputs = [ libiconv libintl ] ++ lib.optional withData poppler_data;
|
src = fetchurl {
|
||||||
|
url = "${meta.homepage}/poppler-${version}.tar.xz";
|
||||||
|
sha256 = "sha256-2v1Te2gPrRIVvED8U9HzjoRJ18GFvGDVqJ4dJskNvYw=";
|
||||||
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [
|
||||||
|
cmake
|
||||||
|
ninja
|
||||||
|
pkg-config
|
||||||
|
];
|
||||||
|
|
||||||
|
buildInputs = [
|
||||||
|
libiconv
|
||||||
|
libintl
|
||||||
|
] ++ lib.optional withData [
|
||||||
|
poppler_data
|
||||||
|
];
|
||||||
|
|
||||||
# TODO: reduce propagation to necessary libs
|
# TODO: reduce propagation to necessary libs
|
||||||
propagatedBuildInputs = with lib;
|
propagatedBuildInputs = [
|
||||||
[ zlib freetype fontconfig libjpeg openjpeg ]
|
zlib
|
||||||
++ optionals (!minimal) [ cairo lcms curl ]
|
freetype
|
||||||
++ optional qt5Support qtbase
|
fontconfig
|
||||||
++ optional utils nss
|
libjpeg
|
||||||
++ optional introspectionSupport gobject-introspection;
|
openjpeg
|
||||||
|
] ++ lib.optionals (!minimal) [
|
||||||
nativeBuildInputs = [ cmake ninja pkg-config ];
|
cairo
|
||||||
|
lcms
|
||||||
# Workaround #54606
|
curl
|
||||||
preConfigure = lib.optionalString stdenv.isDarwin ''
|
] ++ lib.optionals qt5Support [
|
||||||
sed -i -e '1i cmake_policy(SET CMP0025 NEW)' CMakeLists.txt
|
qtbase
|
||||||
'';
|
] ++ lib.optionals utils [
|
||||||
|
nss
|
||||||
dontWrapQtApps = true;
|
] ++ lib.optionals introspectionSupport [
|
||||||
|
gobject-introspection
|
||||||
|
];
|
||||||
|
|
||||||
cmakeFlags = [
|
cmakeFlags = [
|
||||||
(mkFlag true "UNSTABLE_API_ABI_HEADERS") # previously "XPDF_HEADERS"
|
(mkFlag true "UNSTABLE_API_ABI_HEADERS") # previously "XPDF_HEADERS"
|
||||||
|
@ -49,6 +82,20 @@ stdenv.mkDerivation (rec {
|
||||||
(mkFlag qt5Support "QT5")
|
(mkFlag qt5Support "QT5")
|
||||||
];
|
];
|
||||||
|
|
||||||
|
dontWrapQtApps = true;
|
||||||
|
|
||||||
|
# Workaround #54606
|
||||||
|
preConfigure = lib.optionalString stdenv.isDarwin ''
|
||||||
|
sed -i -e '1i cmake_policy(SET CMP0025 NEW)' CMakeLists.txt
|
||||||
|
'';
|
||||||
|
|
||||||
|
passthru = {
|
||||||
|
tests = {
|
||||||
|
# These depend on internal poppler code that frequently changes.
|
||||||
|
inherit inkscape cups-filters texlive scribusUnstable;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
homepage = "https://poppler.freedesktop.org/";
|
homepage = "https://poppler.freedesktop.org/";
|
||||||
description = "A PDF rendering library";
|
description = "A PDF rendering library";
|
||||||
|
@ -59,7 +106,7 @@ stdenv.mkDerivation (rec {
|
||||||
installed separately.
|
installed separately.
|
||||||
'';
|
'';
|
||||||
|
|
||||||
license = licenses.gpl2;
|
license = licenses.gpl2Plus;
|
||||||
platforms = platforms.all;
|
platforms = platforms.all;
|
||||||
maintainers = with maintainers; [ ttuegel ] ++ teams.freedesktop.members;
|
maintainers = with maintainers; [ ttuegel ] ++ teams.freedesktop.members;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue