/[gentoo-x86]/games-kids/tuxmathscrabble/tuxmathscrabble-7.4.ebuild
Gentoo

Contents of /games-kids/tuxmathscrabble/tuxmathscrabble-7.4.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Fri Mar 4 12:58:07 2011 UTC (3 years, 6 months ago) by ranger
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +2 -2 lines
stable ppc, bug 353821

(Portage version: 2.1.9.25/cvs/Linux ppc64)

1 # Copyright 1999-2011 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/games-kids/tuxmathscrabble/tuxmathscrabble-7.4.ebuild,v 1.3 2011/02/08 20:54:37 tomka Exp $
4
5 EAPI=2
6 PYTHON_DEPEND="2"
7 inherit eutils python multilib games
8
9 MY_PN=TuxMathScrabble
10 MY_P=${PN}-0.${PV}
11 DESCRIPTION="math-version of the popular board game for children 4-10"
12 HOMEPAGE="http://www.asymptopia.org/"
13 SRC_URI="mirror://gentoo/${MY_P}.zip"
14
15 LICENSE="GPL-2"
16 SLOT="0"
17 KEYWORDS="~amd64 ppc x86"
18 IUSE=""
19
20 CDEPEND="dev-python/wxpython"
21 DEPEND="${CDEPEND}
22 app-arch/unzip"
23 RDEPEND="${CDEPEND}
24 dev-python/pygame"
25
26 S=${WORKDIR}/${MY_P}
27
28 pkg_setup() {
29 python_set_active_version 2
30 games_pkg_setup
31 }
32
33 src_prepare() {
34 rm -f $(find . -name '*.pyc')
35 epatch "${FILESDIR}"/${P}-gentoo.patch
36 sed -i \
37 -e "s:@GENTOO_DATADIR@:${GAMES_DATADIR}/${MY_PN}:" \
38 ${MY_PN}/tms.py \
39 .tms_config_master \
40 || die "sed failed"
41 python_convert_shebangs -r 2 .
42 }
43
44 src_install() {
45 newgamesbin ${PN}.py ${PN} || die "newgamesbin failed"
46
47 insinto $(python_get_sitedir)
48 doins -r ${MY_PN} || die "doins failed"
49
50 insinto "${GAMES_DATADIR}"/${MY_PN}
51 doins -r .tms_config_master Font || die "doins failed"
52
53 newicon tms.ico ${PN}.ico
54 make_desktop_entry ${PN} ${PN} /usr/share/pixmaps/${PN}.ico
55
56 dodoc CHANGES README
57 prepgamesdirs
58 }

  ViewVC Help
Powered by ViewVC 1.1.20