# Copyright 1999-2002 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: /home/cvsroot/gentoo-x86/media-video/realplayer/realplayer-8-r2.ebuild,v 1.4 2002/10/04 05:56:57 vapier Exp $ S=${WORKDIR}/usr RV9_PATCH="rv9_libc6_i386_cs2.tgz" RP8_RPM="rp8_linux20_libc6_i386_cs2_rpm" DESCRIPTION="Real Player 8 basic with RV9 support" SRC_URI="${RP8_RPM} http://docs.real.com/docs/playerpatch/unix/${RV9_PATCH}" HOMEPAGE="http://forms.real.com/real/player/unix/unix.html" DEPEND=">=app-arch/rpm-3.0.6" RDEPEND="virtual/x11" RESTRICT="fetch" LICENSE="realplayer8" SLOT="0" KEYWORDS="~x86 -ppc -sparc -sparc64" dyn_fetch() { for i in ${RP8_RPM} ${RV9_PATCH} do digest_check ${i} if [ $? -ne 0 ]; then einfo "Please download ${i} 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} rpm2cpio ${DISTDIR}/${RP8_RPM} | cpio -i --make-directories tar xfz ${DISTDIR}/${RV9_PATCH} } src_install () { insinto /opt/RealPlayer8/Codecs doins lib/RealPlayer8/Codecs/* doins ../rv9/codecs/drv4.so.6.0 ../rv9/codecs/rv40.so.6.0 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 }