blob: a21c9d9513bc797d4e2afa156fbc2b01b25c5421 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-kids/tuxmathscrabble/tuxmathscrabble-3.0.4.ebuild,v 1.1 2006/11/01 12:02:48 tupone Exp $
inherit eutils python games
MY_PN="TuxMathScrabble"
MY_P=${MY_PN}-${PV}
DESCRIPTION="math-version of the popular board game for children 4-10"
HOMEPAGE="http://www.asymptopia.org/"
SRC_URI="mirror://sourceforge/tuxmathscrabble/${MY_P}LIN.tgz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
IUSE=""
DEPEND=">=dev-lang/python-2.4.1
>=dev-python/pygame-1.7
>=dev-python/wxpython-2.6.1"
S=${WORKDIR}/${MY_P}LIN
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}"/${P}-wxVersion.patch
}
src_install() {
python_version
insinto "${GAMES_STATEDIR}"/${PN}
doins -r ${PN}/accounts
insinto /usr/lib/python${PYVER}/site-packages
doins -r ${PN}
rm -rf ${D}/usr/lib/python${PYVER}/site-packages/${PN}/accounts
dodoc AUTHOR CHANGES
newgamesbin ${MY_PN}.py ${PN}
prepgamesdirs
fperms -R u+rwX,g+rwX,o-rwx "${GAMES_STATEDIR}/${PN}"
}
|