# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/games-arcade/gav/gav-0.9.0.ebuild,v 1.2 2007/04/24 14:40:37 drizzt Exp $ inherit eutils games DESCRIPTION="GPL Arcade Volleyball" HOMEPAGE="http://gav.sourceforge.net/" # the themes are behind a lame php-counter script. SRC_URI="mirror://sourceforge/gav/${P}.tar.gz mirror://gentoo/fabeach.tgz mirror://gentoo/florindo.tgz mirror://gentoo/inverted.tgz mirror://gentoo/naive.tgz mirror://gentoo/unnamed.tgz mirror://gentoo/yisus.tgz mirror://gentoo/yisus2.tgz" LICENSE="GPL-2" SLOT="0" KEYWORDS="amd64 ppc sparc x86 ~x86-fbsd" IUSE="" DEPEND="media-libs/sdl-image media-libs/sdl-net media-libs/libsdl" src_unpack() { local d unpack ${P}.tar.gz cd "${S}" for d in . automa menu net ; do cp ${d}/Makefile.Linux ${d}/Makefile || die "cp ${d}/Makefile failed" done sed -i \ -e "s:/usr/bin:${GAMES_BINDIR}:" \ -e "/strip/d" \ Makefile \ || die "sed failed" sed -i \ -e "/^CXXFLAGS=/s: -g : ${CXXFLAGS} :" CommonHeader \ || die "sed failed" # Now, unpack the additional themes cd "${S}"/themes # unpack everything because it's easy unpack ${A} # and kill off what we don't want rm -rf ${P} # no reason to have executable files in the themes find . -type f -exec chmod a-x \{\} \; } src_compile() { # bug #41530 - doesn't like the hot parallel make action. emake -C automa || die "emake failed" emake -C menu || die "emake failed" emake -C net || die "emake failed" emake || die "emake failed" } src_install() { dodir "${GAMES_BINDIR}" make ROOT="${D}" install || die "make install failed" cp -r sounds/ "${D}${GAMES_DATADIR}/${PN}" || die "cp failed" dodoc CHANGELOG README prepgamesdirs }