# Copyright 1999-2004 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/games-arcade/cavezofphear/cavezofphear-0.1.ebuild,v 1.2 2004/02/20 06:20:00 mr_bones_ Exp $ inherit games S="${WORKDIR}/${P/cavezof/}" DESCRIPTION="A boulder dash / digger-like game for console using ncurses" HOMEPAGE="http://www.x86.no/cavezofphear/" SRC_URI="http://www.x86.no/cavezofphear/${P/cavezof/}.tar.bz2" KEYWORDS="x86" LICENSE="GPL-2" SLOT="0" IUSE="" RDEPEND="sys-libs/ncurses" DEPEND="${RDEPEND} >=sys-apps/sed-4" src_unpack() { unpack ${A} cd ${S} sed -i \ -e 's/cd src.*/$(MAKE) -C src/' Makefile || \ die "sed Makefile failed" sed -i \ -e 's/^all:.*/all: phear editor/' \ -e "/^CFLAGS/ s:=.*:= ${CFLAGS}:" src/Makefile || \ die "sed src/Makefile failed" sed -i \ -e 's/\.\///' \ -e 's/editor/phear-editor/g' README-EDITOR || \ die "sed README-EDITOR failed" sed -i \ -e "s:\"data/:\"${GAMES_DATADIR}/${PN}/data/:" \ src/{chk.c,main.c,splash.c} || \ die "sed data fix failed" } src_install() { dogamesbin src/phear || die "dogamesbin failed" newgamesbin src/editor phear-editor || die "newgamesbin failed" dodir "${GAMES_DATADIR}/${PN}" || die "dodir failed" cp -r data/ "${D}${GAMES_DATADIR}/${PN}" || die "cp failed" dodoc AUTHORS ChangeLog README* TODO || die "dodoc failed" prepgamesdirs }