/[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.2 - (hide annotations) (download)
Wed Jun 25 09:51:41 2008 UTC (6 years, 1 month ago) by nyhm
Branch: MAIN
Changes since 1.1: +3 -1 lines
call prepgamesdirs
(Portage version: 2.2_rc1/cvs/Linux 2.6.25.8 x86_64)

1 hanno 1.1 # Copyright 1999-2008 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 nyhm 1.2 # $Header: /var/cvsroot/gentoo-x86/games-simulation/micropolis/micropolis-1.0.ebuild,v 1.1 2008/06/11 15:11:49 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     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 nyhm 1.2
51     prepgamesdirs
52 hanno 1.1 }

  ViewVC Help
Powered by ViewVC 1.1.20