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

inherit games

DESCRIPTION="Maniac Mansion (non-interactive demo)"
SRC_URI="http://quick.mixnmojo.com/demos/maniac.rar"

LICENSE="freedist"
SLOT="0"
KEYWORDS="x86"
IUSE=""
RESTRICT="strip"

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

S=${WORKDIR}/MANIAC

src_install() {
	games_make_wrapper maniacdemo "scummvm -f -p \"${GAMES_DATADIR}/${PN}\" maniac" .
	insinto "${GAMES_DATADIR}/${PN}"
	doins *.MAN
	prepgamesdirs
}