wok-next rev 11034

Up; singularity to 0.30c.
author Christopher Rogers <slaxemulator@gmail.com>
date Sun Oct 16 07:22:13 2011 +0000 (2011-10-16)
parents 208265e35b96
children 89114f946725
files singularity/receipt singularity/stuff/percents-0.30b.patch
line diff
     1.1 --- a/singularity/receipt	Sun Oct 16 07:18:25 2011 +0000
     1.2 +++ b/singularity/receipt	Sun Oct 16 07:22:13 2011 +0000
     1.3 @@ -1,20 +1,20 @@
     1.4  # SliTaz package receipt.
     1.5  
     1.6  PACKAGE="singularity"
     1.7 -VERSION="0.30b"
     1.8 +VERSION="0.30c"
     1.9  CATEGORY="games"
    1.10  SHORT_DESC="Strategy game - simulation of true Al"
    1.11  MAINTAINER="slaxemulator@gmail.com"
    1.12 -DEPENDS="python python-pygame libsdl-image libsdl-mixer python-numpy"
    1.13 -BUILD_DEPENDS="patch"
    1.14  TARBALL="$PACKAGE-$VERSION-src.tar.gz"
    1.15  WEB_SITE="http://emhsoft.com/singularity/index.html"
    1.16  WGET_URL="http://endgame-singularity.googlecode.com/files/$TARBALL"
    1.17  
    1.18 +DEPENDS="python python-pygame libsdl-image libsdl-mixer python-numpy"
    1.19 +BUILD_DEPENDS="patch"
    1.20 +
    1.21  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.22  genpkg_rules()
    1.23  {
    1.24 -	patch -p0 < stuff/percents-$VERSION.patch
    1.25  	mkdir -p $fs/usr/bin $fs/usr/games/singularity
    1.26  	cp -a $src/singularity.py $fs/usr/games/singularity
    1.27  	cat >> $fs/usr/bin/singularity <<EOT
     2.1 --- a/singularity/stuff/percents-0.30b.patch	Sun Oct 16 07:18:25 2011 +0000
     2.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.3 @@ -1,14 +0,0 @@
     2.4 ---- singularity-0.30b/code/g.py
     2.5 -+++ singularity-0.30b/code/g.py
     2.6 -@@ -265,9 +265,9 @@
     2.7 - def to_percent(raw_percent, show_full = False):
     2.8 -     locale_name, encoding = locale.getlocale()
     2.9 -     if raw_percent % 100 != 0 or show_full:
    2.10 --        return locale.format("%.2f%%", raw_percent / 100.).decode(encoding)
    2.11 -+        return locale.format("%.2f", raw_percent / 100.).decode(encoding)
    2.12 -     else:
    2.13 --        return locale.format("%d%%", raw_percent // 100).decode(encoding)
    2.14 -+        return locale.format("%d", raw_percent // 100).decode(encoding)
    2.15 - 
    2.16 - # nearest_percent takes values in the internal representation and modifies
    2.17 - # them so that they only represent the nearest percentage.