blob: efa7f6f2a7a0e32ee80ee42d9b44a2ad067bf4d0 (
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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
|
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-video/realplayer/realplayer-8-r6.ebuild,v 1.13 2004/07/01 08:41:47 eradicator Exp $
inherit nsplugins
IUSE="kde gnome"
DESCRIPTION="RealPlayer 8 is a streaming media player"
HOMEPAGE="http://forms.real.com/real/player/unix/unix.html"
# !! READ THIS !!
# Due to fetch restrictions, you need to go to the above URL and fill out the
# form in order to be able to download the binary. When done, you should copy
# or move the binary into /usr/portage/distfiles. No need to chmod +x
if use x86; then
MY_A="rp8_linux20_libc6_i386_cs2.bin"
elif use ppc; then
MY_A="rp8_linux_powerpc_cs1.bin"
elif use sparc; then
MY_A="rp8_linux_sparc_cs1.bin"
elif use alpha; then
MY_A="rp8_linux_alpha_rh62_cs1.bin"
fi
SRC_URI="x86? ( http://docs.real.com/docs/playerpatch/unix/rv9_libc6_i386_cs2.tgz )
x86? ( rp8_linux20_libc6_i386_cs2.bin )
ppc? ( rp8_linux_powerpc_cs1.bin )
sparc? ( rp8_linux_sparc_cs1.bin )
alpha? ( rp8_linux_alpha_rh62_cs1.bin )"
LICENSE="realplayer8"
SLOT="0"
KEYWORDS="x86 ppc ~sparc ~alpha"
# Fix for bug 15314
DEPEND="virtual/libc
sparc? ( sys-libs/lib-compat )"
RDEPEND="virtual/x11"
RESTRICT="nostrip fetch"
BASE="/opt/RealPlayer8"
S=${WORKDIR}
# note: we don't use pkg_nofetch because there is one file we can autofetch
# without the license
pkg_setup() {
if [ ! -f ${DISTDIR}/${MY_A} ]; then
eerror "Please go to:"
eerror "http://forms.real.com/real/player/unix/unix.html"
eerror "And download the appropriate realplayer binary installer"
eerror "for this architecture: ${ARCH}"
use x86 && \
eerror "Please note, do NOT download the rpm. Just the .bin file"
eerror "Named Linux 2.x (libc6 i386)"
eerror ""
eerror "Download ${MY_A} and place it in ${DISTDIR}"
eerror "Then emerge this package again"
exit 1
fi
}
src_unpack() {
if [ ! -r "${DISTDIR}/${MY_A}" ]; then
eerror "${DISTDIR}/${MY_A} is not readable. Please check the permissions"
die "unreadable ${MY_A}"
fi
if use x86 ; then
BYTECOUNT=4799691
RP8_BIN=`echo ${MY_A} | awk '{ print $1 }'`
RV9_X86=`echo ${MY_A} | awk '{ print $2 }'`
else
RP8_BIN=${MY_A}
if use ppc ; then BYTECOUNT=7260910
elif use alpha ; then BYTECOUNT=7130860
elif use sparc ; then BYTECOUNT=6375000
fi
fi
tail -c ${BYTECOUNT} ${DISTDIR}/${RP8_BIN} | tar xz 2> /dev/null
if use x86 ; then
unpack ${RV9_X86}
fi
}
src_compile() {
einfo "Nothing to Compile, this is a binary package"
}
src_install () {
insinto ${BASE}/Codecs
doins Codecs/*
if [ -d rv9/codecs ] ; then
doins rv9/codecs/drv4.so.6.0 rv9/codecs/rv40.so.6.0
fi
insinto ${BASE}/Common
doins Common/*
insinto ${BASE}/Plugins/ExtResources
doins Plugins/ExtResources/*
insinto ${BASE}/Plugins
doins Plugins/*.so.6.0
insinto ${BASE}
doins *.xpm *.png *.rm rpnp.so LICENSE README ${FILESDIR}/mimeinfo
exeinto ${BASE}
doexe realplay
dodir /opt/bin
dosym ${BASE}/realplay /opt/bin
# NS plugin
for b in /opt/netscape /usr/lib/mozilla /usr/lib/nsbrowser
do
if [ -d ${b} ] ; then
dodir ${b}/plugins
dosym ${BASE}/rpnp.so ${b}/plugins
fi
done
# Desktop menu entry ; KDE, Gnome
if use kde ; then
insinto /usr/share/applnk/Multimedia
doins ${FILESDIR}/realplayer.desktop
fi
if use gnome ; then
insinto /usr/share/applications
doins ${FILESDIR}/realplayer.desktop
fi
cp rp7.xpm realplayer8.xpm
insinto /usr/share/pixmaps
doins realplayer8.xpm
# Mimetypes - Intentionally left blank (for now)
# Better not use the provided scripts from Real, they are outdated
# See ${BASE}/mimeinfo for the correct mimetypes if you need them
}
pkg_postinst() {
echo
einfo "Finished installing RealPlayer8 into ${BASE}"
einfo "You can start the player by running 'realplay'"
einfo "You have to agree to the terms in ${BASE}/LICENSE or unmerge"
echo
}
|