summaryrefslogtreecommitdiff
blob: a7e7080990f3021f857a60db4d2d7872ce1d3d29 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit eutils games

DESCRIPTION="The Secret of Monkey Island (interactive demo)"
HOMEPAGE="http://www.worldofmi.com/thegames/monkey1/"
SRC_URI="http://gentooexperimental.org/~unlord/${PN}.zip"

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

RDEPEND=">=games-engines/scummvm-0.8.2"
DEPEND="app-arch/unzip"

S=${WORKDIR}
dir=${GAMES_DATADIR}/${PN}

src_install() {
	insinto "${dir}"
	doins *.{LEC,LFL} || die "doins failed"

	games_make_wrapper ${PN} "scummvm -f -p \"${dir}\" monkey"
	doicon "${FILESDIR}/${PN}.png" || die "newicon failed"
	make_desktop_entry ${PN} "Monkey Island 1 (Demo)" ${PN}.png

	prepgamesdirs
}