blob: 4b6e972a150a59f8d6dba5a090b7834df0c6ecd6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-strategy/castle-combat/castle-combat-0.8.1.ebuild,v 1.1 2006/07/29 23:05:56 tupone Exp $
inherit games
DESCRIPTION="A clone of the old arcade game Rampart"
HOMEPAGE="http://www.linux-games.com/castle-combat/"
SRC_URI="mirror://sourceforge/castle-combat/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
IUSE=""
DEPEND="dev-python/twisted
dev-python/pygame"
src_unpack() {
unpack ${A}
cd "${S}"
sed -i -e "s:src:${GAMES_LIBDIR}/${PN}:" \
castle-combat.py
sed -i -e "/data_path =/s:\"data:\"${GAMES_DATADIR}/${PN}:" \
src/common.py
}
src_install() {
newgamesbin castle-combat.py castle-combat
insinto ${GAMES_LIBDIR}/${PN}
doins src/*
insinto ${GAMES_DATADIR}/${PN}
doins -r data/{colourba.ttf,gfx,sound}
dohtml -r data/font_read_me.html data/doc
dodoc TODO
prepgamesdirs
}
|