[iagno] Switch from appdata-tools to appstream-utils
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [iagno] Switch from appdata-tools to appstream-utils
- Date: Tue, 25 Nov 2014 00:46:07 +0000 (UTC)
commit bc0618fe8e164fc48aabcab1523daa4e9e5157b7
Author: Michael Catanzaro <mcatanzaro gnome org>
Date: Mon Nov 24 18:29:01 2014 -0600
Switch from appdata-tools to appstream-utils
configure.ac | 3 ++-
data/Makefile.am | 15 ++++++++-------
data/iagno.appdata.xml.in | 2 ++
3 files changed, 12 insertions(+), 8 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 588c78e..12146d9 100644
--- a/configure.ac
+++ b/configure.ac
@@ -11,6 +11,8 @@ AM_PROG_CC_C_O
GLIB_GSETTINGS
+APPSTREAM_XML
+
dnl ###########################################################################
dnl Dependencies
dnl ###########################################################################
@@ -27,7 +29,6 @@ PKG_CHECK_MODULES(IAGNO, [
libcanberra-gtk3 >= $CANBERRA_GTK_REQUIRED
])
-AC_PATH_PROG([APPDATA_VALIDATE], [appdata-validate], [/bin/true])
AC_PATH_PROG([DESKTOP_FILE_VALIDATE], [desktop-file-validate], [/bin/true])
AC_PATH_PROG([GTESTER], [gtester])
if ! test -x "${GTESTER}" ; then
diff --git a/data/Makefile.am b/data/Makefile.am
index 902c4d4..89ccf05 100644
--- a/data/Makefile.am
+++ b/data/Makefile.am
@@ -27,9 +27,9 @@ desktop_in_files = iagno.desktop.in
desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)
@INTLTOOL_DESKTOP_RULE@
-appdatadir = $(datadir)/appdata
-appdata_in_files = iagno.appdata.xml.in
-appdata_DATA = $(appdata_in_files:.xml.in=.xml)
+appstream_in_files = iagno.appdata.xml.in
+appstream_XML = $(appstream_in_files:.xml.in=.xml)
+ APPSTREAM_XML_RULES@
@INTLTOOL_XML_RULE@
gsettings_SCHEMAS = org.gnome.iagno.gschema.xml
@@ -42,17 +42,18 @@ EXTRA_DIST = \
$(image_DATA) \
$(theme_DATA) \
$(sounds_DATA) \
- $(appdata_in_files) \
+ $(appstream_in_files) \
$(desktop_in_files) \
$(gsettings_SCHEMAS) \
$(man_MANS)
CLEANFILES = \
- $(appdata_DATA) \
+ $(appstream_XML) \
$(desktop_DATA)
-check-local: $(appdata_DATA) $(desktop_DATA)
- $(APPDATA_VALIDATE) $(appdata_DATA)
+check-local: $(desktop_DATA)
$(DESKTOP_FILE_VALIDATE) $(desktop_DATA)
+DISTCHECK_CONFIGURE_FLAGS = --enable-appdata-check
+
-include $(top_srcdir)/git.mk
diff --git a/data/iagno.appdata.xml.in b/data/iagno.appdata.xml.in
index ac9bd6c..7de63d0 100644
--- a/data/iagno.appdata.xml.in
+++ b/data/iagno.appdata.xml.in
@@ -4,6 +4,8 @@
<id type="desktop">iagno.desktop</id>
<metadata_license>CC0-1.0</metadata_license>
<project_license>GPL-2.0+ and CC-BY-SA-3.0</project_license>
+ <_name>Iagno</_name>
+ <_summary>Dominate the board in a classic version of Reversi</_summary>
<description>
<_p>
Iagno is a computer version of the game Reversi, a two-player strategy
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]