gnome-extra/gnome-calendar-3.26: dep fixes, USE=gtk-doc support
authorMart Raudsepp <leio@gentoo.org>
Fri, 22 Feb 2019 14:58:10 +0000 (16:58 +0200)
committerMart Raudsepp <leio@gentoo.org>
Fri, 22 Feb 2019 18:02:37 +0000 (20:02 +0200)
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>
gnome-extra/gnome-calendar/gnome-calendar-3.26.4.ebuild

index 0ed62e53bf97350011cb9bc7d7522752347406f2..d95be9546576cdd00da3536c19a17ddd56c8f5d6 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2018 Gentoo Authors
+# Copyright 1999-2019 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
@@ -10,7 +10,7 @@ HOMEPAGE="https://wiki.gnome.org/Apps/Calendar"
 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
@@ -25,24 +25,32 @@ RDEPEND="
 "
 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
 }