blob: 1a9b046cbd755225bc3206ad62ee787c25499c5d (
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
49
50
51
52
53
54
55
56
57
58
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/games-strategy/netpanzer/netpanzer-0.1.5-r1.ebuild,v 1.5 2005/01/23 15:41:28 wolf31o2 Exp $
inherit eutils games
DESCRIPTION="Fast-action multiplayer strategic network game"
HOMEPAGE="http://netpanzer.berlios.de/"
DATAVERSION="0.1.3"
SRC_URI="http://download.berlios.de/netpanzer/netpanzer-${PV}.tar.bz2
http://download.berlios.de/netpanzer/netpanzerdata-${DATAVERSION}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86 ~ppc"
IUSE=""
RDEPEND=">=media-libs/libsdl-1.2.5
>=media-libs/sdl-net-1.2
>=media-libs/sdl-mixer-1.2
>=media-libs/sdl-image-1.2
>=media-libs/sdl-ttf-2.0.0
>=dev-games/physfs-0.1.9
dev-libs/libxml2"
DEPEND="${RDEPEND}
x11-libs/wxGTK
>=dev-util/jam-2.5"
src_unpack() {
unpack ${A}
cd "${WORKDIR}/${PN}data-${DATAVERSION}/"
epatch "${FILESDIR}/physfs.patch"
./autogen.sh || die "autogen.sh failed"
}
src_compile() {
# bug #57332 - netpanzeredit isn't ready yet.
egamesconf \
--with-wx-config=none \
|| die
jam || die "jam failed"
einfo "Working in ${WORKDIR}/${PN}data-${DATAVERSION}/"
cd ${WORKDIR}/${PN}data-${DATAVERSION}/
egamesconf || die
jam || die "jam failed (on data package)"
}
src_install() {
jam -sDESTDIR="${D}" install || die "jam install failed"
# Don't use DESTDIR yet, because 0.1.3 didn't support that yet
cd "${WORKDIR}/${PN}data-${DATAVERSION}/" \
&& jam -sdatadir="${D}${GAMES_DATADIR}" install \
|| die "jam install failed (data package)"
dodoc ChangeLog README TODO
prepgamesdirs
}
|