summaryrefslogtreecommitdiff
blob: fb3c71a84b0a546b356e61c6c8d8c3ed60d91c25 (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
39
40
41
42
43
44
45
46
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-strategy/crimson/crimson-0.3.5.ebuild,v 1.2 2004/02/20 07:38:17 mr_bones_ Exp $

inherit games

DESCRIPTION="tactical war game in the tradition of Battle Isle"
HOMEPAGE="http://www.lanipage.de/jens/"
SRC_URI="http://www.lanipage.de/jens/crimson/${P}.tar.bz2"

LICENSE="GPL-2"
KEYWORDS="x86"
SLOT="0"
IUSE="zlib"

DEPEND=">=libsdl-1.1.5
	>=sdl-mixer-1.2.4
	zlib? ( sys-libs/zlib )"

src_compile() {
	egamesconf \
		`use_enable zlib` \
		--enable-cfed \
		--enable-bi2cf \
		--enable-comet \
		|| die
	emake || die "emake failed"
}

src_install() {
	make install DESTDIR=${D} || die "make install failed"
	dodoc NEWS README* THANKS TODO
	prepgamesdirs
}

pkg_postinst() {
	echo
	ewarn "Crimson Fields ${PV} is not save-game compatible with previous versions."
	echo
	einfo "If you have older save files and you wish to continue those games,"
	einfo "you'll need to remerge the version with which you started"
	einfo "those save-games."
	echo

	games_pkg_postinst
}