# Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/games-puzzle/trimines/trimines-1.3.0.ebuild,v 1.4 2010/10/05 12:39:32 tupone Exp $ EAPI="2" inherit eutils toolchain-funcs games DESCRIPTION="A mine sweeper game that uses triangles instead of squares" HOMEPAGE="http://www.freewebs.com/trimines/" SRC_URI="http://www.freewebs.com/trimines/${P}.tar.gz" LICENSE="as-is" SLOT="0" KEYWORDS="~ppc x86" IUSE="" RDEPEND="media-libs/libsdl" DEPEND="${RDEPEND}" src_prepare() { sed -i \ -e "s:data/:${GAMES_DATADIR}/${PN}/:" src/gfx.c \ || die "sed failed" echo "${PN}: ; $(tc-getCC) ${LDFLAGS} ${CFLAGS} src/main.c -o ./${PN} \`sdl-config --cflags\` \`sdl-config --libs\`" > Makefile } src_install() { dogamesbin "${PN}" || die "dogamesbin failed" insinto "${GAMES_DATADIR}/${PN}" doins -r data/* || die "doins failed" dodoc README make_desktop_entry "${PN}" TriMines prepgamesdirs }