All pastes #1792586 Raw Edit

vdr-eepg-0.0.3.ebuild

public shellscript v1 · immutable
#1792586 ·published 2010-02-10 14:35 UTC
rendered paste body
# Copyright 2003-2010 Gentoo Foundation# Distributed under the terms of the GNU General Public License v2# $Header: Exp $inherit vdr-pluginDESCRIPTION="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"@<vdr/libsi/si.h>@' || die "Failed to patch relative path for libsi/si.h"        fi        sed -i eepg.c -e 's@"../tools.h"@<vdr/tools.h>@' || die "Failed to patch relative path for tools.h"        sed -i eepg.c -e 's@<libsi/@<vdr/libsi/@' || die "Failed to patch relative libsi paths"        vdr-plugin_src_prepare}src_install() {        vdr-plugin_src_install        dodoc TODO}need_vdr_sources() {        if has_version "<media-video/vdr-1.7.13" ; then                return 0        else                return 1        fi}