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

(-)../../../gentoo/games-fps/warsow/warsow-0.5-r1.ebuild (-15 / +17 lines)
Lines 1-6 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
Lines 8-15 Link Here
8
MY_P=${PN}_${PV}
8
MY_P=${PN}_${PV}
9
DESCRIPTION="Multiplayer FPS based on the QFusion engine (evolved from Quake 2)"
9
DESCRIPTION="Multiplayer FPS based on the QFusion engine (evolved from Quake 2)"
10
HOMEPAGE="http://www.warsow.net/"
10
HOMEPAGE="http://www.warsow.net/"
11
SRC_URI="http://static.warsow.net/release/${MY_P}_unified.zip
11
SRC_URI="http://www.zcdn.org/dl/${MY_P}_unified.zip
12
	http://static.warsow.net/release/${MY_P}_sdk.zip
12
	http://www.zcdn.org/dl/${MY_P}_sdk.zip
13
	mirror://gentoo/${PN}.png"
13
	mirror://gentoo/${PN}.png"
14
14
15
LICENSE="GPL-2 warsow"
15
LICENSE="GPL-2 warsow"
Lines 53-61 Link Here
53
	cd "${WORKDIR}"
53
	cd "${WORKDIR}"
54
	rm -rf docs/old
54
	rm -rf docs/old
55
	epatch \
55
	epatch \
56
		"${FILESDIR}"/${P}-build.patch \
56
		"${FILESDIR}"/${PN}-0.6-build-game.patch \
57
		"${FILESDIR}"/${P}-openal.patch \
57
		"${FILESDIR}"/${PN}-0.6-build-no-start-scripts.patch \
58
		"${FILESDIR}"/${P}-pic.patch
58
		"${FILESDIR}"/${PN}-0.6-dont-delete-angelscript.patch \
59
		"${FILESDIR}"/${PN}-0.5-pic.patch
59
}
60
}
60
61
61
src_compile() {
62
src_compile() {
Lines 82-87 Link Here
82
		arch=i386
83
		arch=i386
83
	fi
84
	fi
84
85
86
	unset ARCH
85
	emake \
87
	emake \
86
		BASE_ARCH=${arch} \
88
		BASE_ARCH=${arch} \
87
		BINDIR=bin \
89
		BINDIR=bin \
Lines 114-134 Link Here
114
	doexe */*.so || die "doexe failed"
116
	doexe */*.so || die "doexe failed"
115
117
116
	insinto "${GAMES_DATADIR}"/${PN}
118
	insinto "${GAMES_DATADIR}"/${PN}
117
	doins -r "${WORKDIR}"/basewsw || die "doins failed"
119
	doins -r "${WORKDIR}/${MY_P}_unified"/basewsw || die "doins failed"
120
121
	if [ -e libs ] ; then
122
		dodir "${GAMES_DATADIR}"/${PN}/libs || die "dodir failed"
123
	fi
118
124
119
	local so
125
	local so
120
	for so in basewsw/*.so ; do
126
	for so in basewsw/*.so ; do
121
		dosym "$(games_get_libdir)"/${PN}/${so##*/} \
127
		dosym "$(games_get_libdir)"/${PN}/${so##*/} \
122
			"${GAMES_DATADIR}"/${PN}/${so} || die "dosym ${so} failed"
128
			"${GAMES_DATADIR}"/${PN}/${so} || die "dosym ${so} failed"
123
	done
129
	done
124
130
	for so in libs/*.so ; do
125
	if [[ -e libs ]] ; then
131
		dosym "$(games_get_libdir)"/${PN}/${so##*/} \
126
		dodir "${GAMES_DATADIR}"/${PN}/libs
132
			"${GAMES_DATADIR}"/${PN}/${so} || die "dosym ${so} failed"
127
		for so in libs/*.so ; do
133
	done
128
			dosym "$(games_get_libdir)"/${PN}/${so##*/} \
129
				"${GAMES_DATADIR}"/${PN}/${so} || die "dosym ${so} failed"
130
		done
131
	fi
132
134
133
	dodoc "${WORKDIR}"/docs/*
135
	dodoc "${WORKDIR}"/docs/*
134
	prepgamesdirs
136
	prepgamesdirs

Return to bug 349349