summaryrefslogtreecommitdiff
blob: 112033b90d5bb29a40ba350090d08e95e18d62db (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
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-simulation/lincity/lincity-1.12_pre53.ebuild,v 1.1 2003/09/11 12:22:49 vapier Exp $

inherit games

MY_P=${P/_}
DESCRIPTION="city/country simulation game for X and Linux SVGALib"
SRC_URI="mirror://sourceforge/lincity/${MY_P}.tar.gz"
HOMEPAGE="http://lincity.sourceforge.net/"

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

DEPEND="virtual/glibc
	svga? ( media-libs/svgalib )
	X? ( virtual/x11 )
	|| ( svga? ( ) X? ( ) virtual/x11 )"

S=${WORKDIR}/${MY_P}

src_compile() {
	egamesconf \
		--with-gzip \
		`use_with X x` \
		`use_with svga` \
		|| die
	emake || die
}

src_install() {
	make install DESTDIR=${D} || die
	dodoc Acknowledgements CHANGES FAQ README* TODO
	cd ${D}/${GAMES_DATADIR}
	mv locale ${D}/usr/share/
	prepgamesdirs
}