[gnome-mines] Use appstream-util for appdata validation
- From: Robert Roth <robertroth src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-mines] Use appstream-util for appdata validation
- Date: Mon, 15 Dec 2014 04:51:14 +0000 (UTC)
commit eab92e6ecd9d0cf369cf2f4a89d640c835d60f55
Author: Robert Roth <robert roth off gmail com>
Date: Mon Dec 15 06:51:02 2014 +0200
Use appstream-util for appdata validation
configure.ac | 3 ++-
data/Makefile.am | 15 ++++++++-------
2 files changed, 10 insertions(+), 8 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 3d6398c..4f12c46 100644
--- a/configure.ac
+++ b/configure.ac
@@ -11,6 +11,8 @@ AM_PROG_CC_C_O
GLIB_GSETTINGS
+APPSTREAM_XML
+
dnl ###########################################################################
dnl Dependencies
dnl ###########################################################################
@@ -25,7 +27,6 @@ PKG_CHECK_MODULES(GNOME_MINES, [
librsvg-2.0 >= $RSVG_REQUIRED
])
-AC_PATH_PROG([APPDATA_VALIDATE], [appdata-validate], [/bin/true])
AC_PATH_PROG([DESKTOP_FILE_VALIDATE], [desktop-file-validate], [/bin/true])
dnl ###########################################################################
diff --git a/data/Makefile.am b/data/Makefile.am
index 84818e7..2be8ed4 100644
--- a/data/Makefile.am
+++ b/data/Makefile.am
@@ -30,13 +30,13 @@ desktop_in_files = gnome-mines.desktop.in
desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)
@INTLTOOL_DESKTOP_RULE@
-appdatadir = $(datadir)/appdata
-appdata_in_files = gnome-mines.appdata.xml.in
-appdata_DATA = $(appdata_in_files:.xml.in=.xml)
+appstream_in_files = gnome-mines.appdata.xml.in
+appstream_XML = $(appstream_in_files:.xml.in=.xml)
+ APPSTREAM_XML_RULES@
@INTLTOOL_XML_RULE@
EXTRA_DIST = \
- $(appdata_in_files) \
+ $(appstream_in_files) \
$(gsettings_SCHEMAS) \
$(desktop_in_files) \
$(man_MANS) \
@@ -46,12 +46,13 @@ EXTRA_DIST = \
$(ui_DATA)
CLEANFILES = \
- $(appdata_DATA) \
+ $(appstream_XML) \
$(desktop_DATA) \
$(css_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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]