# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils games MY_P="${PN}-${PV}" DESCRIPTION="Tennix! is a tennis game written in C using SDL." HOMEPAGE="http://icculus.org/tennix/" SRC_URI="http://icculus.org/tennix/releases/${MY_P}.tar.gz" LICENSE="GPL-2 or " SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="" RDEPEND="media-libs/libsdl media-libs/sdl-image media-libs/sdl-mixer" DEPEND="${RDEPEND}" S=${WORKDIR}/${MY_P} src_unpack() { unpack ${MY_P}.tar.gz } src_compile() { emake -j1 || die "emake failed" } src_install() { cd "${WORKDIR}/${MY_P}" dogamesbin ${PN} || die "dogamesbin failed" #svg-icon seems to be broken # doicon data/${PN}.svg # make_desktop_entry ${PN} "Tennix!" ${PN}.svg make_desktop_entry ${PN} "Tennix!" prepgamesdirs }