# Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI=2 inherit eutils DESCRIPTION="Video website browser / viewer library needed for the VDR plugin vdr-webvideo" HOMEPAGE="http://users.tkk.fi/~aajanki/vdr/webvideo/" IUSE="+yle" SRC_URI="http://users.tkk.fi/~aajanki/vdr/webvideo/vdr-webvideo-${PV}.tgz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~x86" DEPEND="dev-lang/python dev-python/pycurl dev-libs/libxml2 dev-libs/libxslt yle? ( media-video/rtmpdump-yle ) " RDEPEND="${DEPEND}" S="${WORKDIR}/webvideo-${PV}" src_unpack() { unpack ${A} cd ${S} epatch ${FILESDIR}/${P}_prefix.diff if ! use yle; then rm -Rf templates/bin rm -Rf templates/yleareena fi } src_install() { if [ ${ARCH} = "amd64" ]; then dodir /usr/lib64 dosym lib64 /usr/lib fi cd ${S} PREFIX=${D}/usr emake install-library || die "failed install" dodoc HISTORY README* TODO doc/* if [ ${ARCH} = "amd64" ]; then rm ${D}/usr/lib fi }