[149946] trunk/dports/net

devans at macports.org devans at macports.org
Wed Jul 6 07:58:25 PDT 2016


Revision: 149946
          https://trac.macports.org/changeset/149946
Author:   devans at macports.org
Date:     2016-07-06 07:58:25 -0700 (Wed, 06 Jul 2016)
Log Message:
-----------
get_iplayer: new maintainer submission, a utility for downloading TV and radio from BBC iPlayer (#51667).

Added Paths:
-----------
    trunk/dports/net/get_iplayer/
    trunk/dports/net/get_iplayer/Portfile

Added: trunk/dports/net/get_iplayer/Portfile
===================================================================
--- trunk/dports/net/get_iplayer/Portfile	                        (rev 0)
+++ trunk/dports/net/get_iplayer/Portfile	2016-07-06 14:58:25 UTC (rev 149946)
@@ -0,0 +1,85 @@
+# -*- 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
+# $Id$
+
+PortSystem          1.0
+PortGroup           perl5 1.0
+PortGroup           github 1.0
+
+github.setup        get-iplayer get_iplayer 2.94 v
+categories          net multimedia
+platforms           darwin
+maintainers         gmail.com:davide.liessi openmaintainer
+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  5f43f5840ad2eb6c07a8c95effa5bf1d6f100a6b \
+                    sha256  06caa8f96ad6fba53c3a7f97400a5701d013d3edee1658a6e0a3cbed4f94ae57
+
+perl5.require_variant   yes
+perl5.conflict_variants yes
+perl5.branches          5.22 5.24
+perl5.create_variants   ${perl5.branches}
+
+depends_run         port:perl${perl5.major} \
+                    port:p${perl5.major}-libwww-perl \
+                    port:p${perl5.major}-xml-simple \
+                    port:p${perl5.major}-mp3-tag \
+                    port:p${perl5.major}-mp3-info \
+                    port:p${perl5.major}-net-smtp-tls-butmaintained \
+                    port:p${perl5.major}-net-smtp-ssl \
+                    port:p${perl5.major}-authen-sasl \
+                    port:rtmpdump \
+                    port:atomicparsley \
+                    port:id3v2 \
+                    path:bin/ffmpeg:ffmpeg
+
+post-patch {
+    reinplace "s|#!/usr/bin/env perl|#!${perl5.bin}|g" \
+        ${worksrcpath}/get_iplayer
+    reinplace "s|/usr/share|${prefix}/share|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.txt \
+        CONTRIBUTORS \
+        LICENSE.txt \
+        README.md \
+        ${destroot}${prefix}/share/doc/${name}
+
+    xinstall -d ${destroot}${prefix}/share/${name}/plugins
+    xinstall -m 644 {*}[glob ${worksrcpath}/plugins/*.plugin] \
+        ${destroot}${prefix}/share/${name}/plugins
+    xinstall -m 644 ${worksrcpath}/plugins/plugin.template \
+        ${destroot}${prefix}/share/${name}/plugins
+
+    xinstall -d ${destroot}${prefix}/etc/${name}
+    set optionsfile [open ${destroot}${prefix}/etc/${name}/options w]
+    puts ${optionsfile} "packagemanager MacPorts"
+    close ${optionsfile}
+}
+
+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."


Property changes on: trunk/dports/net/get_iplayer/Portfile
___________________________________________________________________
Added: svn:keywords
   + Id
Added: svn:eol-style
   + native
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160706/f071af19/attachment.html>


More information about the macports-changes mailing list