wok diff wine/receipt @ rev 18227

wine: modify /etc/locale.conf for UTF-8 support
author Xander Ziiryanoff <psychomaniak@xakep.ru>
date Mon Jul 20 08:25:22 2015 +0200 (2015-07-20)
parents dfef8de3d270
children abecef518624
line diff
     1.1 --- a/wine/receipt	Fri Jan 30 10:17:37 2015 +0100
     1.2 +++ b/wine/receipt	Mon Jul 20 08:25:22 2015 +0200
     1.3 @@ -11,7 +11,7 @@
     1.4  WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
     1.5  TAGS="windows emulator" # wine is not an emulator
     1.6  
     1.7 -DEPENDS="alsa-lib libxml2 libxslt mesa libglu-mesa xorg-dev lcms freetype"
     1.8 +DEPENDS="alsa-lib libxml2 libxslt mesa libglu-mesa lcms freetype"
     1.9  BUILD_DEPENDS="alsa-lib-dev flex bison mesa-dev freetype-dev libtool \
    1.10  libglu-mesa-dev libxml2-dev libxslt-dev lcms-dev prelink \
    1.11  jpeg-dev libpng-dev libv4l-dev gnutls-dev libgphoto2-dev cups-dev dbus-dev"
    1.12 @@ -37,4 +37,14 @@
    1.13  post_install()
    1.14  {
    1.15  	[ "$1" ] || modprobe snd-seq 2>/dev/null
    1.16 +
    1.17 +	# Enable unicode filenames and localized keyboard layouts input
    1.18 +	. $1/etc/locale.conf
    1.19 +	case $LANG in
    1.20 +		(C|POSIX) echo $LANG - skip modifying /etc/locale.conf ;;
    1.21 +		(*)
    1.22 +    		echo "$LANG changed to ${LANG}.UTF-8 in /etc/locale.conf"
    1.23 +		echo "Restart/ReLogin required."
    1.24 +		sed -i 's/$/&.UTF-8/' $1/etc/locale.conf ;;
    1.25 +	esac
    1.26  }