summaryrefslogtreecommitdiff
blob: 3d34e4873e716c42853cbeeda80db68e10e53067 (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
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-video/realplayer/realplayer-8-r2.ebuild,v 1.5 2002/11/08 22:03:45 seemant Exp $

S=${WORKDIR}/usr
DESCRIPTION="Real Player 8 basic"
SRC_URI="rp8_linux20_libc6_i386_cs2_rpm"
HOMEPAGE="http://forms.real.com/real/player/unix/unix.html"

DEPEND="app-arch/rpm2targz"
RDEPEND="virtual/x11"
RESTRICT="fetch"

LICENSE="realplayer8"
SLOT="0"
KEYWORDS="x86 -ppc -sparc -sparc64"

dyn_fetch() {
	for y in ${A} 
	do
		digest_check ${y}
			if [ $? -ne 0 ]; then
				einfo "Please download this yourself from www.real.com"
   			einfo "and place it in ${DISTDIR}"
				exit 1
			fi
	done
}

src_unpack() {
	# You must download rp8_linux20_libc6_i386_cs2_rpm 
	# from real.com and put it in ${DISTDIR}
	rpm2targz ${DISTDIR}/${A}
}

src_install () {

	insinto /opt/RealPlayer8/Codecs
	doins lib/RealPlayer8/Codecs/*
	insinto /opt/RealPlayer8/Common
	doins lib/RealPlayer8/Common/*
	insinto /opt/RealPlayer8/Plugins
	doins lib/RealPlayer8/Plugins/*
	insinto /opt/RealPlayer8/Plugins/netscape
	doins lib/netscape/plugins/*
	insinto /opt/RealPlayer8/
	doins lib/RealPlayer8/*.xpm
	doins lib/RealPlayer8/*.rm
	doins lib/RealPlayer8/rpminstalled
	doins lib/RealPlayer8/LICENSE
	exeinto /opt/RealPlayer8
	doexe lib/RealPlayer8/*.sh
	doexe lib/RealPlayer8/realplay
	#cd ${D}/lib/netscape/plugins
	#unzip raclass.zip
	#rm raclass.zip
	insinto /etc/env.d
	doins ${FILESDIR}/10realplayer	

	dodir /opt/netscape/plugins
	for x in raclass.zip rpnp.so
	do
		dosym /opt/RealPlayer8/Plugins/netscape/${x} \
			/opt/netscape/plugins/${x}
	done

	if [ "`use mozilla`" ]
	then
		dodir /usr/lib/mozilla/plugins
		for x in raclass.zip rpnp.so
		do
			dosym /opt/RealPlayer8/Plugins/netscape/${x} \
				/usr/lib/mozilla/plugins/${x}
		done
	fi
}