# Copyright 1999-2004 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils games DESCRIPTION="free Worms clone" HOMEPAGE="http://www.haypocalc.com/wormux/en/index.php" SRC_URI="http://download.gna.org/wormux/${PN}-src-${PV}.tgz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86" IUSE="" DEPEND="=dev-games/clanlib-0.6.5*" S=${WORKDIR}/${PN} pkg_setup() { clanlib-config 0.6.5 } src_unpack() { unpack ${A} cd ${S} # because of a bug in the current clanlib ebuild have to to # remove the clanlib check, it will work anyway epatch "${FILESDIR}/${PV}-checklib.patch" } src_compile() { cd ${S}/src make config_install DIR=${D}/usr || die "make failed" # we have to hardcode the final destination because the makefile # doesn't use passed vars on the target "install" sed -i -e 's!REPERTOIRE_INSTALL(.*)!REPERTOIRE_INSTALL("/usr/")!' \ constante.cpp || die "make failed" make RELEASE=1 || die "make failed" } src_install() { cd ${S}/src einstall || die mkdir ${D}/usr/games mv ${D}/usr/{bin,games/bin} prepgamesdirs }