# Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ DESCRIPTION="The gtk client for the GGZ Gaming Zone" HOMEPAGE="http://www.ggzgamingzone.org/" SRC_URI="http://ftp.ggzgamingzone.org/pub/ggz/${PV}/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86 ~ppc ~sparc ~amd64" IUSE="gtk2" DEPEND="=dev-games/ggz-client-libs-0.0.10 >=sys-apps/sed-4 gtk2? ( =x11-libs/gtk+-2* ) !gtk2? ( =x11-libs/gtk+-1* )" src_compile() { local myconf="--enable-gtk=gtk2" use gtk2 || myconf="--enable-gtk" econf ${myconf} --disable-debug --datadir=/usr/share/ggz/gtk-client || die emake || die } src_install() { make DESTDIR=${D} install || die dodoc AUTHORS ChangeLog INSTALL NEWS QuickStart.GGZ README* TODO }