# 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-r7.ebuild,v 1.5 2004/07/01 08:41:47 eradicator Exp $ inherit nsplugins RESTRICT="nostrip fetch" DESCRIPTION="RealPlayer 8 is a streaming media player" HOMEPAGE="https://player.helixcommunity.org/2004/downloads/" SRC_URI="RealPlayer10GOLD.tar.bz2" LICENSE="" SLOT="0" KEYWORDS="~x86" IUSE="kde gnome" DEPEND="virtual/libc" RDEPEND="virtual/x11" BASE="opt/RealPlayer10" S=${WORKDIR} pkg_nofetch() { use x86 && REAL_OS="Linux 2.x (libc6 i386)" einfo "Please go to ${HOMEPAGE}" einfo "and download the appropriate realplayer binary installer" einfo "for OS type : ${REAL_OS}" einfo " " einfo "Download ${A} and place it in :" einfo "${DISTDIR}" einfo " " use x86 && \ ewarn "Please note, do NOT download the rpm, just the .bin file" } src_unpack() { return } src_compile() { return } src_install () { dodir ${BASE} tar xfj ${DISTDIR}/${A} -C ${D}/${BASE} # NS plugin for b in /opt/netscape /usr/lib/mozilla /usr/lib/nsbrowser do if [ -d ${b} ] ; then dodir ${b}/plugins dosym /${BASE}/mozilla/nphelix.so ${b}/plugins fi done # Desktop menu entry ; KDE, Gnome if use kde ; then insinto /usr/share/applnk/Multimedia doins ${D}/${BASE}/share/realplay.desktop fi if use gnome ; then insinto /usr/share/applications doins ${D}/${BASE}/share/realplay.desktop fi insinto /usr/share/icons doins ${D}/${BASE}/share/realplay.png dodir /usr/bin dosym /${BASE}/realplay /usr/bin/realplay # 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 RealPlayer10 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 einfo "If you are using arts, you should start realplayer using:" einfo " artsdsp realplay" echo }