[Lunar-commits] <moonbase> gtk+-2: show hint for gobj-intro compilation mess

Paul Bredbury brebs at lunar-linux.org
Thu Feb 3 14:21:50 CET 2011


commit 0c4043c7498aa251061df99cd862e7c96f8838f4
Author: Paul Bredbury <brebs at lunar-linux.org>
Date:   Thu Feb 3 20:21:50 2011 +0700

    gtk+-2: show hint for gobj-intro compilation mess
---
 graphics/gtk+-2/BUILD     |    2 +-
 graphics/gtk+-2/PRE_BUILD |    9 +++++++++
 2 files changed, 10 insertions(+), 1 deletions(-)

diff --git a/graphics/gtk+-2/BUILD b/graphics/gtk+-2/BUILD
index 4ecd992..29148b3 100644
--- a/graphics/gtk+-2/BUILD
+++ b/graphics/gtk+-2/BUILD
@@ -10,7 +10,7 @@
   # The scary thing is -O2, -O3 and -Os all enable -fcaller-saves
   # but only -Os does it in a way gtk+-2 does not crash on DnD.
   case "$CFLAGS" in
-    *-O[23]*) 
+    *-O[23]*)
       CFLAGS+=' -fno-caller-saves'
       ;;
   esac                    &&
diff --git a/graphics/gtk+-2/PRE_BUILD b/graphics/gtk+-2/PRE_BUILD
new file mode 100644
index 0000000..477f241
--- /dev/null
+++ b/graphics/gtk+-2/PRE_BUILD
@@ -0,0 +1,9 @@
+if in_depends $MODULE gobject-introspection ; then
+  if [ ! -e /usr/share/gir-1.0/GdkPixbuf-2.0.gir ] ; then
+    message "${PROBLEM_COLOR}Compilation would fail with:  Couldn't find include 'GdkPixbuf-2.0.gir'"
+    message "Run:  lin -c gobject-introspection gdk-pixbuf atk pango gtk+-2${DEFAULT_COLOR}"
+    exit 1
+  fi
+fi
+
+default_pre_build


More information about the Lunar-commits mailing list