[devhelp] Ship appdata.xml file for gnome-software



commit c4cbc390511581000f6c148de7e59ffe95842349
Author: Pierre-Yves Luyten <py luyten fr>
Date:   Wed Oct 23 14:23:04 2013 +0200

    Ship appdata.xml file for gnome-software

 .gitignore                  |    1 +
 data/Makefile.am            |   15 +++++++++++++--
 data/devhelp.appdata.xml.in |   15 +++++++++++++++
 po/POTFILES.in              |    1 +
 4 files changed, 30 insertions(+), 2 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index a2a35f7..24d570b 100644
--- a/.gitignore
+++ b/.gitignore
@@ -26,6 +26,7 @@ libtool
 /missing
 /mkinstalldirs
 /py-compile
+/data/devhelp.appdata.xml
 /data/devhelp.defaults
 /data/devhelp.schemas
 /data/libdevhelp-3.0.pc
diff --git a/data/Makefile.am b/data/Makefile.am
index 5c750d1..ca237ee 100644
--- a/data/Makefile.am
+++ b/data/Makefile.am
@@ -14,6 +14,15 @@ gsettings_SCHEMAS = org.gnome.devhelp.gschema.xml
 gsettingsconvertdir = $(datadir)/GConf/gsettings
 gsettingsconvert_DATA = devhelp.convert
 
+app_data_in_files = devhelp.appdata.xml.in
+app_data_files = $(app_data_in_files:.xml.in=.xml)
+
+appdatadir = $(datadir)/appdata
+appdata_DATA = $(app_data_files)
+
+ INTLTOOL_XML_RULE@
+
+
 @INTLTOOL_DESKTOP_RULE@
 
 desktopdir = $(datadir)/applications
@@ -25,11 +34,13 @@ EXTRA_DIST =                        \
        $(desktop_in_files)     \
        $(gsettings_SCHEMAS)    \
        devhelp.convert \
-       $(assistant_DATA)
+       $(assistant_DATA) \
+       $(app_data_in_files)
 
 CLEANFILES =                   \
        $(DESKTOP_FILES)        \
        $(defaults_DATA)
 
 DISTCLEANFILES =               \
-       $(desktop_DATA)
+       $(desktop_DATA) \
+       $(app_data_files)
diff --git a/data/devhelp.appdata.xml.in b/data/devhelp.appdata.xml.in
new file mode 100644
index 0000000..752af94
--- /dev/null
+++ b/data/devhelp.appdata.xml.in
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<application>
+<id type="desktop">devhelp.desktop</id>
+<licence>CC0</licence>
+<description>
+<_p>Devhelp is an API documentation browser. It  provides an easy way to
+navigate through libraries, search by function, struct, or macro. It provides a
+tabbed interface and allows to print results.</_p>
+<_p>Devhelp integrates with other applications such as Glade, Anjuta, or Geany.</_p>
+</description>
+<url type="homepage">https://wiki.gnome.org/Apps/Devhelp/</url>
+<screenshots>
+<_screenshot 
type="default">https://wiki.gnome.org/Apps/Devhelp?action=AttachFile&do=view&target=devhelp.png</_screenshot>
+</screenshots>
+</application>
diff --git a/po/POTFILES.in b/po/POTFILES.in
index 1f8300c..bdd8d6c 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -1,5 +1,6 @@
 # List of source files containing translatable strings.
 # Please keep this file sorted alphabetically.
+data/devhelp.appdata.xml.in
 data/devhelp.desktop.in.in
 [type: gettext/gsettings]data/org.gnome.devhelp.gschema.xml
 misc/gedit-plugin/devhelp.desktop.in


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