# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/games-misc/gBhed/gBhed-0.17.ebuild,v 1.1 2006/10/12 00:03:14 nyhm Exp $ inherit eutils games DESCRIPTION="An Al Bhed translator" HOMEPAGE="http://liquidchile.net/software/gbhed/" SRC_URI="http://liquidchile.net/software/gbhed/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~ppc ~x86" IUSE="gtk" DEPEND="gtk? ( >=x11-libs/gtk+-2.2 >=dev-libs/glib-2.2 )" src_compile() { egamesconf \ --datadir="${GAMES_DATADIR}/${PN}" \ $(use_enable gtk gbhed) || die emake || die "emake failed" } src_install() { emake -C src DESTDIR="${D}" install || die "emake install failed" dodoc AUTHORS ChangeLog NEWS README THANKS TODO doman doc/abtranslate.1 if use gtk ; then insinto "${GAMES_DATADIR}"/${PN}/pixmaps doins pixmaps/*.{jpg,png,xpm} || die "doins failed" newicon pixmaps/gbhed48.png ${PN}.png make_desktop_entry gbhed ${PN} doman doc/gbhed.1 fi prepgamesdirs }