/[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 - (hide annotations) (download)
Thu Jun 19 17:14:01 2014 UTC (2 months 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 creffett 1.7 # Copyright 1999-2014 Gentoo Foundation
2 hanno 1.1 # Distributed under the terms of the GNU General Public License v2
3 mr_bones_ 1.8 # $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 creffett 1.7 EAPI=5
6 hanno 1.1 inherit eutils games
7    
8 mr_bones_ 1.8 DESCRIPTION="Free version of the well-known city building simulation"
9 hanno 1.1 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 maekke 1.5 KEYWORDS="amd64 x86"
16 hanno 1.1 IUSE=""
17    
18     RDEPEND="x11-libs/libX11
19     x11-libs/libXpm
20 hanno 1.3 media-libs/libsdl
21     media-libs/sdl-mixer"
22 hanno 1.1 DEPEND="${RDEPEND}
23     sys-devel/bison"
24    
25 mr_bones_ 1.8 S=${WORKDIR}/${PN}-activity/
26 hanno 1.1
27     src_unpack() {
28 creffett 1.7 unpack ${PN}-activity-source.tgz
29     }
30 hanno 1.1
31 creffett 1.7 src_prepare() {
32 hanno 1.1 epatch "${DISTDIR}"/${PN}_git.patch
33     sed -i -e "s:-O3:${CFLAGS}:" \
34     src/tclx/config.mk src/{sim,tcl,tk}/makefile || die
35 creffett 1.7 sed -i -e "s:XLDFLAGS=:&${LDFLAGS}:" \
36     src/tclx/config.mk || die
37 hanno 1.1 }
38    
39     src_compile() {
40 mr_bones_ 1.8 emake -C src LDFLAGS="${LDFLAGS}"
41 hanno 1.1 }
42    
43     src_install() {
44 mr_bones_ 1.8 local dir=${GAMES_DATADIR}/${PN}
45    
46 hanno 1.1 exeinto "${dir}/res"
47 mr_bones_ 1.8 doexe src/sim/sim
48 hanno 1.1 insinto "${dir}"
49 mr_bones_ 1.8 doins -r activity cities images manual res
50 hanno 1.1
51     games_make_wrapper micropolis res/sim "${dir}"
52     doicon Micropolis.png
53 abcd 1.6 make_desktop_entry micropolis "Micropolis" Micropolis
54 nyhm 1.2
55     prepgamesdirs
56 hanno 1.1 }

  ViewVC Help
Powered by ViewVC 1.1.20