Dominique Leuenberger
0662cd18e9
- Add anjuta-vala-0.22.patch: Allow building with vala 0.22. - Add gnome-common BuildRequires and call to gnome-autogen.sh, as above patch touches the build system. - Change pkgconfig(libvala-0.20) BuildRequires to pkgconfig(libvala-0.22) in order to perform the switch to Vala 0.22. - Stop passing obsolete --disable-scrollkeeper to configure. OBS-URL: https://build.opensuse.org/request/show/186069 OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/anjuta?expand=0&rev=157
34 lines
1.0 KiB
Diff
34 lines
1.0 KiB
Diff
From b0adfbe1197ad97f39e5db583fdc63f78c3fbff3 Mon Sep 17 00:00:00 2001
|
|
From: Dominique Leuenberger <dimstar@opensuse.org>
|
|
Date: Tue, 6 Aug 2013 11:17:45 +0200
|
|
Subject: [PATCH] build: add support for libvala-0.22
|
|
|
|
To make maintenance a little bit easier in the future, rewrite the
|
|
detection to use foreach instead of nesting the checks.
|
|
---
|
|
configure.ac | 8 +++-----
|
|
1 file changed, 3 insertions(+), 5 deletions(-)
|
|
|
|
diff --git a/configure.ac b/configure.ac
|
|
index 41c482d..f7a9c18 100644
|
|
--- a/configure.ac
|
|
+++ b/configure.ac
|
|
@@ -310,11 +310,9 @@ if test "$user_disabled_vala" = 1; then
|
|
else
|
|
AC_MSG_RESULT(no)
|
|
AC_MSG_CHECKING(if libvala is available)
|
|
- PKG_CHECK_EXISTS([ libvala-0.20 ],
|
|
- [ valaver="-0.20" ],
|
|
- [ PKG_CHECK_EXISTS([ libvala-0.18 ],
|
|
- [ valaver="-0.18" ],
|
|
- [ valaver="" ])
|
|
+ m4_foreach([VERSION], [[0.18], [0.20], [0.22]],
|
|
+ [PKG_CHECK_EXISTS([ libvala-VERSION ],
|
|
+ [ valaver="-VERSION" ])
|
|
])
|
|
if test "x$valaver" != "x"; then
|
|
AC_MSG_RESULT(yes)
|
|
--
|
|
1.7.10.4
|
|
|