wok-next rev 11958

Fix: update gdk pixbuf loaders cache file properly
author Antoine Bodin <gokhlayeh@slitaz.org>
date Sat Feb 18 00:36:14 2012 +0100 (2012-02-18)
parents 44841c3b5e55
children ef7dfb4c0950
files gdk-pixbuf/receipt gtk+/receipt librsvg/receipt
line diff
     1.1 --- a/gdk-pixbuf/receipt	Fri Feb 17 14:36:38 2012 -0500
     1.2 +++ b/gdk-pixbuf/receipt	Sat Feb 18 00:36:14 2012 +0100
     1.3 @@ -21,7 +21,6 @@
     1.4  	./configure \
     1.5  		--disable-glibtest \
     1.6  		--without-libjasper \
     1.7 -		--with-included-loaders=bmp,gif,jpeg,pcx,png,xpm  \
     1.8  		--build=$HOST_SYSTEM --host=$HOST_SYSTEM &&
     1.9  	make && make install
    1.10  }
    1.11 @@ -35,14 +34,12 @@
    1.12  		$fs/usr/lib/gdk-pixbuf-2.0/2.10.0/loaders
    1.13  	cp -a $_pkg/usr/lib/girepository-1.0 $fs/usr/lib
    1.14  	cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
    1.15 +	touch $fs/usr/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache
    1.16  }
    1.17  
    1.18 -# Pre and post install commands for Tazpkg.
    1.19  post_install()
    1.20  {
    1.21 -	echo "Creating /etc/gtk-2.0/gdk-pixbuf.loaders..."
    1.22 -	if [ ! -d $1/etc/gtk-2.0 ]; then
    1.23 -		mkdir -p $1/etc/gtk-2.0
    1.24 -	fi
    1.25 -	chroot $1/ /usr/bin/gdk-pixbuf-query-loaders > $1/etc/gtk-2.0/gdk-pixbuf.loaders
    1.26 +	echo -n "Updating gdk pixbuf loaders cache file..."
    1.27 +	chroot $1/ /usr/bin/gdk-pixbuf-query-loaders --update-cache
    1.28 +	status
    1.29  }
     2.1 --- a/gtk+/receipt	Fri Feb 17 14:36:38 2012 -0500
     2.2 +++ b/gtk+/receipt	Sat Feb 18 00:36:14 2012 +0100
     2.3 @@ -55,6 +55,8 @@
     2.4  
     2.5  	mkdir -p $fs/etc/gtk-2.0
     2.6  	touch $fs/etc/gtk-2.0/gtk.immodules
     2.7 +	ln -s /usr/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache \
     2.8 +		$fs/etc/gtk-2.0/gdk-pixbuf.loaders
     2.9  }
    2.10  
    2.11  # Pre and post install commands for Tazpkg.
     3.1 --- a/librsvg/receipt	Fri Feb 17 14:36:38 2012 -0500
     3.2 +++ b/librsvg/receipt	Sat Feb 18 00:36:14 2012 +0100
     3.3 @@ -40,15 +40,14 @@
     3.4  # Pre and post install commands for Tazpkg.
     3.5  post_install()
     3.6  {
     3.7 -	echo "Updating /usr/lib/gdk-pixbuf/2.10.0/loaders.cache file..."
     3.8 -	if [ ! -d $1/etc/gtk-2.0 ]; then
     3.9 -		mkdir -p $1/etc/gtk-2.0
    3.10 -	fi
    3.11 -	chroot $1/ /usr/bin/gdk-pixbuf-query-loaders > $1/etc/gtk-2.0/gdk-pixbuf.loaders
    3.12 +	echo -n "Updating gdk pixbuf loaders cache file..."
    3.13 +	chroot $1/ /usr/bin/gdk-pixbuf-query-loaders --update-cache
    3.14 +	status
    3.15  }
    3.16  
    3.17  post_remove()
    3.18  {
    3.19 -	echo "Updating /usr/lib/gdk-pixbuf/2.10.0/loaders.cache file..."
    3.20 -	chroot $1/ /usr/bin/gdk-pixbuf-query-loaders > $1/etc/gtk-2.0/gdk-pixbuf.loaders
    3.21 +	echo -n "Updating gdk pixbuf loaders cache file..."
    3.22 +	chroot $1/ /usr/bin/gdk-pixbuf-query-loaders --update-cache
    3.23 +	status
    3.24  }