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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Wed Mar 25 13:47:16 2015 UTC (4 years, 11 months ago) by ago
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +2 -2 lines
Stable for x86, wrt bug #542512

(Portage version: 2.2.14/cvs/Linux x86_64, RepoMan options: --include-arches="x86", signed Manifest commit with key 7194459F)

1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/games-kids/tuxmathscrabble/tuxmathscrabble-0.8.1.ebuild,v 1.2 2015/03/09 11:45:21 ago Exp $
4
5 EAPI=5
6 PYTHON_COMPAT=( python2_7 )
7 inherit eutils python-single-r1 multilib games
8
9 MY_PN=TuxMathScrabble
10 DESCRIPTION="math-version of the popular board game for children 4-10"
11 HOMEPAGE="http://www.asymptopia.org/"
12 SRC_URI="https://github.com/asymptopia/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
13
14 LICENSE="GPL-2"
15 SLOT="0"
16 KEYWORDS="amd64 ~ppc x86"
17 IUSE=""
18
19 CDEPEND="${PYTHON_DEPS}
20 dev-python/wxpython[${PYTHON_USEDEP}]"
21 DEPEND="${CDEPEND}
22 app-arch/unzip"
23 RDEPEND="${CDEPEND}
24 dev-python/pygame[${PYTHON_USEDEP}]"
25 REQUIRED_USE="${PYTHON_REQUIRED_USE}"
26
27 pkg_setup() {
28 python-single-r1_pkg_setup
29 games_pkg_setup
30 }
31
32 src_prepare() {
33 rm -f $(find . -name '*.pyc')
34 epatch "${FILESDIR}"/${P}-gentoo.patch
35 sed -i \
36 -e "s:@GENTOO_DATADIR@:${GAMES_DATADIR}/${MY_PN}:" \
37 ${MY_PN}/tms.py \
38 .tms_config_master \
39 || die "sed failed"
40 sed -i \
41 -e "s:python2.7-32:python:g" \
42 ${PN}.py || die "2nd sed failed"
43 python_fix_shebang .
44 }
45
46 src_install() {
47 newgamesbin ${PN}.py ${PN}
48
49 insinto $(python_get_sitedir)
50 doins -r ${MY_PN}
51
52 insinto "${GAMES_DATADIR}"/${MY_PN}
53 doins -r .tms_config_master Font
54
55 python_optimize
56
57 newicon tms.ico ${PN}.ico
58 make_desktop_entry ${PN} ${PN} /usr/share/pixmaps/${PN}.ico
59
60 dodoc CHANGES README
61 prepgamesdirs
62 }

  ViewVC Help
Powered by ViewVC 1.1.20