/[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.4 - (hide annotations) (download)
Tue Oct 13 21:07:59 2009 UTC (4 years, 10 months ago) by mr_bones_
Branch: MAIN
Changes since 1.3: +2 -3 lines
tidy
(Portage version: 2.1.6.13/cvs/Linux i686)

1 hanno 1.3 # Copyright 1999-2009 Gentoo Foundation
2 hanno 1.1 # Distributed under the terms of the GNU General Public License v2
3 mr_bones_ 1.4 # $Header: /var/cvsroot/gentoo-x86/games-simulation/micropolis/micropolis-1.0.ebuild,v 1.3 2009/02/20 13:44:40 hanno Exp $
4 hanno 1.1
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 hanno 1.3 media-libs/libsdl
20     media-libs/sdl-mixer"
21 hanno 1.1 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 mr_bones_ 1.4 emake -C src || die
39 hanno 1.1 }
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 nyhm 1.2
51     prepgamesdirs
52 hanno 1.1 }

  ViewVC Help
Powered by ViewVC 1.1.20