# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils games MY_PN=ttp MY_PV=${PV//./_} DESCRIPTION="Brake down and Burn up! original:Torus Trooper (ABA)" HOMEPAGE="http://www.mb.ccnw.ne.jp/hiz/game/tt/index_en.html" SRC_URI="http://www.mb.ccnw.ne.jp/hiz/game/tt//${MY_PN}${MY_PV}.zip" LICENSE="BSD" SLOT="0" KEYWORDS="~ppc ~x86" DEPEND="media-libs/libsdl media-libs/mesa media-libs/sdl-mixer dev-libs/bulletss" S=${WORKDIR}/${MY_PN}${MY_PV} pkg_setup() { games_pkg_setup # gcc must be built with "d" USE-FLAG if ! built_with_use sys-devel/gcc d; then ewarn "sys-devel/gcc must be built with d for this package" ewarn "to function." die "recompile gcc with USE=\"d\"" fi } src_unpack(){ unpack ${A} epatch ${FILESDIR}/${P}.diff } src_install() { dogamesbin ${PN} local datadir="${GAMES_DATADIR}"/${PN} dodir ${datadir} insinto "${GAMES_DATADIR}"/${PN} doins -r barrage images sounds || die if [ ! -e "${GAMES_STATEDIR}"/ttp.prf ] then dodir "${GAMES_STATEDIR}" touch ${D}/"${GAMES_STATEDIR}"/ttp.prf fi dodoc readme* prepgamesdirs } pkg_postinst() { games_pkg_postinst chmod ug+rw "${GAMES_STATEDIR}"/ttp.prf }