/[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.3 - (show annotations) (download)
Fri Feb 20 13:44:40 2009 UTC (5 years, 8 months ago) by hanno
Branch: MAIN
Changes since 1.2: +4 -3 lines
micropolis: add missing dep to sdl-mixer
(Portage version: 2.2_rc23/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.2 2008/06/25 09:51:41 nyhm 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 cd src
39 emake || die
40 }
41
42 src_install() {
43 exeinto "${dir}/res"
44 doexe src/sim/sim || die
45 insinto "${dir}"
46 doins -r activity cities images manual res || die
47
48 games_make_wrapper micropolis res/sim "${dir}"
49 doicon Micropolis.png
50 make_desktop_entry micropolis "Micropolis" Micropolis.png
51
52 prepgamesdirs
53 }

  ViewVC Help
Powered by ViewVC 1.1.20