Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 349349 | Differences between
and this patch

Collapse All | Expand All

(-)/var/cache/portage/gentoo/games-fps/warsow/warsow-0.5-r1.ebuild (-15 / +26 lines)
Lines 1-15 Link Here
1
# Copyright 1999-2011 Gentoo Foundation
1
# Copyright 1999-2011 Gentoo Foundation
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
# $Header: /var/cvsroot/gentoo-x86/games-fps/warsow/warsow-0.5-r1.ebuild,v 1.6 2011/02/26 15:27:28 signals Exp $
3
# $Header: $
4
4
5
EAPI=2
5
EAPI=2
6
inherit eutils toolchain-funcs versionator games
6
inherit eutils toolchain-funcs versionator games
7
7
8
MY_P=${PN}_${PV}
8
MY_P=${PN}_${PV}
9
BASE_PV=0.61
10
BASE_P=${PN}_${BASE_PV}
9
DESCRIPTION="Multiplayer FPS based on the QFusion engine (evolved from Quake 2)"
11
DESCRIPTION="Multiplayer FPS based on the QFusion engine (evolved from Quake 2)"
10
HOMEPAGE="http://www.warsow.net/"
12
HOMEPAGE="http://www.warsow.net/"
11
SRC_URI="http://static.warsow.net/release/${MY_P}_unified.zip
13
SRC_URI="http://www.zcdn.org/dl/${BASE_P}_unified.zip
12
	http://static.warsow.net/release/${MY_P}_sdk.zip
14
	http://www.zcdn.org/dl/${MY_P}_update.zip
15
	http://www.zcdn.org/dl/${MY_P}_sdk.zip
13
	mirror://gentoo/${PN}.png"
16
	mirror://gentoo/${PN}.png"
14
17
15
LICENSE="GPL-2 warsow"
18
LICENSE="GPL-2 warsow"
Lines 40-45 Link Here
40
43
41
S=${WORKDIR}/source
44
S=${WORKDIR}/source
42
45
46
src_unpack() {
47
	unpack ${A/${MY_P}_update.zip/}
48
	cd ${BASE_P}_unified || die
49
	unpack ${MY_P}_update.zip
50
}
51
43
src_prepare() {
52
src_prepare() {
44
	sed -i \
53
	sed -i \
45
		-e "/fs_basepath =/ s:\.:${GAMES_DATADIR}/${PN}:" \
54
		-e "/fs_basepath =/ s:\.:${GAMES_DATADIR}/${PN}:" \
Lines 53-61 Link Here
53
	cd "${WORKDIR}"
62
	cd "${WORKDIR}"
54
	rm -rf docs/old
63
	rm -rf docs/old
55
	epatch \
64
	epatch \
56
		"${FILESDIR}"/${P}-build.patch \
65
		"${FILESDIR}"/${PN}-0.6-build-game.patch \
57
		"${FILESDIR}"/${P}-openal.patch \
66
		"${FILESDIR}"/${PN}-0.6-build-no-start-scripts.patch \
58
		"${FILESDIR}"/${P}-pic.patch
67
		"${FILESDIR}"/${PN}-0.6-dont-delete-angelscript.patch \
68
		"${FILESDIR}"/${PN}-0.5-pic.patch
59
}
69
}
60
70
61
src_compile() {
71
src_compile() {
Lines 82-87 Link Here
82
		arch=i386
92
		arch=i386
83
	fi
93
	fi
84
94
95
	unset ARCH
85
	emake \
96
	emake \
86
		BASE_ARCH=${arch} \
97
		BASE_ARCH=${arch} \
87
		BINDIR=bin \
98
		BINDIR=bin \
Lines 114-134 Link Here
114
	doexe */*.so || die "doexe failed"
125
	doexe */*.so || die "doexe failed"
115
126
116
	insinto "${GAMES_DATADIR}"/${PN}
127
	insinto "${GAMES_DATADIR}"/${PN}
117
	doins -r "${WORKDIR}"/basewsw || die "doins failed"
128
	doins -r "${WORKDIR}/${BASE_P}_unified"/basewsw || die "doins failed"
129
130
	if [ -e libs ] ; then
131
		dodir "${GAMES_DATADIR}"/${PN}/libs || die "dodir failed"
132
	fi
118
133
119
	local so
134
	local so
120
	for so in basewsw/*.so ; do
135
	for so in basewsw/*.so ; do
121
		dosym "$(games_get_libdir)"/${PN}/${so##*/} \
136
		dosym "$(games_get_libdir)"/${PN}/${so##*/} \
122
			"${GAMES_DATADIR}"/${PN}/${so} || die "dosym ${so} failed"
137
			"${GAMES_DATADIR}"/${PN}/${so} || die "dosym ${so} failed"
123
	done
138
	done
124
139
	for so in libs/*.so ; do
125
	if [[ -e libs ]] ; then
140
		dosym "$(games_get_libdir)"/${PN}/${so##*/} \
126
		dodir "${GAMES_DATADIR}"/${PN}/libs
141
			"${GAMES_DATADIR}"/${PN}/${so} || die "dosym ${so} failed"
127
		for so in libs/*.so ; do
142
	done
128
			dosym "$(games_get_libdir)"/${PN}/${so##*/} \
129
				"${GAMES_DATADIR}"/${PN}/${so} || die "dosym ${so} failed"
130
		done
131
	fi
132
143
133
	dodoc "${WORKDIR}"/docs/*
144
	dodoc "${WORKDIR}"/docs/*
134
	prepgamesdirs
145
	prepgamesdirs

Return to bug 349349