# Copyright 2003-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: Exp $ inherit vdr-plugin DESCRIPTION="VDR plugin: parses extended (2 to 10 day) EPG data which is send by providers on their portal channels in a non-standard format on a non-standard PID" HOMEPAGE="http://www.vdr-portal.de" SRC_URI="http://rapidshare.com/files/227513855/${VDRPLUGIN}-${PV}.tgz" EAPI="2" SLOT="0" LICENSE="GPL-2" KEYWORDS="~x86 ~amd64" IUSE="" DEPEND=">=media-video/vdr-1.4.1 net-misc/wget" src_unpack() { # ugly hack for vdr versions before of which the sources are needed to include libsi/si.c if need_vdr_sources; then if ! [ -f ${PORTAGE_ACTUAL_DISTDIR}/vdr-${VDRVERSION}.tar.bz2 ]; then wget --directory-prefix="${DISTDIR}" ftp://ftp.tvdr.de/vdr/vdr-${VDRVERSION}.tar.bz2 wget --directory-prefix="${DISTDIR}" ftp://ftp.tvdr.de/vdr/Developer/vdr-${VDRVERSION}.tar.bz2 else ln -s ${PORTAGE_ACTUAL_DISTDIR}/vdr-${VDRVERSION}.tar.bz2 ${DISTDIR}/vdr-${VDRVERSION}.tar.bz2 fi unpack vdr-${VDRVERSION}.tar.bz2 cd ${WORKDIR} ln -s vdr-${VDRVERSION} vdr cd ${S} fi vdr-plugin_src_unpack } src_prepare() { if need_vdr_sources; then sed -i eepg.c -e 's@"../../../libsi/si.c"@"../vdr/libsi/si.h"@' || die "Failed to patch relative path for libsi/si.c" else sed -i eepg.c -e 's@"../../../libsi/si.c"@@' || die "Failed to patch relative path for libsi/si.h" fi sed -i eepg.c -e 's@"../tools.h"@@' || die "Failed to patch relative path for tools.h" sed -i eepg.c -e 's@