summaryrefslogtreecommitdiff
blob: 4785742c9f09d4a48359d3d39f21e540e916addc (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
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-simulation/simutrans/simutrans-0.82.15.7.ebuild,v 1.2 2004/01/13 02:52:24 mr_bones_ Exp $

inherit games

MY_PV=${PV//./_}
S="${WORKDIR}/${PN}"
DESCRIPTION="A free Transport Tycoon clone"
HOMEPAGE="http://www.simutrans.de/"
SRC_URI="http://www.s-line.de/homepages/simutrans/data/simubase-${MY_PV}exp.zip
	http://www.s-line.de/homepages/simutrans/data/simulinux-${MY_PV}exp.tar.gz"

KEYWORDS="-* x86"
LICENSE="as-is"
SLOT="0"
IUSE=""

DEPEND="app-arch/unzip"
RDEPEND="media-libs/libsdl"

src_install() {
	local dir="${GAMES_PREFIX_OPT}/${PN}"

	games_make_wrapper simutrans ./simutrans "${dir}"
	dodir "${dir}"                     || die "dodir failed"
	cp -R * "${D}/${dir}/"             || die "cp failed"
	find "${D}/${dir}/text" -type f | xargs chmod a-x
	prepgamesdirs
	keepdir "${GAMES_PREFIX_OPT}/${PN}/save"
	fperms 2775 "${GAMES_PREFIX_OPT}/${PN}/save"
}