[polari] build: Use appstream-glib's m4 macro
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [polari] build: Use appstream-glib's m4 macro
- Date: Thu, 27 Nov 2014 12:58:22 +0000 (UTC)
commit e757442517b96224913d57c8aba6d657562210c2
Author: Florian Müllner <fmuellner gnome org>
Date: Thu Nov 27 12:55:40 2014 +0000
build: Use appstream-glib's m4 macro
appdata-validate which we (optionally) use is deprecated, rather
than using the new appstream-util tool, port to the m4 macros.
configure.ac | 3 ++-
data/appdata/Makefile.am | 15 +++++----------
2 files changed, 7 insertions(+), 11 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index c3b9126..af9e3bd 100644
--- a/configure.ac
+++ b/configure.ac
@@ -36,7 +36,8 @@ GLIB_COMPILE_RESOURCES=`$PKG_CONFIG --variable=glib_compile_resources gio-2.0`
AC_SUBST(GLIB_COMPILE_RESOURCES)
AC_PATH_PROG(DESKTOP_FILE_VALIDATE, desktop-file-validate)
-AC_PATH_PROG(APPDATA_VALIDATE, appdata-validate)
+
+APPSTREAM_XML
AC_CONFIG_FILES([
Makefile
diff --git a/data/appdata/Makefile.am b/data/appdata/Makefile.am
index 6d8a9a6..bd719f7 100644
--- a/data/appdata/Makefile.am
+++ b/data/appdata/Makefile.am
@@ -1,13 +1,8 @@
-appdatadir = $(datadir)/appdata
-appdata_DATA = $(appdata_in_files:.xml.in=.xml)
-appdata_in_files = org.gnome.Polari.appdata.xml.in
-
@INTLTOOL_XML_RULE@
+ APPSTREAM_XML_RULES@
-check-local:
- if test x$(APPDATA_VALIDATE) != x; then \
- $(APPDATA_VALIDATE) $(appdata_DATA); \
- fi
+appstream_in_files = org.gnome.Polari.appdata.xml.in
+appstream_XML = $(appstream_in_files:.xml.in=.xml)
-EXTRA_DIST = $(appdata_in_files)
-CLEANFILES = $(appdata_DATA)
+EXTRA_DIST = $(appstream_in_files)
+CLEANFILES = $(appstream_XML)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]