summaryrefslogtreecommitdiff
blob: cba967077f45d5699462d67fe77350eac49f7f33 (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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit games

MY_P="SecondLife_i686_${PV//./_}"

DESCRIPTION="A 3D MMORPG virtual world entirely built and owned by its residents"
HOMEPAGE="http://secondlife.com/"
SRC_URI="http://secondlife.com/downloads/viewer/${MY_P}.tar.bz2"

LICENSE="as-is"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
RESTRICT="mirror strip"

dir="${GAMES_PREFIX_OPT}/secondlife"
QA_EXECSTACK="${dir:1}/bin/do-not-directly-run-secondlife-bin
	${dir:1}/lib/libGLU.so.1
	${dir:1}/lib/libkdu_v42R.so
	${dir:1}/lib/libcrypto.so.0.9.7
	${dir:1}/lib/libfmod-3.75.so
	${dir:1}/app_settings/mozilla-runtime-linux-i686/libxul.so"
QA_TEXTRELS="${dir:1}/lib/libfreetype.so.6
	${dir:1}/lib/libcrypto.so.0.9.7
	${dir:1}/lib/libGLU.so.1
	${dir:1}/lib/libkdu_v42R.so
	${dir:1}/lib/libfmod-3.75.so
	${dir:1}/lib/libelfio.so
	${dir:1}/lib/libSDL-1.2.so.0
	${dir:1}/lib/libcurl.so.4
	${dir:1}/app_settings/mozilla-runtime-linux-i686/libxul.so"

RDEPEND="sys-libs/glibc
	media-fonts/kochi-substitute
	x86? ( 
		x11-libs/libX11
		x11-libs/libXau
		x11-libs/libXdmcp
		x11-libs/libXext
		dev-libs/libgcrypt
		dev-libs/libgpg-error
		dev-libs/openssl
		media-libs/freetype
		media-libs/libogg
		media-libs/libsdl
		media-libs/libvorbis
		net-libs/gnutls
		net-misc/curl
		sys-libs/zlib
		virtual/glu
		virtual/opengl
	)
	amd64? (
		app-emulation/emul-linux-x86-sdl
		app-emulation/emul-linux-x86-gtklibs
	)"

S=${WORKDIR}/${MY_P}

src_unpack() {
	unpack ${A}

	cd "${S}"
	rm unicode.ttf
}

src_install() {
	exeinto "${dir}"
	doexe launch_url.sh linux-crash-logger.bin secondlife || die
	rm -rf launch_url.sh linux-crash-logger.bin secondlife

	exeinto "${dir}"/bin
	doexe bin/do-not-directly-run-secondlife-bin || die
	rm -rf bin

	exeinto "${dir}"/lib
	doexe lib/* || die
	rm -rf lib

	insinto "${dir}"
	doins -r * || die "doins * failed"

	dosym /usr/share/fonts/kochi-substitute/kochi-mincho-subst.ttf "${dir}"/unicode.ttf

	games_make_wrapper secondlife-bin ./secondlife "${dir}" "${dir}"/lib
	newicon secondlife.ico secondlife-bin.ico
	make_desktop_entry secondlife-bin "Second Life(bin)" secondlife-bin.ico

	prepgamesdirs
}