# Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/games-misc/gtklife/gtklife-2.2.ebuild,v 1.3 2004/06/24 22:57:36 agriffis Exp $ inherit games DESCRIPTION="A Conway's Life simulator for Unix." HOMEPAGE="http://www.igs.net/~tril/gtklife/" SRC_URI="http://www.igs.net/~tril/gtklife/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="x86 ~ppc" IUSE="" RDEPEND="=x11-libs/gtk+-1.2*" DEPEND="${RDEPEND} >=sys-apps/sed-4" src_unpack() { unpack ${A} cd ${S} sed -i \ -e "/install/s:\$\(.*DIR\):\$(DESTDIR)/&:" Makefile \ || die "sed failed" } src_compile() { emake \ CFLAGS="${CFLAGS}" \ PREFIX=/usr \ BINDIR="${GAMES_BINDIR}" \ DATADIR="${GAMES_DATADIR}/${PN}" \ DOCDIR="\$(PREFIX)/share/doc/${PF}/html" \ || die "emake failed" } src_install() { make \ DESTDIR="${D}" \ PREFIX=/usr \ BINDIR="${GAMES_BINDIR}" \ DATADIR="${GAMES_DATADIR}/${PN}" \ DOCDIR="\$(PREFIX)/share/doc/${PF}/html" \ install || die "make install failed" dodoc CHANGES README prepgamesdirs }