evince: 3.30.2 -> 3.32.0

- pruneLibtoolFiles is now on by default
- build now require appstream to generate some data
- upstream has switched from intltool to gettext
- clean up
- recentListSize no longer applicable
This commit is contained in:
Tor Hedin Brønner 2019-03-03 19:17:23 +01:00 committed by Jan Tojnar
parent 0405df7535
commit 94d4cbd619
No known key found for this signature in database
GPG key ID: 7FAB2A15F7A607A4

View file

@ -1,35 +1,72 @@
{ fetchurl, stdenv, pkgconfig, intltool, libxml2 { fetchurl
, glib, gtk3, pango, atk, gdk_pixbuf, shared-mime-info, itstool, gnome3 , stdenv
, poppler, ghostscriptX, djvulibre, libspectre, libarchive, libsecret, wrapGAppsHook , autoreconfHook
, librsvg, gobject-introspection, yelp-tools, gspell, adwaita-icon-theme, gsettings-desktop-schemas , pkgconfig
, gettext
, libxml2
, appstream
, glib
, gtk3
, pango
, atk
, gdk_pixbuf
, shared-mime-info
, itstool
, gnome3
, poppler
, ghostscriptX
, djvulibre
, libspectre
, libarchive
, libsecret
, wrapGAppsHook
, librsvg
, gobject-introspection
, yelp-tools
, gspell
, adwaita-icon-theme
, gsettings-desktop-schemas
, libgxps , libgxps
, recentListSize ? null # 5 is not enough, allow passing a different number , supportXPS ? false # Open XML Paper Specification via libgxps
, supportXPS ? false # Open XML Paper Specification via libgxps
, autoreconfHook, pruneLibtoolFiles
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "evince-${version}"; pname = "evince";
version = "3.30.2"; version = "3.32.0";
src = fetchurl { src = fetchurl {
url = "mirror://gnome/sources/evince/${stdenv.lib.versions.majorMinor version}/${name}.tar.xz"; url = "mirror://gnome/sources/evince/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
sha256 = "0k7jln6dpg4bpv61niicjzkzyq6fhb3yfld7pc8ck71c8pmvsnx9"; sha256 = "0h2c6b2h6g3zy0gnycrjk1y7rp0kf7ppci76dmd2zvb6chhpgngh";
};
passthru = {
updateScript = gnome3.updateScript { packageName = "evince"; };
}; };
nativeBuildInputs = [ nativeBuildInputs = [
pkgconfig gobject-introspection intltool itstool wrapGAppsHook yelp-tools autoreconfHook pruneLibtoolFiles autoreconfHook
pkgconfig
gobject-introspection
gettext
itstool
yelp-tools
appstream
wrapGAppsHook
]; ];
buildInputs = [ buildInputs = [
glib gtk3 pango atk gdk_pixbuf libxml2 glib
gtk3
pango
atk
gdk_pixbuf
libxml2
gsettings-desktop-schemas gsettings-desktop-schemas
poppler ghostscriptX djvulibre libspectre libarchive poppler
libsecret librsvg adwaita-icon-theme gspell ghostscriptX
djvulibre
libspectre
libarchive
libsecret
librsvg
adwaita-icon-theme
gspell
] ++ stdenv.lib.optional supportXPS libgxps; ] ++ stdenv.lib.optional supportXPS libgxps;
configureFlags = [ configureFlags = [
@ -41,16 +78,15 @@ stdenv.mkDerivation rec {
NIX_CFLAGS_COMPILE = "-I${glib.dev}/include/gio-unix-2.0"; NIX_CFLAGS_COMPILE = "-I${glib.dev}/include/gio-unix-2.0";
preConfigure = stdenv.lib.optionalString (recentListSize != null) ''
sed -i 's/\(gtk_recent_chooser_set_limit .*\)5)/\1${builtins.toString recentListSize})/' shell/ev-open-recent-action.c
sed -i 's/\(if (++n_items == \)5\(.*\)/\1${builtins.toString recentListSize}\2/' shell/ev-window.c
'';
preFixup = '' preFixup = ''
gappsWrapperArgs+=(--prefix XDG_DATA_DIRS : "${shared-mime-info}/share") gappsWrapperArgs+=(--prefix XDG_DATA_DIRS : "${shared-mime-info}/share")
''; '';
enableParallelBuilding = true; passthru = {
updateScript = gnome3.updateScript {
packageName = pname;
};
};
meta = with stdenv.lib; { meta = with stdenv.lib; {
homepage = https://wiki.gnome.org/Apps/Evince; homepage = https://wiki.gnome.org/Apps/Evince;