diff options
author | Alfredo Tupone <tupone@gentoo.org> | 2015-02-03 17:05:59 +0000 |
---|---|---|
committer | Alfredo Tupone <tupone@gentoo.org> | 2015-02-03 17:05:59 +0000 |
commit | 646d94169bc30cf325165f6b08e95dc57427f079 (patch) | |
tree | dc5df53252f0999e8e0c63b89473a569c96cfce9 /games-kids/tuxmathscrabble | |
parent | Change version numbering following upstream (diff) | |
download | gentoo-2-646d94169bc30cf325165f6b08e95dc57427f079.tar.gz gentoo-2-646d94169bc30cf325165f6b08e95dc57427f079.tar.bz2 gentoo-2-646d94169bc30cf325165f6b08e95dc57427f079.zip |
Version bump to 0.8.1. Bug #532012
(Portage version: 2.2.14/cvs/Linux x86_64, signed Manifest commit with key 0145142D)
Diffstat (limited to 'games-kids/tuxmathscrabble')
-rw-r--r-- | games-kids/tuxmathscrabble/ChangeLog | 8 | ||||
-rw-r--r-- | games-kids/tuxmathscrabble/files/tuxmathscrabble-0.8.1-gentoo.patch | 92 | ||||
-rw-r--r-- | games-kids/tuxmathscrabble/tuxmathscrabble-0.8.1.ebuild | 62 |
3 files changed, 161 insertions, 1 deletions
diff --git a/games-kids/tuxmathscrabble/ChangeLog b/games-kids/tuxmathscrabble/ChangeLog index 18f26c7dfc16..4c068f34e727 100644 --- a/games-kids/tuxmathscrabble/ChangeLog +++ b/games-kids/tuxmathscrabble/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for games-kids/tuxmathscrabble # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/games-kids/tuxmathscrabble/ChangeLog,v 1.22 2015/02/03 16:57:03 tupone Exp $ +# $Header: /var/cvsroot/gentoo-x86/games-kids/tuxmathscrabble/ChangeLog,v 1.23 2015/02/03 17:05:59 tupone Exp $ + +*tuxmathscrabble-0.8.1 (03 Feb 2015) + + 03 Feb 2015; Tupone Alfredo <tupone@gentoo.org> + +tuxmathscrabble-0.8.1.ebuild, +files/tuxmathscrabble-0.8.1-gentoo.patch: + Version bump to 0.8.1. Bug #532012 by Charles Cosse *tuxmathscrabble-0.7.4 (03 Feb 2015) diff --git a/games-kids/tuxmathscrabble/files/tuxmathscrabble-0.8.1-gentoo.patch b/games-kids/tuxmathscrabble/files/tuxmathscrabble-0.8.1-gentoo.patch new file mode 100644 index 000000000000..691c29a3bb0e --- /dev/null +++ b/games-kids/tuxmathscrabble/files/tuxmathscrabble-0.8.1-gentoo.patch @@ -0,0 +1,92 @@ +--- TuxMathScrabble/tms.py.old 2015-02-02 22:19:30.894373011 +0100 ++++ TuxMathScrabble/tms.py 2015-02-02 22:20:19.530320947 +0100 +@@ -1258,7 +1258,7 @@ + if not os.path.exists(infname): + + master_fname=os.path.join(self.env.fontdir,'.tms_config_master') +- candidate=os.path.join('/','usr','share','games','tuxmathscrabble','.tms_config_master') ++ candidate=os.path.join('@GENTOO_DATADIR@','.tms_config_master') + if os.path.exists(candidate): + master_fname=candidate + +--- .tms_config_master.old 2015-02-02 22:21:59.655216399 +0100 ++++ .tms_config_master 2015-02-02 22:25:33.754003432 +0100 +@@ -380,66 +380,66 @@ + 'wtype':'wx.SpinCtrl', + }, + 'FONT_APPNAME':{ +- 'default_path':'./Font', ++ 'default_path':'@GENTOO_DATADIR@/Font', + 'default_value':'mickey.ttf', + 'descr':'', + 'dtype':'wx.String', +- 'path':'./Font', ++ 'path':'@GENTOO_DATADIR@/Font', + 'showme':-1, + 'tooltip':'Font to be used for application name overlay.', + 'value':'mickey.ttf', + 'wtype':'wx.FileDialog', + }, + 'FONT_BFONT':{ +- 'default_path':'./Font', ++ 'default_path':'@GENTOO_DATADIR@/Font', + 'default_value':'Bluehigh.ttf', + 'descr':'', + 'dtype':'wx.String', +- 'path':'./Font', ++ 'path':'@GENTOO_DATADIR@/Font', + 'showme':0, + 'tooltip':'Button Font', + 'value':'Bluehigh.ttf', + 'wtype':'wx.FileDialog', + }, + 'FONT_CFONT':{ +- 'default_path':'./Font', ++ 'default_path':'@GENTOO_DATADIR@/Font', + 'default_value':'arialbd.ttf', + 'descr':'', + 'dtype':'wx.String', +- 'path':'./Font', ++ 'path':'@GENTOO_DATADIR@/Font', + 'showme':0, + 'tooltip':'Character font used for tile characters', + 'value':'arialbd.ttf', + 'wtype':'wx.FileDialog', + }, + 'FONT_HUD':{ +- 'default_path':'./Font', ++ 'default_path':'@GENTOO_DATADIR@/Font', + 'default_value':'aqua_pfont.ttf', + 'descr':'', + 'dtype':'wx.String', +- 'path':'./Font', ++ 'path':'@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':'./Font', ++ 'default_path':'@GENTOO_DATADIR@/Font', + 'default_value':'arial.ttf', + 'descr':'', + 'dtype':'wx.String', +- 'path':'./Font', ++ 'path':'@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':'./Font', ++ 'default_path':'@GENTOO_DATADIR@/Font', + 'default_value':'Bluehigh.ttf', + 'descr':'', + 'dtype':'wx.String', +- 'path':'./Font', ++ 'path':'@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-0.8.1.ebuild b/games-kids/tuxmathscrabble/tuxmathscrabble-0.8.1.ebuild new file mode 100644 index 000000000000..2cfbf4898ccc --- /dev/null +++ b/games-kids/tuxmathscrabble/tuxmathscrabble-0.8.1.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/games-kids/tuxmathscrabble/tuxmathscrabble-0.8.1.ebuild,v 1.1 2015/02/03 17:05:59 tupone Exp $ + +EAPI=5 +PYTHON_COMPAT=( python2_7 ) +inherit eutils python-single-r1 multilib games + +MY_PN=TuxMathScrabble +DESCRIPTION="math-version of the popular board game for children 4-10" +HOMEPAGE="http://www.asymptopia.org/" +SRC_URI="https://github.com/asymptopia/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="" + +CDEPEND="${PYTHON_DEPS} + dev-python/wxpython[${PYTHON_USEDEP}]" +DEPEND="${CDEPEND} + app-arch/unzip" +RDEPEND="${CDEPEND} + dev-python/pygame[${PYTHON_USEDEP}]" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +pkg_setup() { + python-single-r1_pkg_setup + 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" + sed -i \ + -e "s:python2.7-32:python:g" \ + ${PN}.py || die "2nd sed failed" + python_fix_shebang . +} + +src_install() { + newgamesbin ${PN}.py ${PN} + + insinto $(python_get_sitedir) + doins -r ${MY_PN} + + insinto "${GAMES_DATADIR}"/${MY_PN} + doins -r .tms_config_master Font + + python_optimize + + newicon tms.ico ${PN}.ico + make_desktop_entry ${PN} ${PN} /usr/share/pixmaps/${PN}.ico + + dodoc CHANGES README + prepgamesdirs +} |