# Copyright 1999-2002 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $ Header: $ levels="Arcade BeOS-4ever Bombs Chaos HereWeGo HighBall Holidays Hommage Kevin Megadoomer Ph33r R-World Runes Shimitar TheGauntlet Wolvie Zufallswelt" S=${WORKDIR}/${P} DESCRIPTION="Breakout clone written with the SDL library" SRC_URI="http://ftp1.sourceforge.net/lgames/${P}.tar.gz" for x in $levels; do SRC_URI="$SRC_URI http://lgames.sourceforge.net/LBreakout2/levels/${x}" done HOMEPAGE="http://lgames.sourceforge.net" KEYWORDS="x86" SLOT="0" DEPEND="virtual/glibc >=media-libs/libsdl-1.1.5 media-libs/sdl-mixer" RDEPEND="${DEPEND}" LICENSE="GPL" src_unpack() { unpack ${P}.tar.gz for x in ${levels}; do cp ${DISTDIR}/${x} ${S} done cd ${S} } src_compile() { ./configure \ --prefix=/usr \ --with-doc-path=/usr/share/doc/${P} \ --host=${CHOST} || die emake || die } src_install () { dodir /var/lib/games make DESTDIR=${D} install || die insinto /usr/share/games/lbreakout2/levels doins ${levels} dodoc AUTHORS COPYING README TODO ChangeLog }