r6893 - in packages/trunk/pyracerz: . debian debian/patches modules

Carlos Galisteo cgalisteo-guest at alioth.debian.org
Wed May 7 10:52:20 UTC 2008


Author: cgalisteo-guest
Date: 2008-05-07 10:52:20 +0000 (Wed, 07 May 2008)
New Revision: 6893

Added:
   packages/trunk/pyracerz/debian/
   packages/trunk/pyracerz/debian/changelog
   packages/trunk/pyracerz/debian/compat
   packages/trunk/pyracerz/debian/control
   packages/trunk/pyracerz/debian/copyright
   packages/trunk/pyracerz/debian/dirs
   packages/trunk/pyracerz/debian/docs
   packages/trunk/pyracerz/debian/examples
   packages/trunk/pyracerz/debian/links
   packages/trunk/pyracerz/debian/menu
   packages/trunk/pyracerz/debian/patches/
   packages/trunk/pyracerz/debian/patches/car.diff
   packages/trunk/pyracerz/debian/patches/game.diff
   packages/trunk/pyracerz/debian/patches/menu.diff
   packages/trunk/pyracerz/debian/patches/misc.diff
   packages/trunk/pyracerz/debian/patches/pyRacerz.diff
   packages/trunk/pyracerz/debian/patches/replay.difff
   packages/trunk/pyracerz/debian/patches/series
   packages/trunk/pyracerz/debian/patches/track.diff
   packages/trunk/pyracerz/debian/postinst
   packages/trunk/pyracerz/debian/postrm
   packages/trunk/pyracerz/debian/pyracerz.desktop
   packages/trunk/pyracerz/debian/pyracerz.sgml
   packages/trunk/pyracerz/debian/pyracerz.xpm
   packages/trunk/pyracerz/debian/rules
   packages/trunk/pyracerz/debian/watch
Modified:
   packages/trunk/pyracerz/modules/game.py
   packages/trunk/pyracerz/modules/misc.py
Log:
[svn-inject] Applying Debian modifications to trunk


Property changes on: packages/trunk/pyracerz/debian
___________________________________________________________________
Name: mergeWithUpstream
   + 1

