# Copyright 1999-2004 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils games DESCRIPTION="A free Worms clone" HOMEPAGE="http://www.wormux.org" SRC_URI="http://download.gna.org/wormux/${PN}-src-0.5beta2.tar.bz2 http://download.gna.org/wormux/${PN}-data-0.5beta2.tar.bz2" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86" IUSE="" DEPEND="virtual/opengl virtual/x11 >=dev-games/clanlib-0.7 =dev-cpp/libxmlpp-1* sys-devel/gettext >=media-libs/libsdl-1.2.4 media-libs/sdl-gfx media-libs/libvorbis >=sys-devel/autoconf-2.57" S=${WORKDIR}/${PN} src_unpack() { unpack ${A} #cp ${FILESDIR}/remove-potcdate.sin ${S}/po/remove-potcdate.sin #epatch "${FILESDIR}/po_Makefile.am.patch" epatch "${FILESDIR}/0.5_beta2-compile.patch" cd ${S}/po sed -i -e 's!localedir = \$(datadir)/locale!localedir = /usr/share/locale!' \ Makefile.am || die "sed failed" } src_compile() { ./autogen.sh egamesconf || die emake localedir="/usr/share/locale" || die "emake failed" } src_install() { egamesinstall localedir="${D}/usr/share/locale" || die "make install failed" dodoc *.txt doc/terrain.txt dohtml doc/readme.html doc/xhtml.css prepgamesdirs }