/[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.1 - (show annotations) (download)
Wed Jun 11 15:11:49 2008 UTC (6 years, 6 months ago) by hanno
Branch: MAIN
initial micropolis package
(Portage version: 2.1.5.4)

1 # Copyright 1999-2008 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: $
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 DEPEND="${RDEPEND}
21 sys-devel/bison"
22
23 S="${WORKDIR}/${PN}-activity/"
24
25 dir="${GAMES_DATADIR}/${PN}"
26
27 src_unpack() {
28 unpack "${PN}-activity-source.tgz"
29 cd "${S}"
30
31 epatch "${DISTDIR}"/${PN}_git.patch
32 sed -i -e "s:-O3:${CFLAGS}:" \
33 src/tclx/config.mk src/{sim,tcl,tk}/makefile || die
34 }
35
36 src_compile() {
37 cd src
38 emake || 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 }

  ViewVC Help
Powered by ViewVC 1.1.20