# $Id$ PNAME="evince" PVER="3.26.0" PBUILD="r1" PCAT="app-text" DESCRIPTION="Gnome PDF viewer." HOMEPAGE="http://www.gnome.org/" DEPEND=">= dev-libs/glib2-2.54 >= dev-libs/dbus-glib-0.108 >= x11-libs/gtk3+-3.22 >= x11-libs/cairo-1.14 >= app-text/libspectre-0.2 >= app-text/poppler-glib-0.60 >= media-libs/libtiff-3.7.2 >= media-libs/t1lib-5.1 >= app-crypt/libsecret-0.18 >= dev-libs/gsettings-desktop-schemas-3.24 >= app-arch/libarchive-3.3 >= gnome-base/gvfs-1.34 >= x11-themes/gnome-icon-theme-symbolic-3.12 >= sys-libs/libstdc++-6.3" SDEPEND=">= dev-util/intltool-0.50 >= dev-util/pkgconfig-0.25 >= dev-util/itstool-2 >= sys-dev/autoconf-4 >= sys-dev/automake-3 >= dev-libs/gobject-introspection-1.54 >= app-text/docbook-xsl-stylesheets-1.78 >= virtual/sed" SRCFILE="${PNAME}-${PVER}.tar.xz" sminclude gnome2 glib2 gtk2 fdo-mime UP2DATE="updatecmd_gnome ${PNAME}" src_prepare() { munpack ${SRCFILE} || die cd ${SRCDIR} # remove hardcoded adwaita icon theme dep sed -i 's/adwaita-icon-theme >= $ADWAITA_ICON_THEME_REQUIRED//g' configure || die } src_compile() { cd ${SRCDIR} gn2_configure \ --disable-nautilus \ --disable-libgnome-desktop \ --disable-dvi \ --disable-djvu \ --enable-t1lib \ --enable-comics \ --enable-dbus \ --enable-tiff \ --enable-pdf \ --disable-xps \ --disable-scrollkeeper \ --enable-introspection \ --disable-schemas-compile \ --disable-browser-plugin \ --enable-compile-warnings=minimum \ || die mmake || die } postinstall() { glib2_update_schemas gtk2_update_icon_cache fdo-mime_update_desktop_db } postremove() { glib2_update_schemas gtk2_update_icon_cache fdo-mime_update_desktop_db }