/[gentoo-x86]/games-arcade/watermelons/watermelons-1.1.1.ebuild
Gentoo

Contents of /games-arcade/watermelons/watermelons-1.1.1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Thu Sep 9 17:37:56 2010 UTC (4 years ago) by mr_bones_
Branch: MAIN
Changes since 1.5: +3 -2 lines
tidy
(Portage version: 2.1.8.3/cvs/Linux i686)

1 # Copyright 1999-2010 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/games-arcade/watermelons/watermelons-1.1.1.ebuild,v 1.5 2010/05/04 04:47:24 tupone Exp $
4
5 EAPI=2
6 PYTHON_DEPEND="2"
7 inherit eutils python games
8
9 MY_PN="melons"
10 DESCRIPTION="A thrilling watermelon bouncing game."
11 HOMEPAGE="http://www.imitationpickles.org/melons/index.html"
12 SRC_URI="mirror://gentoo/${MY_PN}-${PV}.tgz"
13 # No version upstream
14 #SRC_URI="http://www.imitationpickles.org/${MY_PN}/${MY_PN}.tgz"
15
16 LICENSE="GPL-2"
17 SLOT="0"
18 KEYWORDS="amd64 x86 ~x86-fbsd"
19 IUSE=""
20
21 RDEPEND="dev-python/pygame"
22
23 S=${WORKDIR}/${MY_PN}
24
25 pkg_setup() {
26 python_set_active_version 2
27 games_pkg_setup
28 }
29
30 src_prepare() {
31 sed -i \
32 -e "s:melons.hs:${GAMES_STATEDIR}/${PN}/&:" \
33 main.py \
34 || die "sed failed"
35
36 cat <<-EOF > "${PN}"
37 #!/bin/bash
38 cd "${GAMES_DATADIR}/${PN}"
39 exec $(PYTHON) main.py
40 EOF
41 }
42
43 src_install() {
44 dogamesbin ${PN} || die "dogamesbin failed"
45 insinto "${GAMES_DATADIR}/${PN}"
46 doins -r data pgu const.py game.py main.py melon.py melons.py menu.py trampoline.py \
47 || die "doins failed"
48 dodoc *.txt
49 dodir "${GAMES_STATEDIR}/${PN}"
50 touch "${D}${GAMES_STATEDIR}"/${PN}/melons.hs
51 fperms 664 "${GAMES_STATEDIR}"/${PN}/melons.hs
52 newicon data/mellon0013.png "${PN}.png" || die "newicon failed"
53 make_desktop_entry ${PN} Watermelons
54 prepgamesdirs
55 }

  ViewVC Help
Powered by ViewVC 1.1.20