1 |
# Copyright 1999-2005 Gentoo Foundation |
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
# $Header: /var/cvsroot/gentoo-x86/games-strategy/tornado/tornado-1.2.1a.ebuild,v 1.7 2005/01/09 18:30:20 luckyduck Exp $ |
4 |
|
5 |
inherit games |
6 |
|
7 |
DESCRIPTION="Clone of a C64 game - destroy the opponent's house" |
8 |
HOMEPAGE="http://home.kcore.de/~kiza/linux/tornado/" |
9 |
SRC_URI="http://home.kcore.de/~kiza/linux/tornado/download/${P}.tar.gz" |
10 |
|
11 |
LICENSE="GPL-2" |
12 |
SLOT="0" |
13 |
KEYWORDS="x86 ppc ~amd64" |
14 |
IUSE="" |
15 |
|
16 |
RDEPEND=">=sys-libs/ncurses-5.3" |
17 |
DEPEND="${RDEPEND} |
18 |
>=sys-apps/sed-4" |
19 |
|
20 |
src_unpack() { |
21 |
unpack ${A} |
22 |
cd ${S} |
23 |
|
24 |
sed -i \ |
25 |
-e "s:/usr/local:/usr:" \ |
26 |
-e "s:-O2:${CFLAGS}:" \ |
27 |
Makefile || die "sed Makefile failed" |
28 |
sed -i \ |
29 |
-e "s:PREFIX/bin:${GAMES_BINDIR}:" \ |
30 |
-e "s:PREFIX/man:/usr/man:" \ |
31 |
-e "s:/usr/local:/usr:" \ |
32 |
doc/man/tornado.6.in || die "sed doc/man/tornado.6 failed" |
33 |
} |
34 |
|
35 |
src_install() { |
36 |
dogamesbin tornado || die |
37 |
doman doc/man/tornado.6 |
38 |
dodoc AUTHOR CREDITS Changelog README TODO |
39 |
insinto ${GAMES_STATEDIR} |
40 |
doins tornado.scores |
41 |
prepgamesdirs |
42 |
fperms 664 ${GAMES_STATEDIR}/tornado.scores |
43 |
} |