summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--games-kids/tuxmathscrabble/ChangeLog8
-rw-r--r--games-kids/tuxmathscrabble/files/tuxmathscrabble-7.4-gentoo.patch92
-rw-r--r--games-kids/tuxmathscrabble/tuxmathscrabble-7.4.ebuild59
3 files changed, 158 insertions, 1 deletions
diff --git a/games-kids/tuxmathscrabble/ChangeLog b/games-kids/tuxmathscrabble/ChangeLog
index 6ef8345f054d..83b0e5661985 100644
--- a/games-kids/tuxmathscrabble/ChangeLog
+++ b/games-kids/tuxmathscrabble/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for games-kids/tuxmathscrabble
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/games-kids/tuxmathscrabble/ChangeLog,v 1.15 2010/04/22 12:09:35 tupone Exp $
+# $Header: /var/cvsroot/gentoo-x86/games-kids/tuxmathscrabble/ChangeLog,v 1.16 2010/12/08 08:55:55 tupone Exp $
+
+*tuxmathscrabble-7.4 (08 Dec 2010)
+
+ 08 Dec 2010; Tupone Alfredo <tupone@gentoo.org> +tuxmathscrabble-7.4.ebuild,
+ +files/tuxmathscrabble-7.4-gentoo.patch:
+ Version bump to 0.7.4 Bug #202844 by charlie cosse
22 Apr 2010; Tupone Alfredo <tupone@gentoo.org>
tuxmathscrabble-4.5.ebuild:
diff --git a/games-kids/tuxmathscrabble/files/tuxmathscrabble-7.4-gentoo.patch b/games-kids/tuxmathscrabble/files/tuxmathscrabble-7.4-gentoo.patch
new file mode 100644
index 000000000000..6194978017b1
--- /dev/null
+++ b/games-kids/tuxmathscrabble/files/tuxmathscrabble-7.4-gentoo.patch
@@ -0,0 +1,92 @@
+--- TuxMathScrabble/tms.py.old 2010-12-07 14:08:33.000000000 +0100
++++ TuxMathScrabble/tms.py 2010-12-07 14:09:09.000000000 +0100
+@@ -1232,7 +1232,7 @@
+ infname=os.path.join(homedir,'.tms_config')
+
+ if not os.path.exists(infname):
+- master_fname=os.path.join('.','.tms_config_master')
++ master_fname=os.path.join('@GENTOO_DATADIR@','.tms_config_master')
+ if self.env.OS=='win':
+ cmd="copy %s \"%s\""%(master_fname,os.path.join(homedir,'.tms_config'))
+ os.system(cmd)
+--- .tms_config_master 2010-01-15 14:36:13.000000000 +0100
++++ .tms_config_master.new 2010-12-07 21:12:53.000000000 +0100
+@@ -380,66 +380,66 @@
+ 'wtype':'wx.SpinCtrl',
+ },
+ 'FONT_APPNAME':{
+- 'default_path':os.path.join('.','Font'),
++ 'default_path':os.path.join('@GENTOO_DATADIR@','Font'),
+ 'default_value':'mickey.ttf',
+ 'descr':'',
+ 'dtype':'wx.String',
+- 'path':os.path.join('.','Font'),
++ 'path':os.path.join('@GENTOO_DATADIR@','Font'),
+ 'showme':-1,
+ 'tooltip':'Font to be used for application name overlay.',
+ 'value':'mickey.ttf',
+ 'wtype':'wx.FileDialog',
+ },
+ 'FONT_BFONT':{
+- 'default_path':os.path.join('.','Font'),
++ 'default_path':os.path.join('@GENTOO_DATADIR@','Font'),
+ 'default_value':'Bluehigh.ttf',
+ 'descr':'',
+ 'dtype':'wx.String',
+- 'path':os.path.join('.','Font'),
++ 'path':os.path.join('@GENTOO_DATADIR@','Font'),
+ 'showme':0,
+ 'tooltip':'Button Font',
+ 'value':'Bluehigh.ttf',
+ 'wtype':'wx.FileDialog',
+ },
+ 'FONT_CFONT':{
+- 'default_path':os.path.join('.','Font'),
++ 'default_path':os.path.join('@GENTOO_DATADIR@','Font'),
+ 'default_value':'arialbd.ttf',
+ 'descr':'',
+ 'dtype':'wx.String',
+- 'path':os.path.join('.','Font'),
++ 'path':os.path.join('@GENTOO_DATADIR@','Font'),
+ 'showme':0,
+ 'tooltip':'Character font used for tile characters',
+ 'value':'arialbd.ttf',
+ 'wtype':'wx.FileDialog',
+ },
+ 'FONT_HUD':{
+- 'default_path':os.path.join('.','Font'),
++ 'default_path':os.path.join('@GENTOO_DATADIR@','Font'),
+ 'default_value':'aqua_pfont.ttf',
+ 'descr':'',
+ 'dtype':'wx.String',
+- 'path':os.path.join('.','Font'),
++ 'path':os.path.join('@GENTOO_DATADIR@','Font'),
+ 'showme':0,
+ 'tooltip':'The default font to be used for other overlay information (credits, etc).',
+ 'value':'aqua_pfont.ttf',
+ 'wtype':'wx.FileDialog',
+ },
+ 'FONT_OVERLAY':{
+- 'default_path':os.path.join('.','Font'),
++ 'default_path':os.path.join('@GENTOO_DATADIR@','Font'),
+ 'default_value':'arial.ttf',
+ 'descr':'',
+ 'dtype':'wx.String',
+- 'path':os.path.join('.','Font'),
++ 'path':os.path.join('@GENTOO_DATADIR@','Font'),
+ 'showme':0,
+ 'tooltip':'The default font to be used for other overlay information (credits, etc).',
+ 'value':'arial.ttf',
+ 'wtype':'wx.FileDialog',
+ },
+ 'FONT_PFONT':{
+- 'default_path':os.path.join('.','Font'),
++ 'default_path':os.path.join('@GENTOO_DATADIR@','Font'),
+ 'default_value':'Bluehigh.ttf',
+ 'descr':'',
+ 'dtype':'wx.String',
+- 'path':os.path.join('.','Font'),
++ 'path':os.path.join('@GENTOO_DATADIR@','Font'),
+ 'showme':0,
+ 'tooltip':'Point value font (ie lower right corner of tiles)',
+ 'value':'Bluehigh.ttf',
diff --git a/games-kids/tuxmathscrabble/tuxmathscrabble-7.4.ebuild b/games-kids/tuxmathscrabble/tuxmathscrabble-7.4.ebuild
new file mode 100644
index 000000000000..c67b65761c16
--- /dev/null
+++ b/games-kids/tuxmathscrabble/tuxmathscrabble-7.4.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/games-kids/tuxmathscrabble/tuxmathscrabble-7.4.ebuild,v 1.1 2010/12/08 08:55:55 tupone Exp $
+
+EAPI=2
+PYTHON_DEPEND="2"
+inherit eutils python multilib games
+
+MY_PN=TuxMathScrabble
+MY_P=${PN}-0.${PV}
+DESCRIPTION="math-version of the popular board game for children 4-10"
+HOMEPAGE="http://www.asymptopia.org/"
+SRC_URI="mirror://gentoo/${MY_P}.zip"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE=""
+
+CDEPEND="dev-python/wxpython"
+DEPEND="${CDEPEND}
+ app-arch/unzip"
+RDEPEND="${CDEPEND}
+ dev-python/pygame"
+
+S=${WORKDIR}/${MY_P}
+
+pkg_setup() {
+ python_set_active_version 2
+ games_pkg_setup
+}
+
+src_prepare() {
+ rm -f $(find . -name '*.pyc')
+ epatch "${FILESDIR}"/${P}-gentoo.patch
+ sed -i \
+ -e "s:@GENTOO_DATADIR@:${GAMES_DATADIR}/${MY_PN}:" \
+ ${MY_PN}/tms.py \
+ .tms_config_master \
+ || die "sed failed"
+ python_convert_shebangs -r 2 .
+}
+
+src_install() {
+ newgamesbin ${PN}.py ${PN} || die "newgamesbin failed"
+
+ insinto $(python_get_sitedir)
+ doins -r ${MY_PN} || die "doins failed"
+
+ insinto "${GAMES_DATADIR}"/${MY_PN}
+ doins -r .tms_config_master Font || die "doins failed"
+
+ newicon tms.ico ${PN}.ico
+ make_desktop_entry ${PN} ${PN} /usr/share/pixmaps/${PN}.ico
+
+ dodoc CHANGES README
+ prepgamesdirs
+ fperms -R g+w "${GAMES_STATEDIR}"/${MY_PN}
+}