# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit games # This works as long as the filename contains the version number without # dots and a trailing "1". MY_P="${PN}-srcdata-${PV//.}1" DESCRIPTION="UltimateStunts will be a remake of the famous DOS-game \"stunts\"" HOMEPAGE="http://www.ultimatestunts.nl" SRC_URI="mirror://sourceforge/ultimatestunts/${MY_P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="" S=${WORKDIR}/${MY_P} DEPEND="virtual/x11 media-libs/openal media-libs/libsdl virtual/opengl" src_unpack() { unpack ${A} cd "${S}" sed -i 's/\/etc\/ultimatestunts.conf/\/etc\/games\/ultimatestunts.conf/' shared/usmisc.cpp || die "sed failed" } src_install() { # prevent sandbox violation sed -i '302,306s#${usdatadir}#$(DESTDIR)${usdatadir}#' data/Makefile.in make DESTDIR="${D}" install || die "install failed." make_desktop_entry ustunts "Ultimate Stunts" dodoc AUTHORS README TODO prepgamesdirs }