[gedit/wip/appstream] zeitgeist: add MetaInfo file



commit e7b6706575cfd09eb9325bf1461800407aaf482d
Author: Igor Gnatenko <i gnatenko brain gmail com>
Date:   Wed Jun 18 00:08:34 2014 +0400

    zeitgeist: add MetaInfo file
    
    Reference: https://bugzilla.gnome.org/show_bug.cgi?id=731799
    Signed-off-by: Igor Gnatenko <i gnatenko brain gmail com>

 plugins/Makefile.am                               |   17 +++++++++++++++--
 plugins/zeitgeist/Makefile.am                     |    4 ++++
 plugins/zeitgeist/gedit-zeitgeist.metainfo.xml.in |   13 +++++++++++++
 3 files changed, 32 insertions(+), 2 deletions(-)
---
diff --git a/plugins/Makefile.am b/plugins/Makefile.am
index cfaee57..40fc2f0 100644
--- a/plugins/Makefile.am
+++ b/plugins/Makefile.am
@@ -1,7 +1,10 @@
 plugindir = $(GEDIT_PLUGINS_LIBS_DIR)
+appstreamdir = $(datadir)/appdata
 
 plugin_in_files               =
 dist_plugin_in_files          =
+appstream_in_files            =
+dist_appstream_in_files       =
 plugin_LTLIBRARIES            =
 plugin_gsettings_SCHEMAS      =
 dist_plugin_gsettings_SCHEMAS =
@@ -30,14 +33,24 @@ GENERATED_PLUGIN_FILES = $(plugin_in_files:.plugin.desktop.in=.plugin)
 
 plugin_DATA = $(GENERATED_PLUGIN_FILES)
 
+GENERATED_APPSTREAM_FILES = $(appstream_in_files:.xml.in=.xml)
+
+appstreamdata = $(GENERATED_APPSTREAM_FILES)
+
+ INTLTOOL_XML_RULE@
+
 DISTCLEANFILES +=                      \
-       $(GENERATED_PLUGIN_FILES)
+       $(GENERATED_PLUGIN_FILES)       \
+       $(GENERATED_APPSTREAM_FILES)
 
 CLEANFILES +=                          \
-       $(GENERATED_PLUGIN_FILES)
+       $(GENERATED_PLUGIN_FILES)       \
+       $(GENERATED_APPSTREAM_FILES)
 
 EXTRA_DIST +=                                                                  \
        $(plugin_in_files)                                                      \
        $(dist_plugin_in_files)                                                 \
+       $(appstream_in_files)                                                   \
+       $(dist_appstream_in_files)                                              \
        $(plugin_gsettings_SCHEMAS:%.gschema.xml=%.gschema.xml.in.in)           \
        $(dist_plugin_gsettings_SCHEMAS:%.gschema.xml=%.gschema.xml.in.in)
diff --git a/plugins/zeitgeist/Makefile.am b/plugins/zeitgeist/Makefile.am
index fca4e67..7cf45b1 100644
--- a/plugins/zeitgeist/Makefile.am
+++ b/plugins/zeitgeist/Makefile.am
@@ -22,8 +22,12 @@ EXTRA_DIST += $(zeitgeist_resource_deps)
 
 plugin_in_files += plugins/zeitgeist/zeitgeist.plugin.desktop.in
 
+appstream_in_files += plugins/zeitgeist/gedit-zeitgeist.metainfo.xml.in
+
 else
 
 dist_plugin_in_files += plugins/zeitgeist/zeitgeist.plugin.desktop.in
 
+dist_appstream_in_files += plugins/zeitgeist/gedit-zeitgeist.metainfo
+
 endif
diff --git a/plugins/zeitgeist/gedit-zeitgeist.metainfo.xml.in 
b/plugins/zeitgeist/gedit-zeitgeist.metainfo.xml.in
new file mode 100644
index 0000000..ea1c825
--- /dev/null
+++ b/plugins/zeitgeist/gedit-zeitgeist.metainfo.xml.in
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Copyright 2014 Igor Gnatenko <i gnatenko brain gmail com> -->
+<component type="addon">
+  <id>gedit-zeitgeist</id>
+  <extends>gedit.desktop</extends>
+  <_name>Zeitgeist Data provider</_name>
+<_summary>Records user activity and giving easy access to recently-used and frequently-used files</_summary>
+  <url type="homepage">https://wiki.gnome.org/Apps/Gedit/ShippedPlugins</url>
+  <url type="bugtracker">https://bugzilla.gnome.org/enter_bug.cgi?product=gedit&amp;component=Plugins</url>
+  <metadata_license>CC0-1.0</metadata_license>
+  <project_license>GPL-2.0+</project_license>
+  <updatecontact>i gnatenko brain gmail com</updatecontact>
+</component>


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