# Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/games-arcade/jumpnbump/jumpnbump-1.50-r1.ebuild,v 1.13 2009/12/29 20:50:03 mr_bones_ Exp $ EAPI=2 inherit autotools eutils games DESCRIPTION="a funny multiplayer game about cute little fluffy bunnies" HOMEPAGE="http://www.jumpbump.mine.nu/" SRC_URI="http://www.jumpbump.mine.nu/port/${P}.tar.gz mirror://gentoo/${P}-autotool.patch.bz2" LICENSE="GPL-2" SLOT="0" KEYWORDS="amd64 ppc x86" IUSE="X fbcon kde svga tk +music" DEPEND="X? ( x11-libs/libXext ) kde? ( kde-base/kdialog ) media-libs/sdl-mixer music? ( media-libs/sdl-mixer[mikmod] ) media-libs/libsdl[audio,joystick,video] media-libs/sdl-net" RDEPEND="${DEPEND} tk? ( dev-lang/tcl dev-lang/tk )" src_prepare() { epatch ../${P}-autotool.patch rm -f configure eautoreconf sed -i \ -e "/PREFIX/ s:PREFIX.*:\"${GAMES_DATADIR}/${PN}/jumpbump.dat\":" \ globals.h \ || die "sed failed" } src_install() { emake DESTDIR="${D}" install || die "emake install failed" # clean up a bit. It leaves a dep on Xdialog but ignore that. use fbcon || rm -f "${D}${GAMES_BINDIR}/jumpnbump.fbcon" use kde || rm -f "${D}${GAMES_BINDIR}/jumpnbump-kdialog" use svga || rm -f "${D}${GAMES_BINDIR}/jumpnbump.svgalib" use tk || rm -f "${D}${GAMES_BINDIR}/jnbmenu.tcl" newicon sdl/jumpnbump64.xpm ${PN}.xpm make_desktop_entry ${PN} "Jump n Bump" prepgamesdirs }