--- /home/stefan/RealPlayer-10.0.1.ebuild 2004-10-30 08:53:00.000000000 +0200 +++ realplayer-10.0.1.ebuild 2004-10-30 09:16:39.000000000 +0200 @@ -2,9 +2,10 @@ # Distributed under the terms of the GNU General Public License v2 # $Header: $ +MY_PN="RealPlayer" DESCRIPTION="Real Media Player" HOMEPAGE="https://player.helixcommunity.org/2004/downloads/" -SRC_URI="${P}-source.tar.bz2" +SRC_URI="${MY_PN}-${PV}-source.tar.bz" LICENSE="RPSL" SLOT="0" KEYWORDS="~x86" @@ -28,8 +29,12 @@ einfo " " } +src_unpack() { + tar xjf ${DISTDIR}/${A} +} + src_compile() { - cp ${FILESDIR}/buildrc ${S} + echo 'SetSDKPath("oggvorbissdk", "/usr")' > buildrc export BUILDRC="${S}/buildrc" export BUILD_ROOT="${S}/build" export PATH="$PATH:${S}/build" @@ -38,13 +43,13 @@ } src_install() { - dodir /opt/${PN} - tar jxf ${S}/player/installer/archive/install.bz2 -C ${D}/opt/${PN} + dodir /opt/${MY_PN} + tar jxf ${S}/player/installer/archive/install.bz2 -C ${D}/opt/${MY_PN} dodir /usr/bin - dosym /opt/${PN}/realplay /usr/bin/realplay + dosym /opt/${MY_PN}/realplay /usr/bin/realplay - cd ${D}/opt/${PN}/share + cd ${D}/opt/${MY_PN}/share # KDE desktop entry if [ -n "${KDEDIR}" ] && use kde; then insinto ${KDEDIR}/${APPLNK} @@ -62,7 +67,7 @@ # mozilla plugin if use mozilla ; then - cd ${D}/opt/${PN}/mozilla + cd ${D}/opt/${MY_PN}/mozilla exeinto /opt/netscape/plugins doexe nphelix.so inst_plugin /opt/netscape/plugins/nphelix.so