Added: packages/trunk/pyracerz/debian/changelog
===================================================================
--- packages/trunk/pyracerz/debian/changelog	                        (rev 0)
+++ packages/trunk/pyracerz/debian/changelog	2008-05-07 10:52:20 UTC (rev 6893)
@@ -0,0 +1,50 @@
+pyracerz (0.2-5) unstable; urgency=low
+
+  * python-numeric dependence removed (Windows-only dependence). (Closes: #478454)
+  * Maintainer field changed. Joining Debian Games Team.
+
+ -- Carlos Galisteo <cgalisteo at k-rolus.net>  Wed, 07 May 2008 10:29:51 +0000
+
+pyracerz (0.2-4) unstable; urgency=low
+
+  * New maintainer. (Closes: #384659)
+  * Copyright years added.
+  * Migrated to python-support.
+  * Patches are now managed with quilt.
+  * Added patch for disable sound when mixer is not initialized
+    correctly. Thanks to Piotr Ozarowski <ozarow at gmail.com>. (Closes #391536)
+  * Long description and upstream URL included in man page.
+
+ -- Carlos Galisteo <cgalisteo at k-rolus.net>  Mon, 16 Oct 2006 08:17:07 +0000
+
+pyracerz (0.2-3) unstable; urgency=low
+
+  * Bump Standards-Version: 3.7.2.
+  * Updated package to complain with new Python Policy. Closes: #380914
+    Thanks to Piotr Ozarowski <ozarow at gmail.com>
+    - Changed control file.
+    - Added debian/pycompat file.
+  * Fixed missed space before Homepage pseudo header (dev ref 6.2.4).
+  * Fixed modules/misc.py to dont call stopSound function when you use
+    --nosound option.
+  * Added python-numeric Dependence.
+  * Fixed problem to write replay files.
+  * Fixed problem to write in highscores file. (changed postinst to call chmod
+    666 on pyracerz.conf file that is in /var/games directory.)
+
+ -- Jose Carlos Medeiros <debian at psabs.com.br>  Mon, 28 Aug 2006 14:12:31 -0300
+
+pyracerz (0.2-2) unstable; urgency=low
+
+  * Removed debin/compat file and created DH_COMPAT var in debian/rules.
+  * Updated to DH_COMPAT=5.
+  * Change Architecture to all in control file. (closes: #356870)
+
+ -- Jose Carlos Medeiros <debian at psabs.com.br>  Tue, 14 Mar 2006 14:43:59 -0300
+
+pyracerz (0.2-1) unstable; urgency=low
+
+  * Initial release Closes: #334405
+
+ -- Jose Carlos Medeiros <debian at psabs.com.br>  Wed, 19 Oct 2005 14:41:01 -0200
+

Added: packages/trunk/pyracerz/debian/compat
===================================================================
--- packages/trunk/pyracerz/debian/compat	                        (rev 0)
+++ packages/trunk/pyracerz/debian/compat	2008-05-07 10:52:20 UTC (rev 6893)
@@ -0,0 +1 @@
+5

Added: packages/trunk/pyracerz/debian/control
===================================================================
--- packages/trunk/pyracerz/debian/control	                        (rev 0)
+++ packages/trunk/pyracerz/debian/control	2008-05-07 10:52:20 UTC (rev 6893)
@@ -0,0 +1,20 @@
+Source: pyracerz
+Section: games
+Priority: optional
+Maintainer: Debian Games Team <pkg-games-devel at lists.alioth.debian.org>
+Build-Depends: debhelper (>= 5.0.37.2), docbook-to-man, quilt (>= 0.39-2)
+Build-Depends-Indep: python-support (>= 0.5.3), python (>= 2.3.5-11)
+Standards-Version: 3.7.2
+
+Package: pyracerz
+Architecture: all
+Depends: ${python:Depends}, ${shlibs:Depends}, python-pygame (>= 1.7.0), libsdl-ttf2.0-0
+Recommends: python-psyco
+Description: multiplayer top view 2D racing game
+ It features multiplayer (on the same computer), tournaments, high scores,
+ replays, 6 tracks (really 12, because each track can be used Normal or 
+ Reverse), 9 cars, a basic robot player, 3 different levels of difficulty,
+ and a music player (it can play the .ogg files locating in the musics
+ directory).
+ .
+  Homepage: http://pyracerz.sourceforge.net/

Added: packages/trunk/pyracerz/debian/copyright
===================================================================
--- packages/trunk/pyracerz/debian/copyright	                        (rev 0)
+++ packages/trunk/pyracerz/debian/copyright	2008-05-07 10:52:20 UTC (rev 6893)
@@ -0,0 +1,49 @@
+This package was debianized by Jose Carlos Medeiros <debian at psabs.com.br> on
+Wed, 19 Oct 2005 14:41:01 -0200.
+Maintenance was taken over by Carlos Galisteo de Cabo <cgalisteo at k-rolus.net> 
+on Mon, 23 Oct 2006 22:58:24 +0200
+
+
+It was downloaded from http://pyracerz.sourceforge.net/
+
+Copyright Holder: Jujucece <jujucece at gmail.com> 2005-2006
+
+License:
+
+   This package is free software; you can redistribute it and/or modify
+   it under the terms of the GNU General Public License as published by
+   the Free Software Foundation; either version 2 of the License, or
+   (at your option) any later version.
+
+   This package is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+   GNU General Public License for more details.
+
+   You should have received a copy of the GNU General Public License
+   along with this package; if not, write to the Free Software
+   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
+   -------------------------------------------------------------------------
+
+   Alba font has the follow license:
+   
+   These fonts are free to anyone who wants to use them.
+   All I ask is that (if its possible) you e-mail me 
+   :: yahoo at fontalicious.com :: and tell me  where I can see it. 
+   If you use this font for print use, I would love a copy of whatever it is
+   used for.
+
+   If you are going to redistribute my font, please include this Read Me text
+   file and a link to my page. That's it! Actually, you don't have to link 
+   to my page, but I sure would like it!
+
+   Thanks for reading this. Have a super day!
+   All Fonts Copyright © 2001 Font-a-licious Fonts
+   Please refer to the "Usage Info" section of the website for any other 
+   information.
+   :::please visit http://www.fontalicious.com everyday!!
+
+
+On Debian systems, the complete text of the GNU General
+Public License can be found in `/usr/share/common-licenses/GPL'.
+

Added: packages/trunk/pyracerz/debian/dirs
===================================================================
--- packages/trunk/pyracerz/debian/dirs	                        (rev 0)
+++ packages/trunk/pyracerz/debian/dirs	2008-05-07 10:52:20 UTC (rev 6893)
@@ -0,0 +1,6 @@
+usr/bin
+usr/games
+usr/share/games/pyracerz
+usr/share/pixmaps
+usr/share/applications
+var/games/pyracerz

Added: packages/trunk/pyracerz/debian/docs
===================================================================
--- packages/trunk/pyracerz/debian/docs	                        (rev 0)
+++ packages/trunk/pyracerz/debian/docs	2008-05-07 10:52:20 UTC (rev 6893)
@@ -0,0 +1,2 @@
+README
+TODO

Added: packages/trunk/pyracerz/debian/examples
===================================================================
--- packages/trunk/pyracerz/debian/examples	                        (rev 0)
+++ packages/trunk/pyracerz/debian/examples	2008-05-07 10:52:20 UTC (rev 6893)
@@ -0,0 +1 @@
+debian/pyracerz.conf

Added: packages/trunk/pyracerz/debian/links
===================================================================
--- packages/trunk/pyracerz/debian/links	                        (rev 0)
+++ packages/trunk/pyracerz/debian/links	2008-05-07 10:52:20 UTC (rev 6893)
@@ -0,0 +1 @@
+usr/games/pyracerz usr/bin/pyracerz

Added: packages/trunk/pyracerz/debian/menu
===================================================================
--- packages/trunk/pyracerz/debian/menu	                        (rev 0)
+++ packages/trunk/pyracerz/debian/menu	2008-05-07 10:52:20 UTC (rev 6893)
@@ -0,0 +1,3 @@
+?package(pyracerz):needs="X11" section="Games/Arcade"\
+  title="pyRacerz" command="/usr/games/pyracerz"\
+  icon="/usr/share/pixmaps/pyracerz.xpm"

Added: packages/trunk/pyracerz/debian/patches/car.diff
===================================================================
--- packages/trunk/pyracerz/debian/patches/car.diff	                        (rev 0)
+++ packages/trunk/pyracerz/debian/patches/car.diff	2008-05-07 10:52:20 UTC (rev 6893)
@@ -0,0 +1,15 @@
+Index: pyracerz-0.2/modules/car.py
+===================================================================
+--- pyracerz-0.2.orig/modules/car.py	2006-10-31 17:10:16.000000000 +0000
++++ pyracerz-0.2/modules/car.py	2006-11-02 15:11:47.000000000 +0000
+@@ -29,8 +29,8 @@
+ 
+   def __init__(self, color, level):
+     pygame.sprite.Sprite.__init__(self)
+-    image = pygame.image.load(os.path.join("sprites", "cars", "car" + str(color) + ".png")).convert_alpha()
+-    imageLight = pygame.image.load(os.path.join("sprites", "cars", "car" + str(color) + "B.png")).convert_alpha()
++    image = pygame.image.load(os.path.join("/usr/share/games/pyracerz/sprites", "cars", "car" + str(color) + ".png")).convert_alpha()
++    imageLight = pygame.image.load(os.path.join("/usr/share/games/pyracerz/sprites", "cars", "car" + str(color) + "B.png")).convert_alpha()
+     
+     self.sprite = pygame.sprite.RenderPlain(self)
+ 

Added: packages/trunk/pyracerz/debian/patches/game.diff
===================================================================
--- packages/trunk/pyracerz/debian/patches/game.diff	                        (rev 0)
+++ packages/trunk/pyracerz/debian/patches/game.diff	2008-05-07 10:52:20 UTC (rev 6893)
@@ -0,0 +1,52 @@
+Index: pyracerz-0.2/modules/game.py
+===================================================================
+--- pyracerz-0.2.orig/modules/game.py	2006-11-02 15:14:58.000000000 +0000
++++ pyracerz-0.2/modules/game.py	2006-11-02 15:17:02.000000000 +0000
+@@ -128,25 +128,25 @@
+         bestRank.append(1)
+ 
+       # Display Fires
+-      imgFireG = pygame.transform.rotozoom(pygame.image.load(os.path.join("sprites", "grey.png")).convert_alpha(), 0, misc.zoom)
++      imgFireG = pygame.transform.rotozoom(pygame.image.load(os.path.join("/usr/share/games/pyracerz/sprites", "grey.png")).convert_alpha(), 0, misc.zoom)
+       misc.screen.blit(imgFireG, (10*misc.zoom,10*misc.zoom))
+       misc.screen.blit(imgFireG, (90*misc.zoom,10*misc.zoom))
+       misc.screen.blit(imgFireG, (170*misc.zoom,10*misc.zoom))
+       pygame.display.flip()
+       pygame.time.delay(1000)
+-      imgFire = pygame.transform.rotozoom(pygame.image.load(os.path.join("sprites", "red.png")).convert_alpha(), 0, misc.zoom)
++      imgFire = pygame.transform.rotozoom(pygame.image.load(os.path.join("/usr/share/games/pyracerz/sprites", "red.png")).convert_alpha(), 0, misc.zoom)
+       misc.screen.blit(imgFire, (10*misc.zoom,10*misc.zoom))
+       #misc.screen.blit(imgFire, (90*misc.zoom,10*misc.zoom))
+       #misc.screen.blit(imgFire, (170*misc.zoom,10*misc.zoom))
+       pygame.display.flip()
+       pygame.time.delay(1000)
+-      imgFire = pygame.transform.rotozoom(pygame.image.load(os.path.join("sprites", "red.png")).convert_alpha(), 0, misc.zoom)
++      imgFire = pygame.transform.rotozoom(pygame.image.load(os.path.join("/usr/share/games/pyracerz/sprites", "red.png")).convert_alpha(), 0, misc.zoom)
+       #misc.screen.blit(imgFire, (10*misc.zoom,10*misc.zoom))
+       misc.screen.blit(imgFire, (90*misc.zoom,10*misc.zoom))
+       #misc.screen.blit(imgFire, (170*misc.zoom,10*misc.zoom))
+       pygame.display.flip()
+       pygame.time.delay(1000)
+-      imgFire = pygame.transform.rotozoom(pygame.image.load(os.path.join("sprites", "red.png")).convert_alpha(), 0, misc.zoom)
++      imgFire = pygame.transform.rotozoom(pygame.image.load(os.path.join("/usr/share/games/pyracerz/sprites", "red.png")).convert_alpha(), 0, misc.zoom)
+       #misc.screen.blit(imgFireG, (10*misc.zoom,10*misc.zoom))
+       #misc.screen.blit(imgFireG, (90*misc.zoom,10*misc.zoom))
+       misc.screen.blit(imgFire, (170*misc.zoom,10*misc.zoom))
+@@ -591,7 +591,7 @@
+           bestChrono = 0
+           break
+ 
+-      playCar = pygame.transform.rotozoom(pygame.image.load(os.path.join("sprites", "cars", "car" + str(play.car.color) + ".png")).convert_alpha(), 270, 1.2*misc.zoom)
++      playCar = pygame.transform.rotozoom(pygame.image.load(os.path.join("/usr/share/games/pyracerz/sprites", "cars", "car" + str(play.car.color) + ".png")).convert_alpha(), 270, 1.2*misc.zoom)
+ 
+       # If it's a tournament, compute points
+       if self.gameType == "tournament":
+@@ -643,7 +643,7 @@
+         if play.point < play2.point:
+           self.rank = self.rank + 1
+ 
+-      playCar = pygame.transform.rotozoom(pygame.image.load(os.path.join("sprites", "cars", "car" + str(play.car.color) + ".png")).convert_alpha(), 270, 1.2*misc.zoom)
++      playCar = pygame.transform.rotozoom(pygame.image.load(os.path.join("/usr/share/games/pyracerz/sprites", "cars", "car" + str(play.car.color) + ".png")).convert_alpha(), 270, 1.2*misc.zoom)
+ 
+       if self.rank == 1:
+         text = misc.titleFont.render(str(play.rank) + "' " + play.name + " :  >> " + str(play.point) + " <<", 1, misc.lightColor)

Added: packages/trunk/pyracerz/debian/patches/menu.diff
===================================================================
--- packages/trunk/pyracerz/debian/patches/menu.diff	                        (rev 0)
+++ packages/trunk/pyracerz/debian/patches/menu.diff	2008-05-07 10:52:20 UTC (rev 6893)
@@ -0,0 +1,112 @@
+Index: pyracerz-0.2/modules/menu.py
+===================================================================
+--- pyracerz-0.2.orig/modules/menu.py	2006-11-02 15:19:31.000000000 +0000
++++ pyracerz-0.2/modules/menu.py	2006-11-02 15:27:25.000000000 +0000
+@@ -405,7 +405,7 @@
+     # Find cars with browsing and finding the 2 files
+     self.listAvailableCarNames = []
+ 
+-    listFiles = os.listdir(os.path.join("sprites", "cars"))
++    listFiles = os.listdir(os.path.join("/usr/share/games/pyracerz/sprites", "cars"))
+     for fileCar in listFiles:
+       if fileCar.endswith("B.png"):
+         carName = fileCar.replace("B.png", "")
+@@ -420,7 +420,7 @@
+     self.listCars = []
+ 
+     for carName in self.listAvailableCarNames:
+-      self.listCars.append(pygame.transform.rotozoom(pygame.image.load(os.path.join("sprites", "cars", carName + ".png")).convert_alpha(), 270, 1.2*misc.zoom))
++      self.listCars.append(pygame.transform.rotozoom(pygame.image.load(os.path.join("/usr/share/games/pyracerz/sprites", "cars", carName + ".png")).convert_alpha(), 270, 1.2*misc.zoom))
+     
+     # Display the Title    
+     titleMenu = SimpleTitleOnlyMenu(self.titleFont, self.title)
+@@ -706,7 +706,7 @@
+     # Find cars with browsing and finding the 2 files
+     self.listAvailableCarNames = []
+ 
+-    listFiles = os.listdir(os.path.join("sprites", "cars"))
++    listFiles = os.listdir(os.path.join("/usr/share/games/pyracerz/sprites", "cars"))
+     for fileCar in listFiles:
+       if fileCar.endswith("B.png"):
+         carName = fileCar.replace("B.png", "")
+@@ -721,7 +721,7 @@
+     self.listCars = []
+ 
+     for carName in self.listAvailableCarNames:
+-      self.listCars.append(pygame.transform.rotozoom(pygame.image.load(os.path.join("sprites", "cars", carName + ".png")).convert_alpha(), 270, 1.2*misc.zoom))
++      self.listCars.append(pygame.transform.rotozoom(pygame.image.load(os.path.join("/usr/share/games/pyracerz/sprites", "cars", carName + ".png")).convert_alpha(), 270, 1.2*misc.zoom))
+     
+     # Display the Title    
+     titleMenu = SimpleTitleOnlyMenu(self.titleFont, self.title)
+@@ -984,7 +984,7 @@
+ 
+     text = self.itemFont.render("GNU/Linux", 1, (255, 255, 255))
+     textRect = text.get_rect()
+-    image = pygame.transform.rotozoom(pygame.image.load(os.path.join("credits", "linux.png")).convert_alpha(), 0, misc.zoom)
++    image = pygame.transform.rotozoom(pygame.image.load(os.path.join("/usr/share/games/pyracerz/credits", "linux.png")).convert_alpha(), 0, misc.zoom)
+     imageRect = image.get_rect()
+     textRect.centerx = misc.screen.get_rect().centerx + imageRect.width/2
+     textRect.y = y
+@@ -996,7 +996,7 @@
+ 
+     text = self.itemFont.render("Python", 1, (255, 255, 255))
+     textRect = text.get_rect()
+-    image = pygame.transform.rotozoom(pygame.image.load(os.path.join("credits", "python.png")).convert_alpha(), 0, misc.zoom)
++    image = pygame.transform.rotozoom(pygame.image.load(os.path.join("/usr/share/games/pyracerz/credits", "python.png")).convert_alpha(), 0, misc.zoom)
+     imageRect = image.get_rect()
+     textRect.centerx = misc.screen.get_rect().centerx + imageRect.width/2
+     textRect.y = y
+@@ -1008,7 +1008,7 @@
+ 
+     text = self.itemFont.render("Pygame", 1, (255, 255, 255))
+     textRect = text.get_rect()
+-    image = pygame.transform.rotozoom(pygame.image.load(os.path.join("credits", "pygame.png")).convert_alpha(), 0, misc.zoom)
++    image = pygame.transform.rotozoom(pygame.image.load(os.path.join("/usr/share/games/pyracerz/credits", "pygame.png")).convert_alpha(), 0, misc.zoom)
+     imageRect = image.get_rect()
+     textRect.centerx = misc.screen.get_rect().centerx + imageRect.width/2
+     textRect.y = y
+@@ -1020,7 +1020,7 @@
+ 
+     text = self.itemFont.render("Inkscape", 1, (255, 255, 255))
+     textRect = text.get_rect()
+-    image = pygame.transform.rotozoom(pygame.image.load(os.path.join("credits", "inkscape.png")).convert_alpha(), 0, misc.zoom)
++    image = pygame.transform.rotozoom(pygame.image.load(os.path.join("/usr/share/games/pyracerz/credits", "inkscape.png")).convert_alpha(), 0, misc.zoom)
+     imageRect = image.get_rect()
+     textRect.centerx = misc.screen.get_rect().centerx + imageRect.width/2
+     textRect.y = y
+@@ -1032,7 +1032,7 @@
+ 
+     text = self.itemFont.render("The Gimp", 1, (255, 255, 255))
+     textRect = text.get_rect()
+-    image = pygame.transform.rotozoom(pygame.image.load(os.path.join("credits", "gimp.png")).convert_alpha(), 0, misc.zoom)
++    image = pygame.transform.rotozoom(pygame.image.load(os.path.join("/usr/share/games/pyracerz/credits", "gimp.png")).convert_alpha(), 0, misc.zoom)
+     imageRect = image.get_rect()
+     textRect.centerx = misc.screen.get_rect().centerx + imageRect.width/2
+     textRect.y = y
+@@ -1044,7 +1044,7 @@
+ 
+     text = self.itemFont.render("Vim", 1, (255, 255, 255))
+     textRect = text.get_rect()
+-    image = pygame.transform.rotozoom(pygame.image.load(os.path.join("credits", "vim.png")).convert_alpha(), 0, misc.zoom)
++    image = pygame.transform.rotozoom(pygame.image.load(os.path.join("/usr/share/games/pyracerz/credits", "vim.png")).convert_alpha(), 0, misc.zoom)
+     imageRect = image.get_rect()
+     textRect.centerx = misc.screen.get_rect().centerx + imageRect.width/2
+     textRect.y = y
+@@ -1071,7 +1071,7 @@
+     
+     confFile=ConfigParser.SafeConfigParser() 
+     try:
+-      confFile.readfp(file(".pyRacerz.conf", "r")) 
++      confFile.readfp(file("/var/games/pyracerz/pyracerz.conf", "r")) 
+       self.nbItem = 0
+ 
+       for sect in confFile.sections():
+@@ -1117,7 +1117,7 @@
+ 
+     confFile=ConfigParser.SafeConfigParser() 
+     try:
+-      confFile.readfp(file(".pyRacerz.conf", "r")) 
++      confFile.readfp(file("/var/games/pyracerz/pyracerz.conf", "r")) 
+     except Exception:
+       return
+ 

Added: packages/trunk/pyracerz/debian/patches/misc.diff
===================================================================
--- packages/trunk/pyracerz/debian/patches/misc.diff	                        (rev 0)
+++ packages/trunk/pyracerz/debian/patches/misc.diff	2008-05-07 10:52:20 UTC (rev 6893)
@@ -0,0 +1,126 @@
+Index: pyracerz-0.2/modules/misc.py
+===================================================================
+--- pyracerz-0.2.orig/modules/misc.py	2006-11-02 15:30:52.000000000 +0000
++++ pyracerz-0.2/modules/misc.py	2006-11-02 15:34:11.000000000 +0000
+@@ -52,17 +52,17 @@
+   global background
+ 
+   try:
+-    popUpFont = pygame.font.Font(os.path.join("fonts", "alba", "ALBA____.TTF"), int(16*zoom))
+-    titleFont = pygame.font.Font(os.path.join("fonts", "alba", "ALBA____.TTF"), int(52*zoom))
+-    itemFont = pygame.font.Font(os.path.join("fonts", "alba", "ALBA____.TTF"), int(34*zoom))
+-    smallItemFont = pygame.font.Font(os.path.join("fonts", "alba", "ALBA____.TTF"), int(30*zoom))
+-    bigFont = pygame.font.Font(os.path.join("fonts", "alba", "ALBA____.TTF"), int(66*zoom))
++    popUpFont = pygame.font.Font(os.path.join("/usr/share/games/pyracerz/fonts", "alba", "ALBA____.TTF"), int(16*zoom))
++    titleFont = pygame.font.Font(os.path.join("/usr/share/games/pyracerz/fonts", "alba", "ALBA____.TTF"), int(52*zoom))
++    itemFont = pygame.font.Font(os.path.join("/usr/share/games/pyracerz/fonts", "alba", "ALBA____.TTF"), int(34*zoom))
++    smallItemFont = pygame.font.Font(os.path.join("/usr/share/games/pyracerz/fonts", "alba", "ALBA____.TTF"), int(30*zoom))
++    bigFont = pygame.font.Font(os.path.join("/usr/share/games/pyracerz/fonts", "alba", "ALBA____.TTF"), int(66*zoom))
+   except Exception, e:
+     print "Cannot initialize fonts:"
+     print e
+     sys.exit(-1)
+ 
+-  background = pygame.transform.scale(pygame.image.load(os.path.join("sprites", "background.png")).convert(), (int(1024*zoom), int(768*zoom)))
++  background = pygame.transform.scale(pygame.image.load(os.path.join("/usr/share/games/pyracerz/sprites", "background.png")).convert(), (int(1024*zoom), int(768*zoom)))
+ 
+ def chrono2Str(chrono):
+   return str(chrono/100.0).replace(".", "''")
+@@ -92,7 +92,7 @@
+   if music == 1:
+     # Randomly choose the Music among .ogg files
+     musics = []
+-    listFiles = os.listdir("musics")
++    listFiles = os.listdir("/usr/share/games/pyracerz/musics")
+     for fileMusic in listFiles:
+       if fileMusic.endswith(".ogg") or fileMusic.endswith(".OGG"):
+         musics.append(fileMusic)
+@@ -100,7 +100,7 @@
+     if len(musics) > 0:
+       rand = random.randint(0, len(musics)-1)
+       try:
+-        pygame.mixer.music.load(os.path.join("musics", musics[rand]))
++        pygame.mixer.music.load(os.path.join("/usr/share/games/pyracerz/musics", musics[rand]))
+         pygame.mixer.music.play()
+       except Exception, e:
+         print "Music: %s unable to play..." % musics[rand] 
+@@ -159,16 +159,16 @@
+ 
+   confFile=ConfigParser.SafeConfigParser() 
+   try:
+-    confFile.readfp(file(".pyRacerz.conf", "r")) 
++    confFile.readfp(file("/var/games/pyracerz/pyracerz.conf", "r")) 
+   except Exception:
+     fileExist = 0
+   
+   # If the track is not represented, create it
+   if fileExist == 0 or not confFile.has_section("hi " + track.name):
+-    fwrite = file(".pyRacerz.conf", "w+")
++    fwrite = file("/var/games/pyracerz/pyracerz.conf", "w+")
+     confFile.add_section("hi " + track.name)
+     confFile.write(fwrite)
+-    confFile.readfp(file(".pyRacerz.conf", "r")) 
++    confFile.readfp(file("/var/games/pyracerz/pyracerz.conf", "r")) 
+ 
+   # For the Inverse
+   if track.reverse == 0:
+@@ -182,7 +182,7 @@
+     h.update(str("level" + str(level)))
+     h.update(player.name)
+     h.update(str(player.bestChrono))
+-    fwrite = file(".pyRacerz.conf", "w+")
++    fwrite = file("/var/games/pyracerz/pyracerz.conf", "w+")
+     confFile.set("hi " + track.name, "level" + str(level), player.name + " " + str(player.bestChrono) + " " + h.hexdigest())
+     confFile.write(fwrite)
+     return 1
+@@ -198,7 +198,7 @@
+         h.update(str("level" + str(level)))
+         h.update(player.name)
+         h.update(str(player.bestChrono))
+-        fwrite = file(".pyRacerz.conf", "w+")
++        fwrite = file("/var/games/pyracerz/pyracerz.conf", "w+")
+         confFile.set("hi " + track.name, "level" + str(level), player.name + " " + str(player.bestChrono) + " " + h.hexdigest())
+         confFile.write(fwrite)
+         return 1
+@@ -210,7 +210,7 @@
+       h.update(str("level" + str(level)))
+       h.update(player.name)
+       h.update(str(player.bestChrono))
+-      fwrite = file(".pyRacerz.conf", "w+")
++      fwrite = file("/var/games/pyracerz/pyracerz.conf", "w+")
+       confFile.set("hi " + track.name, "level" + str(level), player.name + " " + str(player.bestChrono) + " " + h.hexdigest())
+       confFile.write(fwrite)
+       return 1
+@@ -219,7 +219,7 @@
+ 
+   confFile=ConfigParser.SafeConfigParser() 
+   try:
+-    confFile.readfp(file(".pyRacerz.conf", "r")) 
++    confFile.readfp(file("/var/games/pyracerz/pyracerz.conf", "r")) 
+   except Exception:
+     return 0
+ 
+@@ -246,19 +246,19 @@
+ 
+   confFile=ConfigParser.SafeConfigParser() 
+   try:
+-    confFile.readfp(file(".pyRacerz.conf", "r")) 
++    confFile.readfp(file("/var/games/pyracerz/pyracerz.conf", "r")) 
+   except Exception:
+     fileExist = 0
+ 
+   if fileExist == 0 or not confFile.has_section("unlockLevel"):
+-    fwrite = file(".pyRacerz.conf", "w+")
++    fwrite = file("/var/games/pyracerz/pyracerz.conf", "w+")
+     confFile.add_section("unlockLevel")
+     confFile.write(fwrite)
+-    confFile.readfp(file(".pyRacerz.conf", "r"))
++    confFile.readfp(file("/var/games/pyracerz/pyracerz.conf", "r"))
+ 
+   h = sha.new("pyRacerz")
+   h.update(str(lck))
+-  fwrite = file(".pyRacerz.conf", "w+")
++  fwrite = file("/var/games/pyracerz/pyracerz.conf", "w+")
+   confFile.set("unlockLevel", "key", str(lck) + " " + h.hexdigest())
+   confFile.write(fwrite)
+  

Added: packages/trunk/pyracerz/debian/patches/pyRacerz.diff
===================================================================
--- packages/trunk/pyracerz/debian/patches/pyRacerz.diff	                        (rev 0)
+++ packages/trunk/pyracerz/debian/patches/pyRacerz.diff	2008-05-07 10:52:20 UTC (rev 6893)
@@ -0,0 +1,50 @@
+Index: pyracerz-0.2/pyRacerz.py
+===================================================================
+--- pyracerz-0.2.orig/pyRacerz.py	2006-10-31 16:53:50.000000000 +0000
++++ pyracerz-0.2/pyRacerz.py	2006-10-31 16:59:46.000000000 +0000
+@@ -25,7 +25,7 @@
+ import sys
+ import os
+ 
+-sys.path.append("modules")
++sys.path.append("/usr/share/games/pyracerz/modules")
+ import misc
+ import player
+ import game
+@@ -104,11 +104,15 @@
+     misc.screen = pygame.display.set_mode((int(1024*misc.zoom), int(768*misc.zoom)), displayFlags, 24)
+ 
+   pygame.display.set_caption("pyRacerz v" + misc.VERSION)
+-  pygame.display.set_icon(pygame.image.load(os.path.join("sprites", "pyRacerzIcon.bmp")))
++  pygame.display.set_icon(pygame.image.load(os.path.join("/usr/share/games/pyracerz/sprites", "pyRacerzIcon.bmp")))
+ 
+   if misc.music == 1:
+-    pygame.mixer.music.load(os.path.join("sounds", "start.ogg"))
+-    pygame.mixer.music.play()
++    try:
++       pygame.mixer.music.load(os.path.join("/usr/share/games/pyracerz/sounds", "start.ogg"))
++       pygame.mixer.music.play()
++    except:
++       print "pyRacerz cannot initialize sound... disabling"
++       misc.music = 0
+ 
+   try:
+     import psyco
+@@ -249,7 +253,7 @@
+     elif select1 == 4:
+       replays = []
+ 
+-      listFiles = os.listdir("replays")
++      listFiles = os.listdir("/usr/share/games/pyracerz/replays")
+       for fileReplay in listFiles:
+         if fileReplay.endswith(".rep"):
+           replays.append(fileReplay.replace(".rep", ""))
+@@ -258,7 +262,7 @@
+       select7 = menu7.getInput()
+ 
+       if select7 != -1 and len(replays) != 0:
+-        rep = replay.Replay(os.path.join("replays", replays[select7-1] + ".rep"))
++        rep = replay.Replay(os.path.join("/usr/share/games/pyracerz/replays", replays[select7-1] + ".rep"))
+         rep.play()
+ 
+     elif select1 == 5:

Added: packages/trunk/pyracerz/debian/patches/replay.difff
===================================================================
--- packages/trunk/pyracerz/debian/patches/replay.difff	                        (rev 0)
+++ packages/trunk/pyracerz/debian/patches/replay.difff	2008-05-07 10:52:20 UTC (rev 6893)
@@ -0,0 +1,13 @@
+Index: pyracerz-0.2/modules/replay.py
+===================================================================
+--- pyracerz-0.2.orig/modules/replay.py	2006-11-02 15:35:19.000000000 +0000
++++ pyracerz-0.2/modules/replay.py	2006-11-02 15:35:46.000000000 +0000
+@@ -412,7 +412,7 @@
+           bestChrono = 0
+           break
+ 
+-      playCar = pygame.transform.rotozoom(pygame.image.load(os.path.join("sprites", "cars", "car" + str(play.car.color) + ".png")).convert_alpha(), 270, 1.2*misc.zoom)
++      playCar = pygame.transform.rotozoom(pygame.image.load(os.path.join("/usr/share/games/pyracerz/sprites", "cars", "car" + str(play.car.color) + ".png")).convert_alpha(), 270, 1.2*misc.zoom)
+ 
+       if bestChrono == 1:
+         text = misc.titleFont.render(str(play.rank) + "' " + play.name + " :    >> " + misc.chrono2Str(play.bestChrono) + " <<", 1, misc.lightColor)

Added: packages/trunk/pyracerz/debian/patches/series
===================================================================
--- packages/trunk/pyracerz/debian/patches/series	                        (rev 0)
+++ packages/trunk/pyracerz/debian/patches/series	2008-05-07 10:52:20 UTC (rev 6893)
@@ -0,0 +1,7 @@
+pyRacerz.diff
+car.diff
+game.diff
+menu.diff
+misc.diff
+replay.difff
+track.diff

Added: packages/trunk/pyracerz/debian/patches/track.diff
===================================================================
--- packages/trunk/pyracerz/debian/patches/track.diff	                        (rev 0)
+++ packages/trunk/pyracerz/debian/patches/track.diff	2008-05-07 10:52:20 UTC (rev 6893)
@@ -0,0 +1,44 @@
+Index: pyracerz-0.2/modules/track.py
+===================================================================
+--- pyracerz-0.2.orig/modules/track.py	2006-11-02 15:36:33.000000000 +0000
++++ pyracerz-0.2/modules/track.py	2006-11-02 15:37:36.000000000 +0000
+@@ -29,17 +29,17 @@
+ 
+   # If it's a bonus (locked) track, act differently
+   if name.startswith("bonus"):
+-    return pygame.image.fromstring(zlib.decompress(file(os.path.join("tracks", name + ".png"), "rb").read()), (1024, 768), "RGBA").convert()
++    return pygame.image.fromstring(zlib.decompress(file(os.path.join("/usr/share/games/pyracerz/tracks", name + ".png"), "rb").read()), (1024, 768), "RGBA").convert()
+ 
+-  return pygame.image.load(os.path.join("tracks", name + ".png")).convert()
++  return pygame.image.load(os.path.join("/usr/share/games/pyracerz/tracks", name + ".png")).convert()
+ 
+ def getImageFFromTrackName(name):
+ 
+   # If it's a bonus (locked) track, act differently
+   if name.startswith("bonus"):
+-    return pygame.image.fromstring(zlib.decompress(file(os.path.join("tracks", name + "F.png"), "rb").read()), (1024, 768), "RGBA").convert()
++    return pygame.image.fromstring(zlib.decompress(file(os.path.join("/usr/share/games/pyracerz/tracks", name + "F.png"), "rb").read()), (1024, 768), "RGBA").convert()
+ 
+-  return pygame.image.load(os.path.join("tracks", name + "F.png")).convert()
++  return pygame.image.load(os.path.join("/usr/share/games/pyracerz/tracks", name + "F.png")).convert()
+ 
+ class Track:
+   '''Class representing a track (with the 2 track pictures)'''
+@@ -48,7 +48,7 @@
+     self.track = pygame.transform.scale(getImageFromTrackName(name), (int(1024*misc.zoom), int(768*misc.zoom)))
+     self.trackF = pygame.transform.scale(getImageFFromTrackName(name), (int(1024*misc.zoom), int(768*misc.zoom)))
+     confFile=ConfigParser.SafeConfigParser()
+-    confFile.readfp(file(os.path.join("tracks", name + ".conf"), "r"))
++    confFile.readfp(file(os.path.join("/usr/share/games/pyracerz/tracks", name + ".conf"), "r"))
+ 
+     self.name = name
+     self.author = confFile.get("track", "author")
+@@ -75,7 +75,7 @@
+   # Find tracks with browsing and finding the 3 files
+   listAvailableTrackNames = []
+ 
+-  listFiles = os.listdir("tracks")
++  listFiles = os.listdir("/usr/share/games/pyracerz/tracks")
+   for fileTrack in listFiles:
+     if fileTrack.endswith(".conf"):
+       trackName = fileTrack.replace(".conf", "")

Added: packages/trunk/pyracerz/debian/postinst
===================================================================
--- packages/trunk/pyracerz/debian/postinst	                        (rev 0)
+++ packages/trunk/pyracerz/debian/postinst	2008-05-07 10:52:20 UTC (rev 6893)
@@ -0,0 +1,51 @@
+#! /bin/sh
+# postinst script for teste
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+#        * <postinst> `configure' <most-recently-configured-version>
+#        * <old-postinst> `abort-upgrade' <new version>
+#        * <conflictor's-postinst> `abort-remove' `in-favour' <package>
+#          <new-version>
+#        * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
+#          <failed-install-package> <version> `removing'
+#          <conflicting-package> <version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+#
+
+case "$1" in
+	configure)
+	  # if score file is empty, create one.
+	  if [ ! -f /var/games/pyracerz/pyracerz.conf ]; then
+	    cp /usr/share/doc/pyracerz/examples/pyracerz.conf* \
+	      /var/games/pyracerz/;
+	    if [ -f /var/games/pyracerz/pyracerz.conf.gz ]; then
+	      gunzip /var/games/pyracerz/pyracerz.conf.gz;
+	    fi
+	  fi
+	  chown root:games /var/games/pyracerz/*;
+	  chmod 666 /var/games/pyracerz/*;
+	  dpkg-statoverride --add --force --update root games 2755 \
+		/usr/games/pyracerz;
+	;;
+
+	abort-upgrade|abort-remove|abort-deconfigure)
+	
+	;;
+
+	*)
+	  echo "postinst called with unknown argument \`$1'" >&2
+	  exit 1
+	;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0

Added: packages/trunk/pyracerz/debian/postrm
===================================================================
--- packages/trunk/pyracerz/debian/postrm	                        (rev 0)
+++ packages/trunk/pyracerz/debian/postrm	2008-05-07 10:52:20 UTC (rev 6893)
@@ -0,0 +1,40 @@
+#! /bin/sh
+# postrm script for teste
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+#        * <postrm> `remove'
+#        * <postrm> `purge'
+#        * <old-postrm> `upgrade' <new-version>
+#        * <new-postrm> `failed-upgrade' <old-version>
+#        * <new-postrm> `abort-install'
+#        * <new-postrm> `abort-install' <old-version>
+#        * <new-postrm> `abort-upgrade' <old-version>
+#        * <disappearer's-postrm> `disappear' <r>overwrit>r> <new-version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+
+
+case "$1" in
+	purge)
+	  rm -f /var/games/pyracerz/*;
+	;;
+	
+	remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
+	  dpkg-statoverride --remove /usr/games/pyracerz >/dev/null 2>&1 || true;
+	;;
+
+	*)
+	  echo "postrm called with unknown argument \`$1'" >&2
+	  exit 1
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0

Added: packages/trunk/pyracerz/debian/pyracerz.desktop
===================================================================
--- packages/trunk/pyracerz/debian/pyracerz.desktop	                        (rev 0)
+++ packages/trunk/pyracerz/debian/pyracerz.desktop	2008-05-07 10:52:20 UTC (rev 6893)
@@ -0,0 +1,11 @@
+[Desktop Entry]
+Version=1.0
+Type=Application
+Encoding=UTF-8
+Terminal=0
+Name=pyRacerz
+Icon=/usr/share/pixmaps/pyracerz.xpm
+GenericName=pyRacerz Game
+Exec=pyracerz
+Categories=Application;Game;ArcadeGame
+Comment=2D racing game

Added: packages/trunk/pyracerz/debian/pyracerz.sgml
===================================================================
--- packages/trunk/pyracerz/debian/pyracerz.sgml	                        (rev 0)
+++ packages/trunk/pyracerz/debian/pyracerz.sgml	2008-05-07 10:52:20 UTC (rev 6893)
@@ -0,0 +1,159 @@
+<!doctype refentry PUBLIC "-//OASIS//DTD DocBook V4.1//EN" [
+  <!ENTITY dhfirstname "<firstname>Jose Carlos</firstname>">
+  <!ENTITY dhsurname   "<surname>Medeiros</surname>">
+  <!ENTITY dhdate      "<date>Oct 20, 2005</date>">
+  <!ENTITY dhemail     "<email>debian at psabs.com.br</email>">
+  <!ENTITY dhusername  "Jose Carlos Medeiros">
+  <!ENTITY dhucpackage "<refentrytitle>pyracerz</refentrytitle>">
+  <!ENTITY dhsection   "<manvolnum>6</manvolnum>">
+  <!ENTITY dhpackage   "pyracerz">
+  <!ENTITY debian      "<productname>Debian</productname>">
+  <!ENTITY gnu         "<acronym>GNU</acronym>">
+  <!ENTITY gpl         "&gnu; <acronym>GPL</acronym>">
+]>
+
+<refentry>
+  <refentryinfo>
+    <address>
+      &dhemail;
+    </address>
+    <author>
+      &dhfirstname;
+      &dhsurname;
+    </author>
+    <copyright>
+      <year>2003</year>
+      <holder>&dhusername;</holder>
+    </copyright>
+    &dhdate;
+  </refentryinfo>
+  <refmeta>
+    &dhucpackage;
+    &dhsection;
+  </refmeta>
+  <refnamediv>
+    <refname>&dhpackage;</refname>
+    <refpurpose>2d racing car game</refpurpose>
+  </refnamediv>
+  <refsynopsisdiv>
+    <cmdsynopsis>
+      <command>&dhpackage;</command>
+      <arg><option>--resolution <replaceable>640x480|320x240</replaceable></option></arg>
+      <arg><option>--fullscreen</option></arg>
+      <arg><option>--doublebuf|--nodoublebuf</option></arg>
+      <arg><option>--nosound</option></arg>
+      <arg><option>--help|-h</option></arg>
+      <arg><option>--version</option></arg>
+    </cmdsynopsis>
+  </refsynopsisdiv>
+  <refsect1>
+    <title>DESCRIPTION</title>
+    <para><command>&dhpackage;</command> is a multiplayer top view 2D racing game.</para>
+    <para>It features multiplayer (on the same computer), tournaments, high scores,
+     replays, 6 tracks (really 12, because each track can be used Normal or
+      Reverse), 9 cars, a basic robot player, 3 different levels of difficulty,
+       and a music player (it can play the .ogg files locating in the musics
+        directory).
+	</para>
+  </refsect1>
+  <refsect1>
+    <title>OPTIONS</title>
+    <para>These programs follow the usual &gnu; command line syntax,
+      with long options starting with two dashes (`-').  A summary of
+      options is included below.
+    </para>
+    <variablelist>
+      <varlistentry>
+        <term>
+          <option>--resolution</option>
+        </term>
+        <listitem>
+          <para>Change resolution (default is 1024x768)</para>
+        </listitem>
+      </varlistentry>
+      <varlistentry>
+        <term>
+          <option>--fullscreen</option>
+        </term>
+        <listitem>
+          <para>Enable fullscreen display</para>
+        </listitem>
+      </varlistentry>
+      <varlistentry>
+        <term>
+          <option>--doublebuf</option>
+        </term>
+        <listitem>
+          <para>Enable double buffering display (DEFAULT on other platform than Windows)</para>
+        </listitem>
+      </varlistentry>
+      <varlistentry>
+        <term>
+          <option>--nodoublebuf</option>
+        </term>
+        <listitem>
+          <para>Disable double buffering display (DEFAULT on Windows)</para>
+        </listitem>
+      </varlistentry>
+      <varlistentry>
+        <term>
+          <option>--nosound</option>
+        </term>
+        <listitem>
+          <para>Disable Sound</para>
+        </listitem>
+      </varlistentry>
+      <varlistentry>
+        <term>
+	  <option>-h </option><option>--help</option>
+        </term>
+        <listitem>
+          <para>Show summary of options.</para>
+        </listitem>
+      </varlistentry>
+      <varlistentry>
+        <term>
+          <option>--version</option>
+        </term>
+        <listitem>
+          <para>Output version information and exit.</para>
+        </listitem>
+      </varlistentry>
+    </variablelist>
+  </refsect1>
+  <refsect1>
+    <title>SEE ALSO</title>
+    <para> http://pyracerz.sourceforge.net/</para>
+  </refsect1>
+  <refsect1>
+    <title>AUTHOR</title>
+    <para>This manual page was written by &dhusername; &dhemail; for
+      the &debian; system (but may be used by others).  Permission is
+      granted to copy, distribute and/or modify this document under
+      the terms of the &gnu; General Public License, Version 2 any 
+	  later version published by the Free Software Foundation.
+    </para>
+	<para>
+	  On Debian systems, the complete text of the GNU General Public
+	  License can be found in /usr/share/common-licenses/GPL.
+	</para>
+  </refsect1>
+</refentry>
+
+<!-- Keep this comment at the end of the file
+Local variables:
+mode: sgml
+sgml-omittag:t
+sgml-shorttag:t
+sgml-minimize-attributes:nil
+sgml-always-quote-attributes:t
+sgml-indent-step:2
+sgml-indent-data:t
+sgml-parent-document:nil
+sgml-default-dtd-file:nil
+sgml-exposed-tags:nil
+sgml-local-catalogs:nil
+sgml-local-ecat-files:nil
+End:
+-->
+

Added: packages/trunk/pyracerz/debian/pyracerz.xpm
===================================================================
--- packages/trunk/pyracerz/debian/pyracerz.xpm	                        (rev 0)
+++ packages/trunk/pyracerz/debian/pyracerz.xpm	2008-05-07 10:52:20 UTC (rev 6893)
@@ -0,0 +1,166 @@
+/* XPM */
+static char *pyracerz[] = {
+/* columns rows colors chars-per-pixel */
+"32 32 128 2",
+"   c #050405",
+".  c #070905",
+"X  c #021024",
+"o  c #04111C",
+"O  c #001133",
+"+  c #0C1113",
+"@  c #131412",
+"#  c #181C1F",
+"$  c #072553",
+"%  c #1F241C",
+"&  c #0A284D",
+"*  c #1A2837",
+"=  c #252729",
+"-  c #1D2A42",
+";  c #043170",
+":  c #272B37",
+">  c #1C2E5E",
+",  c #202F4E",
+"<  c #162F70",
+"1  c #2C3032",
+"2  c #09376E",
+"3  c #123961",
+"4  c #203756",
+"5  c #0C3F72",
+"6  c #014281",
+"7  c #273B4F",
+"8  c #273863",
+"9  c #044498",
+"0  c #253C72",
+"q  c #14448C",
+"w  c #3B3F41",
+"e  c #194874",
+"r  c #284468",
+"t  c #414750",
+"y  c #214E89",
+"u  c #0D53A6",
+"i  c #454A4C",
+"p  c #2E4C82",
+"a  c #21509D",
+"s  c #1B5795",
+"d  c #2A5483",
+"f  c #22549D",
+"g  c #BE1E17",
+"h  c #1658B4",
+"j  c #1D599F",
+"k  c #105DAF",
+"l  c #514F52",
+"z  c #285798",
+"x  c #48525E",
+"c  c #5D551B",
+"v  c #3A5679",
+"b  c #505457",
+"n  c #295D9E",
+"m  c #565755",
+"M  c #4F5A5B",
+"N  c #1A63C8",
+"B  c #2162BD",
+"V  c #2762AD",
+"C  c #066FD6",
+"Z  c #445F83",
+"A  c #176AC3",
+"S  c #2267BB",
+"D  c #545F77",
+"F  c #1D6CCD",
+"G  c #3469AB",
+"H  c #436694",
+"J  c #3E6BA1",
+"K  c #2573CD",
+"L  c #796B14",
+"P  c #2A73C7",
+"I  c #3371BE",
+"U  c #3F75AE",
+"Y  c #6D6F6C",
+"T  c #287DE0",
+"R  c #587495",
+"E  c #387AD6",
+"W  c #69788A",
+"Q  c #4280CF",
+"!  c #4081D7",
+"~  c #4682C4",
+"^  c #7D7F7C",
+"/  c #428CE8",
+"(  c #5C89BC",
+")  c #4F8EDE",
+"_  c #A28D16",
+"`  c #968E64",
+"'  c #5896E6",
+"]  c #6595DB",
+"[  c #6797D6",
+"{  c #919390",
+"}  c #6F9CCF",
+"|  c #6F9FDE",
+" . c #BAA710",
+".. c #6FA5EB",
+"X. c #9F9E96",
+"o. c #97A2B0",
+"O. c #78ABE8",
+"+. c #81ACE0",
+"@. c #AEB1AE",
+"#. c #8BB9EF",
+"$. c #A9B4C2",
+"%. c #A8BDD2",
+"&. c #A4C4EE",
+"*. c #A9C5DC",
+"=. c #ACC4E4",
+"-. c #B6C6D9",
+";. c #C8CCBB",
+":. c #C6CFCA",
+">. c #AED3F6",
+",. c #F5D925",
+"<. c #CBD4D5",
+"1. c #D8D2D1",
+"2. c #CFD9E4",
+"3. c #CBDBEE",
+"4. c #F6E456",
+"5. c #C9DDF7",
+"6. c #E0DCD4",
+"7. c #E4E0DB",
+"8. c #DFE5E7",
+"9. c #D8E6F8",
+"0. c #E9EBE8",
+"q. c #E3ECF4",
+"w. c #EFEAE8",
+"e. c #F4F7F3",
+"r. c #F1F8FC",
+"t. c #FEF6E8",
+"y. c #FFFEF4",
+"u. c #FDFFFC",
+/* pixels */
+"                    % c L c %                                   ",
+"                  c  .,.,.,.,.c             %   %               ",
+"                % ,. .{ ;.{  .,._ #     c _ ,.,.,.L             ",
+"                 . .;.8.0.0.8. .4.,.,. .,._ { `  .4.4.          ",
+"              L ,.{ 0.0.0.0.0.` 4.,.,.,._ 8.8.0.q. .4.L         ",
+"               . .0.r.8.0.0.0. at .,.,.,._ 8.0.0.0.8. at .,. .        ",
+"            c ,. .8.0.r.8.0.8. at .,.,.,. at .e.8.r.0.0.8. .,.%       ",
+"          %  .,._ 0.0.0.0.r.0. at .,.,.,. at .8.0.0.0.0.0._ 4.c       ",
+"          L ,.,. .0.0.0.;.% @.` ,.,.,.;.0.0.0.0.0.8._ ,.c       ",
+"        =  .,. .,. at .0.0.;.% Y  .,.,.,.{ % M 0.8.r.;.,.,. .      ",
+"        L  .,.,.,._ 0.0. at .{ _  . . . .` % Y 0.0.0. at .4.,.,.%     ",
+"        _ ,.,. .,.,.L  .,.,.,.4.,.,.,. .` ;.0.0.8. .,.,.4.L     ",
+"        L  .4.,. . .,.,.,.,.,.,.,.4.,.,.,.,.` {  .,.4.,.,._     ",
+"        %  .,. ._ ,.,.,.,.,.,.4.,.,.,.,.4.,.4._ 4.,.,.,.4. .    ",
+"          %  ._ ,.,.,.,.,.,.,.,.,.4.,.,.,.,.4.4._ ,.,.4.4.`     ",
+"          % L L ,.,.,.,.,.,.,.,.,.,.,.,. .,.,.,.4. .4.,.4.c     ",
+"          s P O._ ,.,.,.4.,.4.,.,.,.,.,.,.,.,.4.,._ ,.,.L       ",
+"          1.8.9.c ,.,.,.,.,.,.,.4.,.4.,.,.4.,.,.,._ _ #         ",
+"          <.e.u.t.c ,.,.4.,.,.4.,.,.,.,.,.,.,.,.c c L           ",
+"          E ..#.} %.q._ ,.,.,.,.4.,.4.,.4.,.,.c z z n           ",
+"          7.r.9.} ) P k c c _ ,.,.,.,. ._ c c , > y z           ",
+"        9 ! O.+.&.3.r.6.b i 1 c c c c T E ( 1 1 = r.u.          ",
+"        h ( %.) N N h H m b w * Z y.u.u.2.o.= = = v             ",
+"        ] -.:.+.Q P S q t m i 7 y O.>.w.7.X.= = Y e.            ",
+"          ] <.( V I S h 8 t x H ~ Q K F Q Z : : o.w.            ",
+"          ] <.V f f q 6 ; 8 5 Z 4 r 6 U n z p 0 y J             ",
+"                 ._ _ ; < f F F k q & r 8 I V z n z             ",
+"              c ,.,.,.,.,.,._ F F A > f V I V n [               ",
+"              L L  .,.,.,.,.,.4.,._ _ j V I n |                 ",
+"              c _ _ ,.,.,.,.,.,.,.,.L  .,._ %                   ",
+"              c _ _ L _ ,.,.,.,.,. . . . .c %                   ",
+"            % c _ _ _ _ c c L c L _  .4. .%                     "
+};

Added: packages/trunk/pyracerz/debian/rules
===================================================================
--- packages/trunk/pyracerz/debian/rules	                        (rev 0)
+++ packages/trunk/pyracerz/debian/rules	2008-05-07 10:52:20 UTC (rev 6893)
@@ -0,0 +1,66 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+configure: configure-stamp
+configure-stamp:
+	dh_testdir
+	touch configure-stamp
+
+build: build-stamp
+
+build-stamp: configure-stamp 
+	dh_testdir
+	$(MAKE) -f /usr/share/quilt/quilt.make patch
+	docbook-to-man debian/pyracerz.sgml > debian/pyracerz.6
+	cp .pyRacerz.conf debian/pyracerz.conf;
+	touch build-stamp
+
+clean:
+	dh_testdir
+	dh_testroot
+	rm -f build-stamp configure-stamp
+	rm -f debian/pyracerz.6 debian/pyracerz.conf;
+	$(MAKE) -f /usr/share/quilt/quilt.make unpatch
+	dh_clean 
+
+install: build
+	dh_testdir
+	dh_testroot
+	dh_clean -k 
+	dh_installdirs
+
+	cp debian/pyracerz.desktop \
+		$(CURDIR)/debian/pyracerz/usr/share/applications;
+	cp debian/pyracerz.xpm \
+		$(CURDIR)/debian/pyracerz/usr/share/pixmaps;
+	cp pyRacerz.py \
+		$(CURDIR)/debian/pyracerz/usr/games/pyracerz;
+	cp -a credits fonts modules musics replays sounds sprites tracks \
+		$(CURDIR)/debian/pyracerz/usr/share/games/pyracerz/;
+
+binary-indep: build install
+
+binary-arch: build install
+	dh_testdir
+	dh_testroot
+	dh_installchangelogs CHANGELOG
+	dh_installdocs
+	dh_installexamples
+	dh_installmenu
+	dh_installdebconf	
+	dh_installman debian/pyracerz.6
+	dh_link
+	dh_desktop
+	dh_compress
+	dh_fixperms
+	dh_pysupport
+	dh_installdeb
+	dh_gencontrol
+	dh_md5sums
+	dh_builddeb
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install configure


Property changes on: packages/trunk/pyracerz/debian/rules
___________________________________________________________________
Name: svn:executable
   + *

Added: packages/trunk/pyracerz/debian/watch
===================================================================
--- packages/trunk/pyracerz/debian/watch	                        (rev 0)
+++ packages/trunk/pyracerz/debian/watch	2008-05-07 10:52:20 UTC (rev 6893)
@@ -0,0 +1,2 @@
+version=3
+http://sf.net/pyracerz/pyRacerz-(\d.\d).*\.tar\.gz

Modified: packages/trunk/pyracerz/modules/game.py
===================================================================
--- packages/trunk/pyracerz/modules/game.py	2008-05-07 10:51:01 UTC (rev 6892)
+++ packages/trunk/pyracerz/modules/game.py	2008-05-07 10:52:20 UTC (rev 6893)
@@ -524,7 +524,10 @@
         waitMenu = menu.SimpleTitleOnlyMenu(misc.titleFont, "recording Replay...")
 
         if select2 != None and select2 != "":
-          f = file(os.path.join("replays", select2 + ".rep"), "wb")
+	  rep_dir = os.path.join(os.getenv("HOME")+"/.pyracerz/replays")
+	  if not os.path.exists(rep_dir):
+	    os.makedirs(rep_dir)
+          f = file(os.path.join(rep_dir, select2 + ".rep"), "wb")
 
           # TrackName Inv NbEnreg NbCar PlayerName1 PlayerCarColor1 PlayerCarLevel1...
           f.write(str(misc.VERSION) + " " + currentTrack.name + " " + str(currentTrack.reverse) + " " + str(masterChrono) + " " + str(len(self.listPlayer)) + " ")

Modified: packages/trunk/pyracerz/modules/misc.py
===================================================================
--- packages/trunk/pyracerz/modules/misc.py	2008-05-07 10:51:01 UTC (rev 6892)
+++ packages/trunk/pyracerz/modules/misc.py	2008-05-07 10:52:20 UTC (rev 6893)
@@ -107,7 +107,9 @@
         print e
 
 def stopMusic():
-  pygame.mixer.music.fadeout(1000)
+  global music
+  if music == 1:
+    pygame.mixer.music.fadeout(1000)
 
 class PopUp:
   def __init__(self, track):




More information about the Pkg-games-commits mailing list