mirror of
https://github.com/macports/macports-ports.git
synced 2026-07-12 18:20:25 -07:00
67 lines
2.2 KiB
Tcl
67 lines
2.2 KiB
Tcl
# -*- 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
|
|
|
|
PortSystem 1.0
|
|
PortGroup perl5 1.0
|
|
PortGroup github 1.0
|
|
|
|
github.setup get-iplayer get_iplayer 3.36 v
|
|
github.tarball_from archive
|
|
revision 0
|
|
categories net multimedia
|
|
maintainers {gmail.com:davide.liessi @dliessi} openmaintainer
|
|
platforms any
|
|
supported_archs noarch
|
|
license GPL-3+
|
|
|
|
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 4c4d2afcd8b324aacba5dfd8f5652aac80550ba3 \
|
|
sha256 9a70383143b6e3f43ee079f551b7f5719037ada86eb48d9defc66e00e619d996 \
|
|
size 150345
|
|
|
|
perl5.major 5.34
|
|
|
|
depends_run port:perl${perl5.major} \
|
|
port:p${perl5.major}-libwww-perl \
|
|
port:p${perl5.major}-lwp-protocol-https \
|
|
port:p${perl5.major}-mojolicious \
|
|
port:p${perl5.major}-xml-libxml \
|
|
port:AtomicParsley \
|
|
path:bin/ffmpeg:ffmpeg
|
|
|
|
post-patch {
|
|
reinplace "s|#!/usr/bin/env perl|#!${perl5.bin}|g" \
|
|
${worksrcpath}/get_iplayer
|
|
reinplace "s|/etc|${prefix}/etc|g" \
|
|
${worksrcpath}/get_iplayer
|
|
}
|
|
|
|
use_configure no
|
|
build {}
|
|
|
|
destroot {
|
|
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} \
|
|
CHANGELOG.md \
|
|
CONTRIBUTORS \
|
|
LICENSE.txt \
|
|
README.md \
|
|
${destroot}${prefix}/share/doc/${name}
|
|
}
|
|
|
|
notes-append \
|
|
"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\
|
|
for more details."
|