# Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils games subversion DESCRIPTION="Clone of Super Monkey Ball using SDL/OpenGL" HOMEPAGE="http://icculus.org/neverball/" ESVN_REPO_URI="https://s.snth.net/svn/neverball/trunk" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~ppc ~x86" IUSE="" RESTRICT="test" DEPEND="media-libs/libsdl media-libs/sdl-mixer media-libs/sdl-image media-libs/sdl-ttf virtual/opengl" S=${WORKDIR}/${PN} src_unpack() { subversion_src_unpack cd "${S}" sed -i \ -e '/CONFIG_DATA/s:"\./data":"'${GAMES_DATADIR}/${PN}'":g' \ share/base_config.h \ || die "sed config.h failed" sed -i \ -e 's:-O2:$(E_CFLAGS):' \ -e "/^MAPC_TARG/s/mapc/${PN}-mapc/" \ Makefile \ || die "sed Makefile failed" find data/ -type f -exec chmod a-x \{\} \; } src_compile() { emake E_CFLAGS="${CFLAGS}" || die "emake failed" } src_install() { dogamesbin ${PN}-mapc neverball neverputt || die "dogamesbin failed" insinto "${GAMES_DATADIR}/${PN}" doins -r data/* || die "doins failed" dodoc CHANGES README doicon icon/*.png make_desktop_entry neverball Neverball neverball make_desktop_entry neverputt Neverputt neverputt prepgamesdirs }