summaryrefslogtreecommitdiff
blob: 7031e726f6ce3d1d81be4ebd00498917285d6e28 (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
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-strategy/spacehulk/spacehulk-1.4.99.ebuild,v 1.10 2008/07/27 21:25:38 carlo Exp $

EAPI=1

inherit qt3 games

DESCRIPTION="A boardgame in the world of Warhammer 40k"
HOMEPAGE="http://r.vinot.free.fr/spacehulk/"
SRC_URI="http://freesoftware.fsf.org/download/spacehulk/main.pkg/${PV}/${P}.tar.gz
	http://freesoftware.fsf.org/download/spacehulk/themespack.pkg/1.0/spacehulk-themespack-1.0.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~ppc x86"
IUSE="xinerama"

DEPEND="x11-libs/qt:3
	media-libs/libpng
	media-libs/jpeg
	xinerama? ( x11-libs/libXinerama )"

src_compile() {
	egamesconf \
		$(use_with xinerama) \
		|| die
	emake || die "emake failed"
}

src_install() {
	emake DESTDIR="${D}" install || die "emake install failed"
	insinto "${GAMES_DATADIR}"/${PN}/themes
	doins -r ../themes/* || die "doins failed"
	dodoc AUTHORS ChangeLog README TODO
	prepgamesdirs
}