blob: f89e16d49268adc94e45ee1ac3967e84a3bd1844 (
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
38
39
40
41
42
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-puzzle/4stattack/4stattack-2.1.4.ebuild,v 1.8 2005/09/26 18:13:01 wolf31o2 Exp $
inherit eutils games
DESCRIPTION="Connect-4 game, single or network multiplayer"
HOMEPAGE="http://forcedattack.sourceforge.net/"
SRC_URI="mirror://sourceforge/forcedattack/4stAttack-${PV}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86 hppa ~amd64 ppc"
IUSE=""
DEPEND=">=dev-python/pygame-1.5"
S="${WORKDIR}/4stAttack-${PV}"
src_unpack() {
unpack ${A}
cd ${S}
# move the doc files aside so it's easier to install the game files
mv README.txt credits.txt changelog.txt ..
rm GPL version~
#This patch makes the game save settings in $HOME instead
# of in /usr/share/games
epatch ${FILESDIR}/${P}-gentoo.diff
}
src_install() {
dogamesbin ${FILESDIR}/4stattack
dosed "s:GENTOO_DIR:${GAMES_DATADIR}/${PN}:" ${GAMES_BINDIR}/4stattack
dodoc ../README.txt ../credits.txt ../changelog.txt
dodir ${GAMES_DATADIR}/4stattack
cp -R * ${D}/${GAMES_DATADIR}/4stattack/
prepgamesdirs
}
|