[Lunar-commits] <moonbase> evolution: better gtk+-2 version check
Paul Bredbury
brebs at lunar-linux.org
Fri Feb 25 11:14:54 CET 2011
commit 178e0d6b58acccf9b2a162708d540c6869a2f1a6
Author: Paul Bredbury <brebs at lunar-linux.org>
Date: Fri Feb 25 17:14:54 2011 +0700
evolution: better gtk+-2 version check
---
gnome2/desktop/evolution-data-server/BUILD | 2 +-
gnome2/desktop/evolution/BUILD | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/gnome2/desktop/evolution-data-server/BUILD b/gnome2/desktop/evolution-data-server/BUILD
index d2f4682..cccb23a 100644
--- a/gnome2/desktop/evolution-data-server/BUILD
+++ b/gnome2/desktop/evolution-data-server/BUILD
@@ -1,6 +1,6 @@
(
- if grep -q "This is GTK+ version 2\.24" /usr/share/doc/gtk+-2/README ; then
+ if [[ `lvu installed gtk+-2 | cut -c 1-2` -ge 24 ]] ; then
# To compile with gtk+-2 24.1
sedit "s:-DGTK_DISABLE_DEPRECATED::" configure
fi &&
diff --git a/gnome2/desktop/evolution/BUILD b/gnome2/desktop/evolution/BUILD
index 5f87d47..a41f209 100644
--- a/gnome2/desktop/evolution/BUILD
+++ b/gnome2/desktop/evolution/BUILD
@@ -2,7 +2,7 @@
patch_it $SOURCE2 1 &&
- if grep -q "This is GTK+ version 2\.24" /usr/share/doc/gtk+-2/README ; then
+ if [[ `lvu installed gtk+-2 | cut -c 1-2` -ge 24 ]] ; then
# To compile with gtk+-2 24.1
sedit "s:-DGTK_DISABLE_DEPRECATED::" configure
fi &&
More information about the Lunar-commits
mailing list