summaryrefslogtreecommitdiff
blob: 55c320a6c9a837b6f726f2c318d839daaa764e89 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI=2

inherit games subversion

ESVN_REPO_URI="https://garage.maemo.org/svn/numptyphysics/trunk"
if [[ "$PV" != "9999" ]] ; then
	ESVN_REVISION="$PV"
fi

DESCRIPTION="a drawing puzzle game in the spirit of Crayon Physics using the same excellent Box2D engine"
HOMEPAGE="http://numptyphysics.garage.maemo.org/"

LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~x86"
IUSE=""

RDEPEND="media-libs/libsdl
	media-libs/sdl-image[png]
	media-libs/sdl-ttf
	x11-libs/libX11
	dev-libs/box2d
	sys-libs/zlib"
DEPEND="${RDEPEND}"

src_prepare() {
	epatch ${FILESDIR}/"${P}-ownbox2d.patch"
	sed -i -e "s:/usr/share/numptyphysics:"${GAMES_DATADIR}"/"${PN}"/:g" -i Config.h || die 'sed failed'
}

src_configure() {
	egamesconf --disable-hildon || die "egamesconf failed"
}

src_install() {
	emake DESTDIR="${D}" install || die "Install failed"
	doicon data/icon64/${PN}.png
	make_desktop_entry "${PN}" "${PN}"
	prepgamesdirs
}

pkg_preinst() {
	games_pkg_postinst
}