summaryrefslogtreecommitdiff
blob: c590e992ee5cdf468f29d96484effc48280e57c2 (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
33
34
35
36
37
38
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-strategy/dominions2-demo/dominions2-demo-2.08.ebuild,v 1.1 2006/04/18 18:40:36 wolf31o2 Exp $

inherit games

DESCRIPTION="Dominions 2: The Ascension Wars is an epic turn-based fantasy strategy game"
HOMEPAGE="http://www.shrapnelgames.com/Illwinter/d2/"
SRC_URI="http://www.shrapnelgames.com/downloads/dom2demo_linux_x86.tgz"

LICENSE="as-is"
SLOT="0"
KEYWORDS="x86"
IUSE="arts esd"
RESTRICT="strip"

DEPEND="|| ( x11-libs/libXext virtual/x11 )
	virtual/opengl
	virtual/glu
	esd? ( media-sound/esound )
	arts? ( kde-base/arts )"

S="${WORKDIR}/dominions2demo"
dir="${GAMES_PREFIX_OPT}/${PN}"
Ddir="${D}/${dir}"

src_unpack() {
	unpack ${A}
	cd "${S}"
	chmod a+x ./dom2demo
}

src_install() {
	dodir "${dir}"
	cp -r "${S}/"* "${Ddir}" || die "cp failed"
	games_make_wrapper dominions2-demo ./dom2demo "${dir}" "${dir}"
	prepgamesdirs
}