# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils games DESCRIPTION="a 3D game that probably involves a lot of physics and frustrating gameplay" HOMEPAGE="http://code.google.com/p/irrlamb/" SRC_URI="http://irrlamb.googlecode.com/files/${P}-src.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="-* ~x86" IUSE="" # Using internal libs # >=sci-physics/bullet-2.52 # >=dev-games/irrlicht-1.3 RDEPEND=">=media-libs/audiere-1.9.4 >=dev-lang/lua-5.1 x11-libs/libXext x11-libs/libXxf86vm virtual/glu" DEPEND="${RDEPEND} dev-util/scons" S=${WORKDIR}/${PN} src_unpack() { unpack ${A} cd "${S}" epatch "${FILESDIR}/${P}-log-path.patch" epatch "${FILESDIR}/${P}-lua-and-cxxflags.patch" # 0.0.3 ships some .svn files, reported upstream # this workaraound won't be needed in next release. rm -rf $(find ./libraries -name *svn) } src_compile() { scons || die "scons failed" } src_install() { dodir ${GAMES_DATADIR}/${PN} insinto ${GAMES_DATADIR}/${PN} doins -r art fonts levels libraries meshes scenes scripts terrain textures exeinto ${GAMES_DATADIR}/${PN} doexe ${PN} dodoc {changelog,readme}.txt games_make_wrapper ${PN} ./${PN} ${GAMES_DATADIR}/${PN} prepgamesdirs make_desktop_entry ${PN} ${PN} ${PN} }