# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils games DESCRIPTION="A puzzle game based on Logical!" HOMEPAGE="http://changeling.ixionstudios.com/xlogical/" SRC_URI="http://changeling.ixionstudios.com/xlogical/downloads/xlogical-1.0-7.tar.bz2" LICENSE="GPL-2" SLOT="0" KEYWORDS="x86" IUSE="" S="${WORKDIR}/${PN}-1.0" RDEPEND="sdl? ( >=media-libs/libsdl-1.1.4 >=media-libs/sdl-mixer-1.0.6 >=media-libs/sdl-image-1.0.9 )" DEPEND="${RDEPEND} >=sys-devel/autoconf-2.59" src_unpack() { unpack ${A} cd ${S} echo -e "#include \nusing namespace std;" >| patch.h aclocal || die "aclocal failed" automake || die "automake failed" autoconf || die "autoconf failed" } src_compile() { egamesconf || die "configure failed" sed -i 's/^\(CXXFLAGS =.*\)$/\1 -Wno-deprecated -include "patch.h"/' "${S}/Makefile" emake || die "emake failed" } src_install() { egamesinstall || die "make install failed" dodoc AUTHORS ChangeLog INSTALL NEWS README TODO prepgamesdirs }