blob: 305da5ae1af454cadadd47eadc6c05cd2bb6ba67 (
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
43
44
45
46
47
48
|
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-rpg/galaxymage/galaxymage-0.3.0.ebuild,v 1.3 2007/07/21 19:37:05 nyhm Exp $
inherit eutils games
DESCRIPTION="Tactical/strategic RPG with online multiplayer support"
HOMEPAGE="https://gna.org/projects/tactics"
SRC_URI="http://download.gna.org/tactics/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="psyco"
RDEPEND="dev-python/twisted
>=dev-python/pyopengl-2.0.1
dev-python/numeric
dev-python/pygame
psyco? ( dev-python/psyco )"
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}/${P}"-gentoo.patch
sed -i -e "s:@GENTOO_LIBDIR@:$(games_get_libdir)/${PN}:" \
GalaxyMage.py || die "sed for setting source dir failed"
sed -i -e "s:@GENTOO_DATADIR@:${GAMES_DATADIR}/${PN}:" \
src/Translate.py \
src/Resources.py || die "sed for setting data dir failed"
}
src_install() {
newgamesbin GalaxyMage.py ${PN} || die "newgamesbin failed"
insinto "$(games_get_libdir)"/${PN}
doins -r src/* || die "doins src failed"
insinto "${GAMES_DATADIR}"/${PN}
doins -r locale data/* || die "doins data failed"
dodoc CREDITS.txt README.txt
dohtml -r doc
newicon data/core/images/icon-32.png ${PN}.png
make_desktop_entry ${PN} GalaxyMage
prepgamesdirs
}
|