/[gentoo-x86]/games-kids/pytraffic/pytraffic-2.5.4.ebuild
Gentoo

Contents of /games-kids/pytraffic/pytraffic-2.5.4.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.8 - (show annotations) (download)
Tue Apr 12 17:15:51 2011 UTC (3 years, 3 months ago) by arfrever
Branch: MAIN
Changes since 1.7: +6 -2 lines
Use python_mod_optimize() and python_mod_cleanup() directly.

(Portage version: 2.2.0_alpha29_p17/cvs/Linux x86_64)

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/pytraffic/pytraffic-2.5.4.ebuild,v 1.7 2011/04/06 20:04:12 arfrever Exp $
4
5 EAPI=3
6 PYTHON_DEPEND="2"
7 inherit distutils eutils games
8
9 DESCRIPTION="Python version of the board game Rush Hour"
10 HOMEPAGE="http://alpha.uhasselt.be/Research/Algebra/Members/pytraffic/"
11 SRC_URI="http://alpha.uhasselt.be/Research/Algebra/Members/${PN}/${P}.tar.gz"
12
13 LICENSE="GPL-2"
14 SLOT="0"
15 KEYWORDS="amd64 ~ppc x86"
16 IUSE=""
17
18 DEPEND="media-libs/libsdl[audio]
19 media-libs/sdl-mixer"
20 RDEPEND="${DEPEND}
21 dev-python/pygtk"
22
23 src_compile() {
24 distutils_src_compile
25 }
26
27 src_install() {
28 insinto "${GAMES_DATADIR}"/${PN}
29 doins -r doc config.db extra_themes icons libglade music sound_test \
30 themes *.py ttraffic.levels || die "doins failed"
31
32 exeinto "$(games_get_libdir)"/${PN}
33 doexe build/*/{_hint,_sdl_mixer}.so || die "doexe failed"
34 dosym {"$(games_get_libdir)","${GAMES_DATADIR}"}/${PN}/_hint.so \
35 || die "dosym _hint.so failed"
36 dosym {"$(games_get_libdir)","${GAMES_DATADIR}"}/${PN}/_sdl_mixer.so \
37 || die "dosym _sdl_mixer.so failed"
38
39 games_make_wrapper ${PN} "$(PYTHON) ./Main.py" "${GAMES_DATADIR}"/${PN}
40 doicon icons/64x64/${PN}.png
41 make_desktop_entry ${PN} PyTraffic
42
43 dodoc AUTHORS CHANGELOG README
44
45 rm -f "${D}/${GAMES_DATADIR}"/${PN}/setup.py
46 prepgamesdirs
47 }
48
49 pkg_setup() {
50 python_set_active_version 2
51 python_pkg_setup
52 games_pkg_setup
53 }
54
55 pkg_postinst() {
56 python_mod_optimize "$(games_get_libdir)/${PN}"
57 games_pkg_postinst
58 }
59
60 pkg_postrm() {
61 python_mod_cleanup "$(games_get_libdir)/${PN}"
62 }

  ViewVC Help
Powered by ViewVC 1.1.20