commit:     82e52cbf00fe78cb530bf48ad489f3e0a79ba62e
Author:     Pacho Ramos <pacho <AT> gentoo <DOT> org>
AuthorDate: Sat Oct  3 16:06:28 2020 +0000
Commit:     Pacho Ramos <pacho <AT> gentoo <DOT> org>
CommitDate: Sat Oct  3 16:06:38 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=82e52cbf

gnome-extra/libgda: appdata files are only installed with USE gtk

Closes: https://bugs.gentoo.org/743715
Thanks-to: Toralf Förster
Thanks-to: Kent Fredric
Package-Manager: Portage-3.0.8, Repoman-3.0.1
Signed-off-by: Pacho Ramos <pacho <AT> gentoo.org>

 gnome-extra/libgda/libgda-5.2.9.ebuild | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/gnome-extra/libgda/libgda-5.2.9.ebuild 
b/gnome-extra/libgda/libgda-5.2.9.ebuild
index 73305fd1f2f..3edc6cce0ca 100644
--- a/gnome-extra/libgda/libgda-5.2.9.ebuild
+++ b/gnome-extra/libgda/libgda-5.2.9.ebuild
@@ -146,5 +146,7 @@ pkg_preinst() {
 src_install() {
        gnome2_src_install
        # Use new location
-       mv "${ED}"/usr/share/appdata "${ED}"/usr/share/metainfo || die
+       if use gtk; then
+               mv "${ED}"/usr/share/appdata "${ED}"/usr/share/metainfo || die
+       fi
 }

Reply via email to