# Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils DESCRIPTION="Octoshape is a plug-in for p2p-streaming technology." HOMEPAGE="http://www.octoshape.com/plugin/linux.asp" SRC_URI="http://www.octoshape.com/play/files/octosetup-linux_i386.bin" LICENSE="octoshape-eula-streamingservices" SLOT="0" KEYWORDS="x86" IUSE="" RESTRICT="fetch strip" DEPEND="" RDEPEND="${DEPEND} media-video/mplayer " # Source directory; the dir where the sources can be found (automatically # unpacked) inside ${WORKDIR}. The default value for S is ${WORKDIR}/${P} # If you don't need to change it, leave the S= line out of the ebuild # to keep it tidy. S="${WORKDIR}/${PN}" src_unpack() { ZIPFILE=octosetup-linux_i386.zip tail -n +316 ${DISTDIR}/${A} | tr QP PQ >${WORKDIR}/${ZIPFILE} mkdir ${S} ; cd ${S} unzip -q ../${ZIPFILE} } src_compile() { einfo "Binary package, nothing to compile" } src_install() { cd ${S} dodoc EULA_en.rtf dodir /usr/lib/octoshape-client/octoprogram-L03-NMS0810164_SUA_900 insinto /usr/lib/octoshape-client/octoprogram-L03-NMS0810164_SUA_900 for f in octoprogram-L03-NMS0810164_SUA_900/* ; do doins $f done chmod 0755 ${D}/usr/lib/octoshape-client/octoprogram-L03-NMS0810164_SUA_900/OctoshapeClientSUA dodir /usr/lib/octoshape-client/octoprogram-L03-NMS0810164-U01_SUA_900 insinto /usr/lib/octoshape-client/octoprogram-L03-NMS0810164-U01_SUA_900 for f in octoprogram-L03-NMS0810164-U01_SUA_900/* ; do doins $f done insopts -m0755 insinto /usr/lib/octoshape-client doins OctoshapeClient dosym /usr/lib/octoshape-client/OctoshapeClient /usr/bin/OctoshapeClient } pkg_postinst() { einfo "To start streaming, run the Octoshape clienst as such:" einfo " OctoshapeClient -url:XYZ" einfo "where XYZ is the stream id e.g. as provided at" einfo " http://www.octoshape.com/play/play.asp?os=linux" einfo "(column \"Play\")" }