# HG changeset patch # User Christophe Lincoln # Date 1331124309 -3600 # Node ID ca6e8553bf3f82f34d691a0f31a1549aa426fe91 # Parent 41cee386ada1de8c83edb2f5a21a51c7603a8f6e locale-pt_BR: remove locale-pt as dep and fix locale-pt localedef (save space on livecd) diff -r 41cee386ada1 -r ca6e8553bf3f locale-fr/receipt --- a/locale-fr/receipt Wed Mar 07 09:10:02 2012 +0100 +++ b/locale-fr/receipt Wed Mar 07 13:45:09 2012 +0100 @@ -9,7 +9,6 @@ BUILD_DEPENDS="glibc glibc-locale slitaz-i18n" WEB_SITE="http://www.slitaz.org/" WANTED="slitaz-i18n" -WANTED="slitaz-i18n" LOCALE="fr" LOCALEDEF="fr_FR" diff -r 41cee386ada1 -r ca6e8553bf3f locale-pt/receipt --- a/locale-pt/receipt Wed Mar 07 09:10:02 2012 +0100 +++ b/locale-pt/receipt Wed Mar 07 13:45:09 2012 +0100 @@ -22,9 +22,6 @@ mk_locale_dir get_slitaz_messages get_core_messages - # Pregenerate locale file so we dont need glibc-locale as dep. - mkdir -p $fs/usr/lib/locale - localedef -i $LOCALEDEF -c -f $CHARMAP $fs/usr/lib/locale/$LOCALEDEF } # Back to C if it's the last used locale. @@ -34,5 +31,4 @@ echo "LANG=C" > /etc/locale.conf echo "LC_ALL=C" >> /etc/locale.conf fi - rm -rf /usr/lib/locale/$LOCALEDEF } diff -r 41cee386ada1 -r ca6e8553bf3f locale-pt_BR/receipt --- a/locale-pt_BR/receipt Wed Mar 07 09:10:02 2012 +0100 +++ b/locale-pt_BR/receipt Wed Mar 07 13:45:09 2012 +0100 @@ -1,11 +1,12 @@ # SliTaz package receipt PACKAGE="locale-pt_BR" -VERSION="1.2" +VERSION="4.0" CATEGORY="system-tools" SHORT_DESC="Portuguese/Brazilian locale pack." MAINTAINER="pankso@slitaz.org" -DEPENDS="locale-pt" +DEPENDS="glibc-base" +BUILD_DEPENDS="glibc glibc-locale slitaz-i18n" WEB_SITE="http://www.slitaz.org/" WANTED="slitaz-i18n" @@ -22,3 +23,12 @@ get_slitaz_messages get_core_messages } + +# Back to C if it's the last used locale. +post_remove() +{ + if grep -q $LOCALEDEF /etc/locale.conf; then + echo "LANG=C" > /etc/locale.conf + echo "LC_ALL=C" >> /etc/locale.conf + fi +}