| 1 |
# Copyright 1999-2012 Gentoo Foundation
|
| 2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
# $Header: /var/cvsroot/gentoo-x86/games-rpg/vendetta-online-bin/vendetta-online-bin-1.8.82.ebuild,v 1.4 2010/07/13 15:23:49 mr_bones_ Exp $
|
| 4 |
|
| 5 |
EAPI=2
|
| 6 |
inherit eutils unpacker games
|
| 7 |
|
| 8 |
DESCRIPTION="Space-based MMORPG"
|
| 9 |
HOMEPAGE="http://www.vendetta-online.com/"
|
| 10 |
SRC_URI="amd64? (
|
| 11 |
http://mirror.cle.vendetta-online.com/vendetta-linux-amd64-installer.sh
|
| 12 |
-> ${P}-amd64.sh
|
| 13 |
)
|
| 14 |
x86? (
|
| 15 |
http://mirror.cle.vendetta-online.com/vendetta-linux-ia32-installer.sh
|
| 16 |
-> ${P}-x86.sh
|
| 17 |
)"
|
| 18 |
|
| 19 |
LICENSE="guild"
|
| 20 |
SLOT="0"
|
| 21 |
KEYWORDS="-* amd64 x86"
|
| 22 |
IUSE=""
|
| 23 |
RESTRICT="mirror strip"
|
| 24 |
|
| 25 |
RDEPEND="virtual/opengl
|
| 26 |
x11-libs/gtk+:2"
|
| 27 |
|
| 28 |
S=${WORKDIR}
|
| 29 |
|
| 30 |
src_unpack() {
|
| 31 |
unpack_makeself
|
| 32 |
}
|
| 33 |
|
| 34 |
src_install() {
|
| 35 |
local dir=${GAMES_PREFIX_OPT}/${PN}
|
| 36 |
|
| 37 |
insinto "${dir}"
|
| 38 |
doins -r * || die "doins failed"
|
| 39 |
fperms +x "${dir}"/{vendetta,install/{media.rlb,update.rlb,vendetta}} \
|
| 40 |
|| die "fperms failed"
|
| 41 |
|
| 42 |
sed \
|
| 43 |
-e "s:DATADIR:${dir}:" \
|
| 44 |
"${FILESDIR}"/vendetta > "${T}"/vendetta \
|
| 45 |
|| die "sed failed"
|
| 46 |
|
| 47 |
dogamesbin "${T}"/vendetta || die "dogamesbin failed"
|
| 48 |
newicon install/manual/images/ships.valkyrie.jpg ${PN}.jpg
|
| 49 |
make_desktop_entry vendetta "Vendetta Online" /usr/share/pixmaps/${PN}.jpg
|
| 50 |
|
| 51 |
prepgamesdirs
|
| 52 |
}
|