/[gentoo-x86]/games-arcade/whichwayisup/whichwayisup-0.7.0.ebuild
Gentoo

Contents of /games-arcade/whichwayisup/whichwayisup-0.7.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.11 - (show annotations) (download)
Mon Jun 23 20:03:32 2008 UTC (10 years, 3 months ago) by mr_bones_
Branch: MAIN
CVS Tags: HEAD
Changes since 1.10: +1 -1 lines
FILE REMOVED
old
(Portage version: 2.1.4.4)

1 # Copyright 1999-2008 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/games-arcade/whichwayisup/whichwayisup-0.7.0.ebuild,v 1.10 2008/05/29 16:52:24 hawking Exp $
4
5 NEED_PYTHON="2.4"
6
7 inherit eutils python games
8
9 MY_PV=${PV//./}
10 MY_P=${PN}_b${MY_PV}
11 DESCRIPTION="A traditional and challenging 2D platformer game with a slight rotational twist"
12 HOMEPAGE="http://hectigo.net/puskutraktori/whichwayisup/"
13 SRC_URI="http://hectigo.net/puskutraktori/whichwayisup/${MY_P}.zip"
14
15 LICENSE="GPL-2 CCPL-Attribution-3.0"
16 SLOT="0"
17 KEYWORDS="amd64 ~ppc x86"
18 IUSE=""
19
20 DEPEND="app-arch/unzip"
21 RDEPEND=">=dev-python/pygame-1.6"
22 # media-libs/sdl-image[png]
23
24 S=${WORKDIR}/${MY_P}
25
26 src_unpack() {
27 unpack ${A}
28 cd "${S}"
29 sed -i -e "s:libdir\ =\ .*:libdir\ =\ \"$(games_get_libdir)/${PN}\":" \
30 run_game.py || die "Changing library path failed"
31 sed -i -e "s:data_dir\ =\ .*:data_dir\ =\ \"${GAMES_DATADIR}/${PN}\":" \
32 lib/data.py || die "Changing data path failed"
33 }
34
35 src_install() {
36 newgamesbin run_game.py ${PN} || die "newgamesbin failed"
37
38 insinto "$(games_get_libdir)/${PN}"
39 doins lib/*.py || die "doins lib failed"
40
41 dodoc README.txt changelog.txt
42
43 insinto "${GAMES_DATADIR}/${PN}"
44 doins -r data/* || die "doins data failed"
45
46 doicon "${FILESDIR}"/${PN}-32.xpm
47 make_desktop_entry ${PN} "Which Way Is Up?" ${PN}-32
48 prepgamesdirs
49 }
50
51 pkg_postinst() {
52 python_mod_optimize "$(games_get_libdir)/${PN}"
53 games_pkg_postinst
54 }
55
56 pkg_postrm() {
57 python_mod_cleanup "$(games_get_libdir)/${PN}"
58 }

  ViewVC Help
Powered by ViewVC 1.1.20