# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ # bug #98152 inherit games toolchain-funcs DESCRIPTION="Small and fast MUD client using GTK" HOMEPAGE="http://geocities.com/rmc_client/" SRC_URI="http://geocities.com/rmc_client/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86" IUSE="" DEPEND="=x11-libs/gtk+-2*" S=${WORKDIR}/${P}/src src_unpack() { unpack ${A} cd "${S}" sed -i \ -e "s:#define DOC_PATH.*:#define DOC_PATH \"${GAMES_DATADIR}/${PN}/\":" \ client.h \ || die "sed failed" } src_compile() { emake \ CC=$(tc-getCC) \ CFLAGS="${CFLAGS} `gtk-config --cflags`" \ || die "emake failed" } src_install() { dodir ${GAMES_BINDIR} # install "docs" into datadir, as they are used by the app's help function make \ INSTALL="${D}${GAMES_BINDIR}" \ DOCINSTALL="${D}${GAMES_DATADIR}" \ install \ || die "make install failed" cd .. dodoc AUTHORS BUGS NEWS README TODO VERSION prepgamesdirs }