# Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ DESCRIPTION="Real Media Player" HOMEPAGE="https://player.helixcommunity.org/2004/downloads/" SRC_URI="${P}-source.tar.bz2" LICENSE="RPSL" SLOT="0" KEYWORDS="~x86" IUSE="mozilla gnome kde" DEPEND="media-libs/libtheora media-libs/libogg" RDEPEND=">=dev-libs/glib-2 >=x11-libs/pango-1.2 >=x11-libs/gtk+-2.2" RESTRICT="nostrip fetch" inherit nsplugins eutils S=${WORKDIR}/realplay-${PV} pkg_nofetch() { einfo "Please go to ${HOMEPAGE}" einfo "Download ${A}(require login)" einfo "and place it in :" einfo "${DISTDIR}" einfo " " } src_compile() { cp ${FILESDIR}/buildrc ${S} export BUILDRC="${S}/buildrc" export BUILD_ROOT="${S}/build" export PATH="$PATH:${S}/build" python ${S}/build/bin/build -m bingo-gold -trelease -P helix-client-all-defines player_all_real || die } src_install() { dodir /opt/${PN} tar jxf ${S}/player/installer/archive/install.bz2 -C ${D}/opt/${PN} dodir /usr/bin dosym /opt/${PN}/realplay /usr/bin/realplay cd ${D}/opt/${PN}/share # KDE desktop entry if [ -n "${KDEDIR}" ] && use kde; then insinto ${KDEDIR}/${APPLNK} doins realplay.desktop fi # Gnome desktop entry if use gnome; then insinto /usr/share/applications doins realplay.desktop fi insinto /usr/share/pixmaps doins realplay.png # mozilla plugin if use mozilla ; then cd ${D}/opt/${PN}/mozilla exeinto /opt/netscape/plugins doexe nphelix.so inst_plugin /opt/netscape/plugins/nphelix.so fi }