[Lunar-commits] <moonbase-core> Merge pull request #10 from Ratler/glib-2_fixes

Auke Kok sofar+github at foo-projects.org
Wed Jul 11 20:30:48 CEST 2012


commit a869dd944e28bb4fad3875d370a8a6e476483a47
Author: Auke Kok <sofar+github at foo-projects.org>
Date: Wed, 11 Jul 2012 11:30:48 -0700
URL: https://github.com/lunar-linux/moonbase-core/commit/a869dd944e28bb4fad3875d370a8a6e476483a47

Merge pull request #10 from Ratler/glib-2_fixes

glib-2: Removed python as an hard dependency
---
  libs/glib-2/BUILD                                            +14/-3    
  libs/glib-2/DEPENDS                                          +3/-3     
  libs/glib-2/DETAILS                                          +4/-1     
  3 files changed, 0 insertions (+), 0 deletions (-)

--- a/libs/glib-2/BUILD
+++ b/libs/glib-2/BUILD
@@ -2,12 +2,23 @@
 
   # Do not remove --enable-debug=minimum, it will break some common
   # API functions if debug is entirely disabled
-  export OPTS+=" --disable-static --enable-shared --enable-debug=minimum"  &&
+  export OPTS+=" --disable-static --enable-shared --enable-debug=minimum --disable-fam"  &&
 
-  if [ "`get_module_config DOCS`" = "n" ] ; then
-    sedit "s/SUBDIRS = . m4macros glib gmodule gthread gobject gio tests po docs/SUBDIRS = . m4macros glib gmodule gthread gobject gio tests po/g" Makefile.in
+  if [ "$DOCS" = "n" ] || ! in_depends $MODULE Python; then
+    sedit "s;^\(.*\SUBDIRS .*\=.*\)docs\(.*\)$;\1\2;" Makefile.in
+    sedit "s;^\(.*\SUBDIRS .*\=.*\)docs\(.*\)$;\1\2;" Makefile.am
   fi  &&
 
+  # Don't build tests if we don't have python
+  # Tests are required if docs are built
+  if ! in_depends $MODULE Python && [ "$DOCS" = "n" ]; then
+    for i in $(find . -name Makefile.in -o -name Makefile.am); do
+      sedit "s;^\(.*\SUBDIRS .*\=.*\)tests\(.*\)$;\1\2;" $i
+    done
+  fi &&
+
+  patch_it $SOURCE2 1 &&
+  AT_M4DIR=. autoreconf && 
   default_build
 
 ) > $C_FIFO 2>&1
--- a/libs/glib-2/DEPENDS
+++ b/libs/glib-2/DEPENDS
@@ -1,3 +1,3 @@
-depends  zlib
-depends  libffi
-depends  Python
\ No newline at end of file
+depends zlib
+depends libffi
+optional_depends Python "" "" "build tests (for docs also say yes here)?"
--- a/libs/glib-2/DETAILS
+++ b/libs/glib-2/DETAILS
@@ -1,13 +1,16 @@
           MODULE=glib-2
          VERSION=32.3
           SOURCE=$MODULE.$VERSION.tar.xz
+	 SOURCE2=glib-2.31.x-external-gdbus-codegen.patch
 SOURCE_DIRECTORY=$BUILD_DIRECTORY/$MODULE.$VERSION
    SOURCE_URL[0]=$GNOME_URL/sources/glib/${MODULE#*-}.${VERSION%.*}
    SOURCE_URL[1]=ftp://ftp.gtk.org/pub/glib/${MODULE#*-}.${VERSION%.*}
+     SOURCE2_URL=$PATCH_URL
       SOURCE_VFY=sha1:429355327aaf69d2c21cbefcb20c61db94e0acec
+     SOURCE2_VFY=sha1:6625bbb01a5b39970a28f78503bcc58e13cd5297
         WEB_SITE=http://library.gnome.org/devel/glib
          ENTERED=20020313
-         UPDATED=20120515
+         UPDATED=20120711
            SHORT="A library of useful C routines for trees, hashes, and lists"
 
 cat << EOF




More information about the Lunar-commits mailing list