wok-current diff locale-pt_BR/receipt @ rev 3041

Add libgphoto2 (import photos from camera)
author Rohit Joshi <jozee@slitaz.org>
date Tue May 12 16:58:53 2009 +0000 (2009-05-12)
parents d2be5bd5d83e
children 4c43897383ee
line diff
     1.1 --- a/locale-pt_BR/receipt	Wed Apr 22 18:26:22 2009 +0200
     1.2 +++ b/locale-pt_BR/receipt	Tue May 12 16:58:53 2009 +0000
     1.3 @@ -1,69 +1,15 @@
     1.4  # SliTaz package receipt
     1.5  
     1.6  PACKAGE="locale-pt_BR"
     1.7 -VERSION="1.1"
     1.8 +VERSION="1.2"
     1.9  CATEGORY="system-tools"
    1.10 -SHORT_DESC="Brazilian locale pack."
    1.11 +SHORT_DESC="Old Brazilian locale pack - Moved to locale-pt."
    1.12  MAINTAINER="pankso@slitaz.org"
    1.13 -DEPENDS="glibc-base"
    1.14 -BUILD_DEPENDS="glibc glibc-locale"
    1.15 +DEPENDS="locale-pt"
    1.16  WEB_SITE="http://www.slitaz.org/"
    1.17  
    1.18 -CORE_PKGS="asunder alsaplayer epdfview galculator geany gpicview gparted \
    1.19 -glib gtk+ grsync leafpad lxpanel lxtask obconf openbox pcmanfm xpad"
    1.20 -
    1.21 -LOCALE="pt_BR"
    1.22 -LOCALEDEF="pt_BR"
    1.23 -CHARMAP="ISO-8859-1"
    1.24 -
    1.25 -# Rules to configure and make the package.
    1.26 -compile_rules()
    1.27 -{
    1.28 -	# Ensure packages are built.
    1.29 -	for pkg in $CORE_PKGS
    1.30 -	do
    1.31 -		[ -d $WOK/$pkg/taz ] || tazwok cook $pkg
    1.32 -	done
    1.33 -}
    1.34 -
    1.35 -# Rules to gen a SliTaz package suitable for Tazpkg.
    1.36 -# Genereted locale files are in /usr/lib/locale.
    1.37 +# We just need a dir to pack
    1.38  genpkg_rules()
    1.39  {
    1.40 -	mkdir -p $fs/usr/share/locale/$LOCALE $fs/usr/lib/locale
    1.41 -	PKG_NAME="$PACKAGE"
    1.42 -	PKG_VERS="$VERSION"
    1.43 -	# Get the core packages messages.
    1.44 -	for pkg in $CORE_PKGS
    1.45 -	do
    1.46 -		[ -f $WOK/$pkg/receipt ] && . $WOK/$pkg/receipt
    1.47 -		if [ -d $WOK/$pkg/$PACKAGE-$VERSION/_pkg/usr/share/locale/$LOCALE ]; then
    1.48 -			cp -a $WOK/$pkg/$PACKAGE-$VERSION/_pkg/usr/share/locale/$LOCALE \
    1.49 -				$fs/usr/share/locale
    1.50 -		fi
    1.51 -	done
    1.52 -	PACKAGE="$PKG_NAME"
    1.53 -	VERSION="$PKG_VERS"
    1.54 -	localedef -i $LOCALEDEF -c -f $CHARMAP $fs/usr/lib/locale/$LOCALEDEF
    1.55 +	mkdir -p $fs/usr
    1.56  }
    1.57 -
    1.58 -# Post install to configure default locale.
    1.59 -post_install()
    1.60 -{
    1.61 -	local root
    1.62 -	root=$1
    1.63 -	# locale.conf
    1.64 -	if [ -s $root/etc/locale.conf ]; then
    1.65 -		echo "LANG=\"$LOCALEDEF\"" > $root/etc/locale.conf
    1.66 -		echo "LC_ALL=\"$LOCALEDEF\"" >> $root/etc/locale.conf
    1.67 -	fi
    1.68 -}
    1.69 -
    1.70 -# Back to C if it's the last used locale.
    1.71 -post_remove()
    1.72 -{
    1.73 -	if grep -q $LOCALEDEF /etc/locale.conf; then
    1.74 -		echo "LANG=C" > /etc/locale.conf
    1.75 -		echo "LC_ALL=C" >> /etc/locale.conf
    1.76 -	fi
    1.77 -}