[arch-commits] CVS update of extra/lib/glib2 (PKGBUILD gkeyfile-bool-nocase.patch)

Jan de Groot jgc at archlinux.org
Thu Oct 18 16:17:44 UTC 2007


    Date: Thursday, October 18, 2007 @ 12:17:44
  Author: jgc
    Path: /home/cvs-extra/extra/lib/glib2

   Added: gkeyfile-bool-nocase.patch (1.1)
Modified: PKGBUILD (1.58 -> 1.59)

upgpkg: glib2 2.14.2-2
True is really a boolean, same for False


----------------------------+
 PKGBUILD                   |    6 ++++--
 gkeyfile-bool-nocase.patch |   16 ++++++++++++++++
 2 files changed, 20 insertions(+), 2 deletions(-)


Index: extra/lib/glib2/PKGBUILD
diff -u extra/lib/glib2/PKGBUILD:1.58 extra/lib/glib2/PKGBUILD:1.59
--- extra/lib/glib2/PKGBUILD:1.58	Wed Oct 17 13:19:50 2007
+++ extra/lib/glib2/PKGBUILD	Thu Oct 18 12:17:44 2007
@@ -1,9 +1,9 @@
-# $Id: PKGBUILD,v 1.58 2007/10/17 17:19:50 jgc Exp $
+# $Id: PKGBUILD,v 1.59 2007/10/18 16:17:44 jgc Exp $
 # Maintainer: Jan de Groot <jgc at archlinux.org>
 
 pkgname=glib2
 pkgver=2.14.2
-pkgrel=1
+pkgrel=2
 pkgdesc="Common C routines used by GTK+ 2.4 and other libs"
 url="http://www.gtk.org/"
 arch=(i686 x86_64)
@@ -12,6 +12,7 @@
 makedepends=('pkgconfig')
 options=('!libtool')
 source=(ftp://ftp.gnome.org/pub/GNOME/sources/glib/2.14/glib-${pkgver}.tar.bz2
+	gkeyfile-bool-nocase.patch
 	glib2.sh
 	glib2.csh)
 md5sums=('fca5d26c8efea4e6e547c81c801bf67c'
@@ -20,6 +21,7 @@
 
 build() {
   cd ${startdir}/src/glib-${pkgver}
+  patch -Np0 -i ${startdir}/src/gkeyfile-bool-nocase.patch || return 1
   ./configure --prefix=/usr --enable-static --enable-shared --with-pcre=system
   make || return 1
   make DESTDIR=${startdir}/pkg install
Index: extra/lib/glib2/gkeyfile-bool-nocase.patch
diff -u /dev/null extra/lib/glib2/gkeyfile-bool-nocase.patch:1.1
--- /dev/null	Thu Oct 18 12:17:44 2007
+++ extra/lib/glib2/gkeyfile-bool-nocase.patch	Thu Oct 18 12:17:44 2007
@@ -0,0 +1,16 @@
+Index: glib/gkeyfile.c
+===================================================================
+--- glib/gkeyfile.c	(revision 5714)
++++ glib/gkeyfile.c	(working copy)
+@@ -3639,9 +3639,9 @@
+ {
+   gchar *value_utf8;
+ 
+-  if (strcmp (value, "true") == 0 || strcmp (value, "1") == 0)
++  if (g_ascii_strcasecmp (value, "true") == 0 || strcmp (value, "1") == 0)
+     return TRUE;
+-  else if (strcmp (value, "false") == 0 || strcmp (value, "0") == 0)
++  else if (g_ascii_strcasecmp (value, "false") == 0 || strcmp (value, "0") == 0)
+     return FALSE;
+ 
+   value_utf8 = _g_utf8_make_valid (value);




More information about the arch-commits mailing list