blob: ff3920dc05a77cec8fddcdd557f4ebaf114b29ab (
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
|
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-simulation/lincity/lincity-1.12.0.ebuild,v 1.5 2004/07/01 11:24:07 eradicator Exp $
inherit games
DESCRIPTION="city/country simulation game for X and Linux SVGALib"
HOMEPAGE="http://lincity.sourceforge.net/"
SRC_URI="mirror://sourceforge/lincity/${P}.tar.gz"
KEYWORDS="x86 ppc amd64"
LICENSE="GPL-2"
SLOT="0"
IUSE="nls X svga"
DEPEND="virtual/libc
nls? ( sys-devel/gettext )
|| (
svga? ( media-libs/svgalib )
X? ( virtual/x11 )
virtual/x11 )"
src_compile() {
egamesconf \
--disable-dependency-tracking \
--with-gzip \
`use_enable nls` \
`use_with X x` \
`use_with svga` \
|| die
emake || die "emake failed"
}
src_install() {
make DESTDIR="${D}" install || die "make install failed"
dodoc Acknowledgements CHANGES README* TODO || die "dodoc failed"
if use nls ; then
cd "${D}/${GAMES_DATADIR}"
mv locale "${D}/usr/share/"
fi
prepgamesdirs
}
|