wok-6.x rev 12038

locale-pt_BR: remove locale-pt as dep and fix locale-pt localedef (save space on livecd)
author Christophe Lincoln <pankso@slitaz.org>
date Wed Mar 07 13:45:09 2012 +0100 (2012-03-07)
parents 41cee386ada1
children 184b534ff76f
files locale-fr/receipt locale-pt/receipt locale-pt_BR/receipt
line diff
     1.1 --- a/locale-fr/receipt	Wed Mar 07 09:10:02 2012 +0100
     1.2 +++ b/locale-fr/receipt	Wed Mar 07 13:45:09 2012 +0100
     1.3 @@ -9,7 +9,6 @@
     1.4  BUILD_DEPENDS="glibc glibc-locale slitaz-i18n"
     1.5  WEB_SITE="http://www.slitaz.org/"
     1.6  WANTED="slitaz-i18n"
     1.7 -WANTED="slitaz-i18n"
     1.8  
     1.9  LOCALE="fr"
    1.10  LOCALEDEF="fr_FR"
     2.1 --- a/locale-pt/receipt	Wed Mar 07 09:10:02 2012 +0100
     2.2 +++ b/locale-pt/receipt	Wed Mar 07 13:45:09 2012 +0100
     2.3 @@ -22,9 +22,6 @@
     2.4  	mk_locale_dir
     2.5  	get_slitaz_messages
     2.6  	get_core_messages
     2.7 -	# Pregenerate locale file so we dont need glibc-locale as dep.
     2.8 -	mkdir -p $fs/usr/lib/locale
     2.9 -	localedef -i $LOCALEDEF -c -f $CHARMAP $fs/usr/lib/locale/$LOCALEDEF
    2.10  }
    2.11  
    2.12  # Back to C if it's the last used locale.
    2.13 @@ -34,5 +31,4 @@
    2.14  		echo "LANG=C" > /etc/locale.conf
    2.15  		echo "LC_ALL=C" >> /etc/locale.conf
    2.16  	fi
    2.17 -	rm -rf /usr/lib/locale/$LOCALEDEF
    2.18  }
     3.1 --- a/locale-pt_BR/receipt	Wed Mar 07 09:10:02 2012 +0100
     3.2 +++ b/locale-pt_BR/receipt	Wed Mar 07 13:45:09 2012 +0100
     3.3 @@ -1,11 +1,12 @@
     3.4  # SliTaz package receipt
     3.5  
     3.6  PACKAGE="locale-pt_BR"
     3.7 -VERSION="1.2"
     3.8 +VERSION="4.0"
     3.9  CATEGORY="system-tools"
    3.10  SHORT_DESC="Portuguese/Brazilian locale pack."
    3.11  MAINTAINER="pankso@slitaz.org"
    3.12 -DEPENDS="locale-pt"
    3.13 +DEPENDS="glibc-base"
    3.14 +BUILD_DEPENDS="glibc glibc-locale slitaz-i18n"
    3.15  WEB_SITE="http://www.slitaz.org/"
    3.16  WANTED="slitaz-i18n"
    3.17  
    3.18 @@ -22,3 +23,12 @@
    3.19  	get_slitaz_messages
    3.20  	get_core_messages
    3.21  }
    3.22 +
    3.23 +# Back to C if it's the last used locale.
    3.24 +post_remove()
    3.25 +{
    3.26 +	if grep -q $LOCALEDEF /etc/locale.conf; then
    3.27 +		echo "LANG=C" > /etc/locale.conf
    3.28 +		echo "LC_ALL=C" >> /etc/locale.conf
    3.29 +	fi
    3.30 +}