[dconf-editor] Use AppStream.



commit c7624ec874e45abc5ac96daa0baddcc64d669860
Author: Arnaud Bonatti <arnaud bonatti gmail com>
Date:   Thu Oct 1 18:57:04 2015 +0200

    Use AppStream.

 configure.ac                                |    3 ++
 editor/Makefile.am                          |   13 ++++++----
 editor/ca.desrt.dconf-editor.appdata.xml    |   18 --------------
 editor/ca.desrt.dconf-editor.appdata.xml.in |   34 +++++++++++++++++++++++++++
 po/POTFILES.in                              |    1 +
 5 files changed, 46 insertions(+), 23 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 6dffc94..8eb679e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -26,6 +26,9 @@ AC_PATH_PROG(GLIB_COMPILE_RESOURCES, glib-compile-resources)
 # Use GSettings
 GLIB_GSETTINGS
 
+# Use AppStream
+APPSTREAM_XML
+
 # Dependencies
 DCONF_REQUIRED=0.23.2
 GLIB_REQUIRED=2.46.0
diff --git a/editor/Makefile.am b/editor/Makefile.am
index b982659..aed8195 100644
--- a/editor/Makefile.am
+++ b/editor/Makefile.am
@@ -55,10 +55,10 @@ ca.desrt.dconf-editor.service: Makefile
                     echo 'Exec=${bindir}/dconf-editor --gapplication-service') > $  tmp && \
                     mv $  tmp $@
 
-CLEANFILES = $(desktop_DATA) $(dbusservice_DATA) resources.c
-
-appdatadir = $(datadir)/appdata
-dist_appdata_DATA = ca.desrt.dconf-editor.appdata.xml
+ APPSTREAM_XML_RULES@
+appstream_in_files = ca.desrt.dconf-editor.appdata.xml.in
+appstream_XML = $(appstream_in_files:.xml.in=.xml)
+ INTLTOOL_XML_RULE@
 
 gsettings_SCHEMAS = ca.desrt.dconf-editor.gschema.xml
 @GSETTINGS_RULES@
@@ -84,4 +84,7 @@ update-icon-cache:
 
 man_MANS = dconf-editor.1
 
-EXTRA_DIST = $(gsettings_SCHEMAS) $(icons) $(resource_data) $(man_MANS)
+DISTCHECK_CONFIGURE_FLAGS == --enable-appdata-check
+
+CLEANFILES = $(appstream_XML) $(desktop_DATA) $(dbusservice_DATA) resources.c
+EXTRA_DIST = $(appdata_in_files) $(gsettings_SCHEMAS) $(icons) $(resource_data) $(man_MANS)
diff --git a/editor/ca.desrt.dconf-editor.appdata.xml.in b/editor/ca.desrt.dconf-editor.appdata.xml.in
new file mode 100644
index 0000000..bf300f1
--- /dev/null
+++ b/editor/ca.desrt.dconf-editor.appdata.xml.in
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Copyright 2015 Arnaud Bonatti <arnaud bonatti gmail com> -->
+<component type="desktop">
+  <id>ca.desrt.dconf-editor.desktop</id>
+
+  <metadata_license>CC0-1.0</metadata_license>
+  <project_license>GPL-3.0+</project_license>
+
+  <_name>Dconf Editor</_name>
+  <_summary>A graphical tool for editing the dconf database</_summary>
+
+  <description>
+    <_p>
+      Dconf Editor is a tool to allow direct editing of the dconf configuration database.
+      This is useful when developing applications that use these settings.
+    </_p>
+    <_p>
+      Editing your configuration directly is an advanced feature and may cause applications to not work 
correctly.
+    </_p>
+  </description>
+
+  <screenshots>
+    <screenshot type="default" width="640" 
height="360">https://git.gnome.org/browse/dconf-editor/plain/editor/screenshot.png</screenshot>
+  </screenshots>
+
+  <url type="homepage">https://wiki.gnome.org/Projects/dconf</url>
+  <url type="bugtracker">https://bugzilla.gnome.org/page.cgi?id=browse.html&amp;product=dconf-editor</url>
+  <update_contact>arnaud.bonatti_AT_gmail.com</update_contact>
+  <project_group>GNOME</project_group>
+
+  <provides>
+    <binary>dconf-editor</binary>
+  </provides>
+</component>
diff --git a/po/POTFILES.in b/po/POTFILES.in
index 227522c..ca4a43c 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -1,3 +1,4 @@
+editor/ca.desrt.dconf-editor.appdata.xml.in
 editor/ca.desrt.dconf-editor.desktop.in.in
 [type: gettext/gsettings]editor/ca.desrt.dconf-editor.gschema.xml
 [type: gettext/glade]editor/dconf-editor-menu.ui


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]