[glom/glom-1-24] Add an appdata.xml file.



commit 959bb52d03a7ffce1a30f97204f8f24368d519f8
Author: Murray Cumming <murrayc murrayc com>
Date:   Tue Sep 3 16:00:50 2013 +0200

    Add an appdata.xml file.
    
    * glom.appdata.xml.in: Add the file.
    * configure.ac: Create glom.appdata.xml from the .in file.
      This lets us translate it.
    * po/POTFILES.in: Mention the file so its contents can
      be translated.
    * Makefile.am: Install the file next to the .desktop file.
    
    This is needed by the new GNOME Software Center.

 Makefile.am         |   12 +++++++++++-
 configure.ac        |    1 +
 glom.appdata.xml.in |   16 ++++++++++++++++
 po/POTFILES.in      |    1 +
 4 files changed, 29 insertions(+), 1 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index ddb8bc8..e73aa6b 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -239,6 +239,16 @@ else
 desktop_DATA = glom.desktop
 endif
 
+
+appdatadir = $(datadir)/appdata
+
+if HOST_WIN32
+appdata_DATA =
+else
+appdata_DATA = glom.appdata.xml
+endif
+
+
 mimedir = $(datadir)/mime
 mimepackagesdir = $(mimedir)/packages
 dist_mimepackages_DATA = glom.xml
@@ -257,7 +267,7 @@ dist_noinst_SCRIPTS += autogen.sh win32/build-installer
 
 # messages.mo is apparently generated because we have .po files under examples/po_files, in git,
 # TODO: Is there some way to tell the build to ignore them?
-CLEANFILES = $(dbusservice_DATA) $(desktop_DATA) $(win_resfile) $(top_builddir)/messages.mo
+CLEANFILES = $(dbusservice_DATA) $(desktop_DATA) $(appdata_DATA) $(win_resfile) $(top_builddir)/messages.mo
 DISTCLEANFILES = intltool-extract intltool-merge intltool-update
 MAINTAINERCLEANFILES += \
        $(dist_docutils) $(dist_intltool) \
diff --git a/configure.ac b/configure.ac
index 939fb28..b637213 100644
--- a/configure.ac
+++ b/configure.ac
@@ -365,6 +365,7 @@ AC_MSG_RESULT($enable_gcov)
 AC_CONFIG_FILES([Makefile
                  docs/user-guide/Makefile
                  po/Makefile.in
+                 glom.appdata.xml
                  glom.desktop.in
                  glom/libglom/glom-${GLOM_ABI_VERSION}.pc:glom/libglom/glom.pc.in
                  docs/libglom_reference/Makefile
diff --git a/glom.appdata.xml.in b/glom.appdata.xml.in
new file mode 100644
index 0000000..c24f5f4
--- /dev/null
+++ b/glom.appdata.xml.in
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<application>
+  <id type="desktop">org.gnome.glom.desktop</id>
+  <licence>CC0</licence>
+  <description>
+    <_p>
+      With Glom you can design database systems - the database and the user interface.
+    </_p>
+  </description>
+  <screenshots>
+    <screenshot type="default">http://www.glom.org/wiki/images/7/7b/Small_glom_data_details.png</screenshot>
+  </screenshots>
+  <url type="homepage">http://www.glom.org/</url>
+  <updatecontact>murrayc_at_murrayc.com</updatecontact>
+</application>
+
diff --git a/po/POTFILES.in b/po/POTFILES.in
index 735e927..7f40848 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -7,6 +7,7 @@ glom/base_db.cc
 glom/base_db_table_data.cc
 glom/base_db_table_data_readonly.cc
 glom/box_reports.cc
+glom.appdata.xml.in
 glom.desktop.in.in
 glom/dialog_connection.cc
 glom/dialog_existing_or_new.cc


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