r9029 - in packages/trunk/playonlinux/debian: . patches

Bertrand Marc bbk-guest at alioth.debian.org
Wed Mar 4 19:46:38 UTC 2009


Author: bbk-guest
Date: 2009-03-04 19:46:38 +0000 (Wed, 04 Mar 2009)
New Revision: 9029

Modified:
   packages/trunk/playonlinux/debian/control
   packages/trunk/playonlinux/debian/patches/mscorefonts.diff
Log:
mscorefonts.diff : try to comply with main category

Modified: packages/trunk/playonlinux/debian/control
===================================================================
--- packages/trunk/playonlinux/debian/control	2009-03-04 19:03:37 UTC (rev 9028)
+++ packages/trunk/playonlinux/debian/control	2009-03-04 19:46:38 UTC (rev 9029)
@@ -12,7 +12,8 @@
 Package: playonlinux
 Architecture: all
 Depends: ${shlibs:Depends}, ${misc:Depends}, ${python:Depends}, wine, unzip, wget, x-terminal-emulator, python-wxgtk2.8, imagemagick, cabextract
-Recommends: mesa-utils, ttf-mscorefonts-installer
+Recommends: mesa-utils
+Suggests: ttf-mscorefonts-installer
 Description: front-end for Wine
  PlayOnLinux is a front-end for wine. It permits you to easily install Windows
  Games  and softwares on Linux. It is advised to have a functional internet

Modified: packages/trunk/playonlinux/debian/patches/mscorefonts.diff
===================================================================
--- packages/trunk/playonlinux/debian/patches/mscorefonts.diff	2009-03-04 19:03:37 UTC (rev 9028)
+++ packages/trunk/playonlinux/debian/patches/mscorefonts.diff	2009-03-04 19:46:38 UTC (rev 9029)
@@ -1,5 +1,5 @@
---- playonlinux-3.3.1.orig/lib/sources
-+++ playonlinux-3.3.1/lib/sources
+--- playonlinux-3.3.1.obsolete.0.145008676060574.orig/lib/sources
++++ playonlinux-3.3.1.obsolete.0.145008676060574/lib/sources
 @@ -28,9 +28,10 @@
  
  	cfg_check 
@@ -8,30 +8,29 @@
  	if [ ! -d "$HOME/.PlayOnLinux/configurations/listes" ]
  	then
  		maj_check --first
-+		fonts_install
++		sleep 1 && fonts_install
  	fi
 -	fonts_install
  fi
---- playonlinux-3.3.1.orig/lib/main
-+++ playonlinux-3.3.1/lib/main
-@@ -102,6 +102,37 @@
+--- playonlinux-3.3.1.obsolete.0.145008676060574.orig/lib/main
++++ playonlinux-3.3.1.obsolete.0.145008676060574/lib/main
+@@ -102,12 +102,46 @@
  		$PYTHON "$PLAYONLINUX/python/mainwindow.py" "$1"
  	fi
  }
 +install_debfonts()
 +{
-+	DEBFONTS="/usr/share/fonts/truetype/msttcorefonts"
-+	if [ -e "$HOME/.PlayOnLinux/configurations/msfonts_installed" ]
++	if [ ! -e "$HOME/.PlayOnLinux/configurations/msfonts_installed" ]
 +	then
-+		if [ ! -e $HOME/.PlayOnLinux/fonts/ADVPACK.DLL ] && [ ! -d $DEBFONTS ]
++		DEBFONTS="/usr/share/fonts/truetype/msttcorefonts"
++		if [ -e "$HOME/.PlayOnLinux/configurations/msfonts_deb_installed" ] && [ ! -d $DEBFONTS ]
 +		then
 +			rm $HOME/.PlayOnLinux/fonts/ -r 2> /dev/null
 +			rm $HOME/.PlayOnLinux/fonts 2> /dev/null
 +			rm $HOME/.PlayOnLinux/configurations/fonts_installed 2> /dev/null
-+			rm $HOME/.PlayOnLinux/configurations/msfonts_installed 2> /dev/null
++			rm $HOME/.PlayOnLinux/configurations/msfonts_deb_installed 2> /dev/null
 +		fi
-+	else
-+		if [ -d $DEBFONTS ]
++		if [ ! -e "$HOME/.PlayOnLinux/configurations/msfonts_deb_installed" ] && [ -d $DEBFONTS ]
 +		then
 +			rm $HOME/.PlayOnLinux/fonts/ -r 2> /dev/null
 +			rm $HOME/.PlayOnLinux/fonts 2> /dev/null
@@ -45,10 +44,23 @@
 +				ln -s $DEBFONTS/$ttf $FONTDIR/$ttf
 +			done
 +			cd $OLDDIR
-+			touch "$HOME/.PlayOnLinux/configurations/msfonts_installed"
++			touch "$HOME/.PlayOnLinux/configurations/msfonts_deb_installed"
 +		fi
 +	fi
 +}
  fonts_install()
  {
- 	if [ ! "$DEJADIS" == "True" ]
+-	if [ ! "$DEJADIS" == "True" ]
++	if [ ! -e "$HOME/.PlayOnLinux/configurations/msfonts_installed" ] && [ ! -e "$HOME/.PlayOnLinux/configurations/msfonts_deb_installed" ]
+ 	then
+-		export DEJADIS="True"
+-		(sleep 1 && install_fonts)&
++		FONTS_WARNING="Microsoft fonts aren't installed.\n\n\
++If you encounter any fonts trouble, you should think about installing\
++ the debian package\nttf-mscorefonts-installer (see README.Debian)."
++		POL_SetupWindow_Init "$PLAYONLINUX/etc/setups/fonts/top.png"
++		POL_SetupWindow_message "$FONTS_WARNING" "Microsoft fonts"
++		POL_SetupWindow_Close
+ 	fi
+ }
+ install_fonts ()




More information about the Pkg-games-commits mailing list