Hook up IUSE=gtk-doc for developer documentation.
Add explicit glib-utils build dep (lost in bump).
Remove by now redundant meson minimum dep, eclass ensures newer.
Add missing explicit libxml2:2 build dep as strip-blanks is used
in gresource files.
Icon cache update is handled in xdg.eclass now, so we don't need
the explicit gnome2_icon_cache_update calls anymore.
Restrict tests if USE=test is explicitly disabled.
Package-Manager: Portage-2.3.52, Repoman-2.3.12
Signed-off-by: Mart Raudsepp <leio@gentoo.org>
-# Copyright 1999-2018 Gentoo Authors
+# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=6
LICENSE="GPL-3+"
SLOT="0"
KEYWORDS="~amd64 ~x86"
-IUSE=""
+IUSE="gtk-doc"
# >=libical-1.0.1 for https://bugzilla.gnome.org/show_bug.cgi?id=751244
# FIXME add docs
"
DEPEND="${RDEPEND}
dev-libs/appstream-glib
+ dev-libs/libxml2:2
dev-util/gdbus-codegen
- >=dev-util/meson-0.42.0
+ dev-util/glib-utils
+ gtk-doc? ( dev-util/gtk-doc
+ app-text/docbook-xml-dtd:4.3 )
>=sys-devel/gettext-0.19.8
virtual/pkgconfig
"
+RESTRICT="!test? ( test )"
+
+src_configure() {
+ meson_src_configure \
+ $(meson_use gtk-doc enable-gtk-doc)
+}
+
src_test() {
virtx meson_src_test
}
pkg_postinst() {
xdg_pkg_postinst
- gnome2_icon_cache_update
gnome2_schemas_update
}
pkg_postrm() {
xdg_pkg_postrm
- gnome2_icon_cache_update
gnome2_schemas_update
}