/[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.8 - (show annotations) (download)
Thu Jun 19 17:14:01 2014 UTC (5 months, 4 weeks ago) by mr_bones_
Branch: MAIN
CVS Tags: HEAD
Changes since 1.7: +9 -9 lines
tidy

(Portage version: 2.2.8-r1/cvs/Linux x86_64, unsigned Manifest commit)

1 # Copyright 1999-2014 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.7 2014/06/19 12:54:43 creffett Exp $
4
5 EAPI=5
6 inherit eutils games
7
8 DESCRIPTION="Free version of the well-known city building simulation"
9 HOMEPAGE="http://www.donhopkins.com/home/micropolis/"
10 SRC_URI="http://www.donhopkins.com/home/micropolis/${PN}-activity-source.tgz
11 http://rmdir.de/~michael/${PN}_git.patch"
12
13 LICENSE="GPL-3"
14 SLOT="0"
15 KEYWORDS="amd64 x86"
16 IUSE=""
17
18 RDEPEND="x11-libs/libX11
19 x11-libs/libXpm
20 media-libs/libsdl
21 media-libs/sdl-mixer"
22 DEPEND="${RDEPEND}
23 sys-devel/bison"
24
25 S=${WORKDIR}/${PN}-activity/
26
27 src_unpack() {
28 unpack ${PN}-activity-source.tgz
29 }
30
31 src_prepare() {
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 sed -i -e "s:XLDFLAGS=:&${LDFLAGS}:" \
36 src/tclx/config.mk || die
37 }
38
39 src_compile() {
40 emake -C src LDFLAGS="${LDFLAGS}"
41 }
42
43 src_install() {
44 local dir=${GAMES_DATADIR}/${PN}
45
46 exeinto "${dir}/res"
47 doexe src/sim/sim
48 insinto "${dir}"
49 doins -r activity cities images manual res
50
51 games_make_wrapper micropolis res/sim "${dir}"
52 doicon Micropolis.png
53 make_desktop_entry micropolis "Micropolis" Micropolis
54
55 prepgamesdirs
56 }

  ViewVC Help
Powered by ViewVC 1.1.20