# Copyright 1999-2004 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit nsplugins eutils rpm SRC_URI="x86? ( https://helixcommunity.org/beula/download?loc=/download.php/394/realplay-${PV}-linux-2.2-libc6-gcc32-i586.tar.bz2 ) ppc? ( https://helixcommunity.org/download.php/490/RealPlayer-${PV}-20040615.ppc.rpm )" DESCRIPTION="Real Player 10 Beta" HOMEPAGE="https://player.helixcommunity.org" LICENSE="helixdna" SLOT="0" KEYWORDS="~x86 ~ppc" IUSE="" DEPEND="virtual/x11 >=x11-libs/gtk+-2.2.0 media-libs/libvorbis media-libs/libogg media-libs/faad2 !media-video/helixplayer-bin" RESTRICT="nostrip fetch" if [ "${ARCH}" = "ppc" ] then S="${WORKDIR}/usr/local/RealPlayer" else S="${WORKDIR}/RealPlayer" fi src_unpack () { if [ "${ARCH}" = "ppc" ] then rpm_unpack ${DISTDIR}/${A} else unpack ${A} fi } src_install () { mkdir -p ${D}/opt cp -a ${S} ${D}/opt mkdir -p ${D}/usr/bin dosym /opt/RealPlayer/realplay /usr/bin/realplay # Install the Mozilla plugin inst_plugin /opt/RealPlayer/mozilla/nphelix.so inst_plugin /opt/RealPlayer/mozilla/nphelix.xpt # Desktop menu entry insinto /usr/share/pixmaps newins ${S}/share/realplay/icon.xpm realplayer.xpm make_desktop_entry realplay "Real Player" realplayer.xpm AudioVideo }