1 # Copyright 1999-2017 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
10 if [[ ${PV} != 9999 ]]; then
11 KEYWORDS="amd64 ~arm x86"
14 DESCRIPTION="Atril document viewer for MATE"
18 IUSE="caja dbus debug djvu dvi epub +introspection gnome-keyring gtk3 +postscript t1lib tiff xps"
20 REQUIRED_USE="t1lib? ( dvi )
21 !gtk3? ( !epub )" #608604
23 RDEPEND=">=app-text/poppler-0.16:0=[cairo]
26 >=dev-libs/glib-2.36:2
27 >=dev-libs/libxml2-2.5:2
28 >=mate-base/mate-desktop-1.9[gtk3(-)=]
34 >=x11-libs/cairo-1.9.10:0
36 caja? ( >=mate-base/caja-1.8[gtk3(-)=,introspection?] )
37 djvu? ( >=app-text/djvu-3.5.17:0 )
40 t1lib? ( >=media-libs/t1lib-5:5 )
42 epub? ( dev-libs/mathjax )
43 gnome-keyring? ( >=app-crypt/libsecret-0.5:0 )
45 >=x11-libs/gtk+-2.24.0:2[introspection?]
48 >=x11-libs/gtk+-3.0:3[introspection?]
49 epub? ( >=net-libs/webkit-gtk-2.4.3:4 )
51 introspection? ( >=dev-libs/gobject-introspection-0.6:= )
52 postscript? ( >=app-text/libspectre-0.2:0 )
53 tiff? ( >=media-libs/tiff-3.6:0 )
54 xps? ( >=app-text/libgxps-0.2.0:0 )
55 !!app-text/mate-document-viewer"
58 app-text/docbook-xml-dtd:4.1.2
60 >=app-text/scrollkeeper-dtd-1:1.0
63 >=dev-util/intltool-0.50.1:*
67 # Tests use dogtail which is not available on Gentoo.
71 # Passing --disable-help would drop offline help, that would be inconsistent
72 # with helps of the most of GNOME apps that doesn't require network for that.
79 --enable-thumbnailer \
81 --with-gtk=$(usex gtk3 3.0 2.0) \
82 $(use_with gnome-keyring keyring) \
89 $(use_enable introspection) \
90 $(use_enable postscript ps) \