# 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 }