. "$GRIMOIRE"/MESON_DEPENDS &&
. "$GRIMOIRE"/VDEPENDS &&
<<-! vdepends &&
	adwaita-icon-theme
	cairo
	freetype2
	gconf2
	gdk-pixbuf2
	GETTEXT
	glib2
	gtk+3
	hicolor-icon-theme
	itstool
	libhandy >= 1.5.0
	libx11
	libxi
	libxml2
	pango
	zlib
!

runtime_depends gsettings-desktop-schemas &&

optional_depends  dbus-glib                           \
                  "dbus=true"                         \
                  "dbus=false"                        \
                  "for DBUS support?"                 &&

optional_depends  poppler                             \
                  "pdf=enabled"                       \
                  "pdf=disabled"                      \
                  "Enable PDF support?"               &&

optional_depends  libgxps                             \
                  "xps=enabled"                       \
                  "xps=disabled"                      \
                  "Enable XPS support?"               &&

optional_depends  libspectre                          \
                  "ps=enabled"                        \
                  "ps=disabled"                       \
                  "for postscript support"            &&

optional_depends  tiff                                \
                  "tiff=enabled"                      \
                  "tiff=disabled"                     \
                  "Enable support of multipage tiff"  &&

optional_depends  djvulibre                           \
                  "djvu=enabled"                      \
                  "djvu=disabled"                     \
                  "Enable support of djvu viewer"     &&

optional_depends  nautilus2                           \
                  "nautilus=true"                     \
                  "nautilus=false"                    \
                  "Enable Nautilus plugin"            &&

optional_depends  libgnome-keyring                    \
                  "keyring=enabled"                   \
                  "keyring=disabled"                  \
                  "Use gnome-keyring?"                &&

if is_depends_enabled $SPELL libgnome-keyring; then
  depends libsecret
fi &&

optional_depends  gtk-doc                             \
                  "gtk_doc=true"                      \
                  "gtk_doc=false"                     \
                  "Build devhelp docs?"               &&

optional_depends  gobject-introspection               \
                  "introspection=true"                \
                  "introspection=false"               \
                  "to enable introspection"           &&

if is_depends_enabled $SPELL dbus-glib; then
  depends dbus
fi
