# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit flag-o-matic eutils games DESCRIPTION="3d tron lightcycles, just like the movie" HOMEPAGE="http://armagetronad.sourceforge.net/" SRC_URI="mirror://sourceforge/armagetronad/${P}.tar.bz2 http://armagetron.sourceforge.net/addons/moviesounds_fq.zip http://armagetron.sourceforge.net/addons/moviepack.zip" LICENSE="GPL-2" SLOT="0" KEYWORDS="x86 ppc" IUSE="" RDEPEND="virtual/x11 virtual/opengl media-libs/libsdl media-libs/sdl-image sys-libs/zlib media-libs/libpng" DEPEND="${RDEPEND} app-arch/unzip" src_unpack() { unpack ${A} filter-flags -fno-exceptions } src_compile() { egamesconf || die "egamesconf failed" emake || die "emake failed" cd "${WORKDIR}/${P}" make documentation || "make doc failed" } src_install() { dodoc COPYING.txt dohtml doc/*.html docinto html/net dohtml doc/net/*.html insinto /usr/share/pixmaps doins tron.ico dodir "${GAMES_LIBDIR}/${PN}" "${GAMES_DATADIR}/${PN}" cp src/tron/armagetronad "${D}/${GAMES_LIBDIR}/${PN}" \ || die "cp failed" dodir "${GAMES_LIBDIR}/${PN}" "${GAMES_DATADIR}/${PN}" "${GAMES_SYSCONFDIR}/${PN}" cp src/network/armagetronad-master armagetronad-stat "${D}/${GAMES_LIBDIR}/${PN}" \ || die "cp failed" cp -r arenas models sound textures language log music \ "${D}/${GAMES_DATADIR}/${PN}/" \ || die "cp failed" cp -r config/* \ "${D}/${GAMES_SYSCONFDIR}/${PN}/" \ || die "cp failed" newgamesbin "${FILESDIR}/${PN}-wrapper" ${PN} \ || die "newgamesbin failed" cd "${S}" cp -r ../moviepack "${D}/${GAMES_DATADIR}/${PN}" || die "cp failed" cp -r ../moviesounds "${D}/${GAMES_DATADIR}/${PN}" || die "cp failed" prepgamesdirs make_desktop_entry armagetronad "Armagetron Advanced" tron.ico }