diff options
Diffstat (limited to 'games-kids/tuxmathscrabble/tuxmathscrabble-4.5.ebuild')
-rw-r--r-- | games-kids/tuxmathscrabble/tuxmathscrabble-4.5.ebuild | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/games-kids/tuxmathscrabble/tuxmathscrabble-4.5.ebuild b/games-kids/tuxmathscrabble/tuxmathscrabble-4.5.ebuild new file mode 100644 index 000000000000..d6fc048794c0 --- /dev/null +++ b/games-kids/tuxmathscrabble/tuxmathscrabble-4.5.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/games-kids/tuxmathscrabble/tuxmathscrabble-4.5.ebuild,v 1.1 2007/10/24 01:28:06 nyhm Exp $ + +inherit eutils python multilib games + +MY_PN=TuxMathScrabble +MY_P=${MY_PN}-0.${PV} +DESCRIPTION="math-version of the popular board game for children 4-10" +HOMEPAGE="http://www.asymptopia.org/" +SRC_URI="http://www.asymptopia.org/software/${MY_P}.tgz + mirror://sourceforge/${PN}/${MY_P}.tgz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="" + +DEPEND="dev-python/pygame + =dev-python/wxpython-2.6*" + +S=${WORKDIR}/${MY_P} + +src_unpack() { + unpack ${A} + cd "${S}" + rm -f $(find . -name '*.pyc') + mv -f ${MY_PN}/{Accounts,Globals,Simulation,StudentData} . + sed -i "s:'/','var','games':'${GAMES_STATEDIR}':" \ + asymptopia_0_1_3/environment.py \ + || die "sed failed" +} + +src_install() { + newgamesbin ${MY_PN}.py ${PN} || die "newgamesbin failed" + + python_version + insinto /usr/$(get_libdir)/python${PYVER}/site-packages + doins -r ${MY_PN} || die "doins failed" + doins -r asymptopia_0_1_3 || die "doins asymptopia_0_1_2 failed" + + insinto "${GAMES_STATEDIR}"/${MY_PN} + doins -r Accounts Globals Simulation StudentData || die "doins failed" + + newicon tms.ico ${PN}.ico + make_desktop_entry ${PN} ${MY_PN} /usr/share/pixmaps/${PN}.ico + + dodoc CHANGES README + prepgamesdirs + fperms -R g+w "${GAMES_STATEDIR}"/${MY_PN} +} |