# Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/games-puzzle/magiccube4d/magiccube4d-2.2.ebuild,v 1.6 2004/12/28 16:05:15 josejx Exp $ inherit eutils games MY_PV=${PV/./_} DESCRIPTION="four-dimensional analog of Rubik's cube" HOMEPAGE="http://www.superliminal.com/cube/cube.htm" SRC_URI="http://www.superliminal.com/cube/mc4d-src-${MY_PV}.tgz" LICENSE="as-is" SLOT="0" KEYWORDS="x86 ppc" IUSE="" DEPEND="virtual/x11" S="${WORKDIR}/${PN}-src-${MY_PV}" src_unpack() { unpack ${A} cd ${S} epatch ${FILESDIR}/${PN}-EventHandler.patch } src_compile() { egamesconf || die emake DFLAGS="${CFLAGS}" || die "emake failed" } src_install() { dogamesbin magiccube4d || die "dogamesbin failed" dodoc ChangeLog MagicCube4D-unix.txt readme-unix.txt Intro.txt prepgamesdirs }