/[gentoo-x86]/games-simulation/micropolis/micropolis-1.0.ebuild
Gentoo

Contents of /games-simulation/micropolis/micropolis-1.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Thu Oct 29 14:32:37 2009 UTC (4 years, 11 months ago) by maekke
Branch: MAIN
Changes since 1.4: +2 -2 lines
amd64/x86 stable, bug #288954
(Portage version: 2.2_rc46/cvs/Linux x86_64)

1 # Copyright 1999-2009 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/games-simulation/micropolis/micropolis-1.0.ebuild,v 1.4 2009/10/13 21:07:59 mr_bones_ Exp $
4
5 inherit eutils games
6
7 DESCRIPTION="Micropolis - free version of the well known city building simulation"
8 HOMEPAGE="http://www.donhopkins.com/home/micropolis/"
9 SRC_URI="http://www.donhopkins.com/home/micropolis/${PN}-activity-source.tgz
10 http://rmdir.de/~michael/${PN}_git.patch"
11
12 LICENSE="GPL-3"
13 SLOT="0"
14 KEYWORDS="amd64 x86"
15 IUSE=""
16
17 RDEPEND="x11-libs/libX11
18 x11-libs/libXpm
19 media-libs/libsdl
20 media-libs/sdl-mixer"
21 DEPEND="${RDEPEND}
22 sys-devel/bison"
23
24 S="${WORKDIR}/${PN}-activity/"
25
26 dir="${GAMES_DATADIR}/${PN}"
27
28 src_unpack() {
29 unpack "${PN}-activity-source.tgz"
30 cd "${S}"
31
32 epatch "${DISTDIR}"/${PN}_git.patch
33 sed -i -e "s:-O3:${CFLAGS}:" \
34 src/tclx/config.mk src/{sim,tcl,tk}/makefile || die
35 }
36
37 src_compile() {
38 emake -C src || die
39 }
40
41 src_install() {
42 exeinto "${dir}/res"
43 doexe src/sim/sim || die
44 insinto "${dir}"
45 doins -r activity cities images manual res || die
46
47 games_make_wrapper micropolis res/sim "${dir}"
48 doicon Micropolis.png
49 make_desktop_entry micropolis "Micropolis" Micropolis.png
50
51 prepgamesdirs
52 }

  ViewVC Help
Powered by ViewVC 1.1.20