# Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/games-action/armagetron/armagetron-0.2.6.0.ebuild,v 1.6 2004/06/24 21:51:49 agriffis Exp $ inherit games flag-o-matic DESCRIPTION="3d tron lightcycles, just like the movie" HOMEPAGE="http://armagetron.sourceforge.net/" SRC_URI="mirror://sourceforge/armagetron/${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} >=sys-apps/sed-4 app-arch/unzip" src_unpack() { unpack ${PN}-${PV}.tar.bz2 unpack moviesounds_fq.zip unpack moviepack.zip set > /tmp/emerge-env.txt cd ${S} # Uses $SYNC which which conflicts with emerge sed -i \ -e 's/$(SYNC)/$(SYNCDISK)/' Makefile.global.in || \ die 'sed Makefile.global.in failed' } src_compile() { filter-flags -fno-exceptions egamesconf || die emake || die } src_install() { # make install for armagetron is non-existant dodir ${GAMES_BINDIR} dodir ${GAMES_LIBDIR}/${PN} dodir ${GAMES_DATADIR}/${PN} dodir /usr/share/fonts cp src/tron/armagetron ${D}/${GAMES_LIBDIR}/${PN} || die "No Armagetron Executable" cp -r arenas models sound textures language config \ ${D}/${GAMES_DATADIR}/${PN}/ || die "Missing ArmageTRON data" # maybe convert this to a .png or something #cp tron.ico ${D}/${GAMES_DATADIR}/${PN} dohtml doc newgamesbin ${FILESDIR}/${PN}-0.2.4-r1.sh ${PN} || die "ArmageTRON shell script not found" dosed "s:DATADIR:${GAMES_DATADIR}/${PN}:" ${GAMES_BINDIR}/${PN} dosed "s:BINDIR:${GAMES_LIBDIR}/${PN}:" ${GAMES_BINDIR}/${PN} cp -r ../moviepack ${D}/${GAMES_DATADIR}/${PN} cp -r ../moviesounds ${D}/${GAMES_DATADIR}/${PN} chmod -R a+r ${D} chmod a+rx ${D}/${GAMES_BINDIR}/${PN} chmod a+rx ${D}/${GAMES_LIBDIR}/${PN}/${PN} }