# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
github.setup get-iplayer get_iplayer 3.13 v
categories net multimedia
maintainers {gmail.com:davide.liessi @dliessi} openmaintainer
description A utility for downloading TV and radio from BBC iPlayer
long_description ${description}. \
\nThis port does not install the Web PVR Manager (get_iplayer.cgi).
checksums rmd160 8d5b41ae5a98e4f68e4218f0656d2c76b4f4decc \
sha256 9849c7486e48129654baa8b4100bd26d18823b62f289a66580de36a81fd513cc
depends_run port:perl${perl5.major} \
port:p${perl5.major}-libwww-perl \
port:p${perl5.major}-mojolicious \
port:p${perl5.major}-xml-libxml \
reinplace "s|#!/usr/bin/env perl|#!${perl5.bin}|g" \
${worksrcpath}/get_iplayer
reinplace "s|/etc|${prefix}/etc|g" \
${worksrcpath}/get_iplayer
xinstall -d ${destroot}${prefix}/bin
xinstall -m 755 ${worksrcpath}/get_iplayer ${destroot}${prefix}/bin
xinstall -d ${destroot}${prefix}/share/man/man1
xinstall -m 644 ${worksrcpath}/get_iplayer.1 ${destroot}${prefix}/share/man/man1
xinstall -d ${destroot}${prefix}/share/doc/${name}
xinstall -m 644 -W ${worksrcpath} \
${destroot}${prefix}/share/doc/${name}
"Use of get_iplayer outside the UK is not supported,\
with the exception of downloading lower-quality (96k and 48k)\
radio programmes that are available to international users.
See http://iplayerhelp.external.bbc.co.uk/tv/outsideuk\