# 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* =dev-cpp/libxmlpp-1* sys-devel/gettext" 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}/0.4-checklib-gentoo.patch" # we have to make sure that the prefix is not changed on "make install" epatch "${FILESDIR}/0.4-prefix.patch" } src_compile() { cd ${S}/src make release DIR=/usr || die "make failed" } src_install() { cd ${S}/src make install DIR=${D}/usr || die mkdir ${D}/usr/games mv ${D}/usr/{bin,games/bin} prepgamesdirs }