# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit games

DESCRIPTION="Simon the Sorcerer 2 (Demo)"
HOMEPAGE="http://www.adventuresoft.com/gs2.html"
SRC_URI="http://www.cowlark.com/scumm.dat/simon2demo.zip"

LICENSE="freedist"
SLOT="0"
KEYWORDS="x86"

RDEPEND=">=games-engines/scummvm-0.6.0"
DEPEND="${RDEPEND}
	app-arch/unzip"

S=${WORKDIR}/simon2demo

src_install() {
	games_make_wrapper simon2demo "scummvm -f -p \"${GAMES_DATADIR}/${PN}\" simon2" .
	insinto "${GAMES_DATADIR}/${PN}"
	doins gsptr30 icon.dat simon2.gme simon2.voc stripped.txt tbllist
	dodoc simon2.txt
	prepgamesdirs
}