# Copyright 2002 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License, v2. # Author: Defresne Sylvain (keiichi) # /space/gentoo/cvsroot/gentoo-x86/skel.ebuild,v 1.3 2002/02/04 15:46:51 gbevin Exp S="${WORKDIR}/${P}" DESCRIPTION="A Puzzle Bubble clone written in perl" HOMEPAGE="http://www.frozen-bubble.org/" SRC_URI="http://guillaume.cottenceau.free.fr/fb/frozen-bubble-0.9.2.tar.bz2" DEPEND="virtual/glibc >=sys-devel/perl-5.6.1 >=dev-perl/SDL-sdlpl-1.12" src_unpack() { unpack ${A} # Patch 'frozen-bubble' to use new location for 'fb.pl' ... cp "${P}/frozen-bubble" "${P}/frozen-bubble.orig" sed 's:fb.pl \$\*:/usr/share/frozen-bubble/bin/fb.pl "\$@":' < "${P}/frozen-bubble.orig" > "${P}/frozen-bubble" assert "Patching frozen-bubble failed !" } src_compile() { # First build the patched version of SDL-mixer cd SDL_mixer_patched ./configure || die emake || die cd .. # Then build the game make OPTIMIZE="${CFLAGS}" PREFIX="/usr" || die } src_install() { make PREFIX="${D}/usr" install || die # Move 'fb.pl' to '/usr/share/frozen-bubble/bin' exeinto /usr/share/frozen-bubble/bin doexe binaries_installpathok/fb.pl rm -f "${D}/usr/bin/fb.pl" dodoc AUTHORS CHANGES COPYING README }