1 | # -*- 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 |
---|
2 | # $Id$ |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | PortGroup perl5 1.0 |
---|
6 | PortGroup github 1.0 |
---|
7 | |
---|
8 | github.setup get-iplayer get_iplayer 2.94 v |
---|
9 | categories net multimedia |
---|
10 | platforms darwin |
---|
11 | maintainers gmail.com:davide.liessi openmaintainer |
---|
12 | supported_archs noarch |
---|
13 | license GPL-3+ |
---|
14 | |
---|
15 | description A utility for downloading TV and radio from BBC iPlayer |
---|
16 | long_description ${description}. \ |
---|
17 | \nThis port does not install the Web PVR Manager (get_iplayer.cgi). |
---|
18 | |
---|
19 | checksums rmd160 5f43f5840ad2eb6c07a8c95effa5bf1d6f100a6b \ |
---|
20 | sha256 06caa8f96ad6fba53c3a7f97400a5701d013d3edee1658a6e0a3cbed4f94ae57 |
---|
21 | |
---|
22 | perl5.branches 5.22 |
---|
23 | |
---|
24 | depends_run port:perl${perl5.major} \ |
---|
25 | port:p${perl5.major}-libwww-perl \ |
---|
26 | port:p${perl5.major}-xml-simple \ |
---|
27 | port:p${perl5.major}-mp3-tag \ |
---|
28 | port:p${perl5.major}-mp3-info \ |
---|
29 | port:p${perl5.major}-net-smtp-tls-butmaintained \ |
---|
30 | port:p${perl5.major}-net-smtp-ssl \ |
---|
31 | port:p${perl5.major}-authen-sasl \ |
---|
32 | port:rtmpdump \ |
---|
33 | port:atomicparsley \ |
---|
34 | port:id3v2 \ |
---|
35 | path:bin/ffmpeg:ffmpeg |
---|
36 | |
---|
37 | post-patch { |
---|
38 | reinplace "s|#!/usr/bin/env perl|#!${perl5.bin}|g" \ |
---|
39 | ${worksrcpath}/get_iplayer |
---|
40 | reinplace "s|/usr/share|${prefix}/share|g" \ |
---|
41 | ${worksrcpath}/get_iplayer |
---|
42 | reinplace "s|/etc|${prefix}/etc|g" \ |
---|
43 | ${worksrcpath}/get_iplayer |
---|
44 | } |
---|
45 | |
---|
46 | use_configure no |
---|
47 | build {} |
---|
48 | |
---|
49 | destroot { |
---|
50 | xinstall -d ${destroot}${prefix}/bin |
---|
51 | xinstall -m 755 ${worksrcpath}/get_iplayer ${destroot}${prefix}/bin |
---|
52 | |
---|
53 | xinstall -d ${destroot}${prefix}/share/man/man1 |
---|
54 | xinstall -m 644 ${worksrcpath}/get_iplayer.1 ${destroot}${prefix}/share/man/man1 |
---|
55 | |
---|
56 | xinstall -d ${destroot}${prefix}/share/doc/${name} |
---|
57 | xinstall -m 644 -W ${worksrcpath} \ |
---|
58 | CHANGELOG.txt \ |
---|
59 | CONTRIBUTORS \ |
---|
60 | LICENSE.txt \ |
---|
61 | README.md \ |
---|
62 | ${destroot}${prefix}/share/doc/${name} |
---|
63 | |
---|
64 | xinstall -d ${destroot}${prefix}/share/${name}/plugins |
---|
65 | xinstall -m 644 {*}[glob ${worksrcpath}/plugins/*.plugin] \ |
---|
66 | ${destroot}${prefix}/share/${name}/plugins |
---|
67 | xinstall -m 644 ${worksrcpath}/plugins/plugin.template \ |
---|
68 | ${destroot}${prefix}/share/${name}/plugins |
---|
69 | |
---|
70 | xinstall -d ${destroot}${prefix}/etc/${name} |
---|
71 | set optionsfile [open ${destroot}${prefix}/etc/${name}/options w] |
---|
72 | puts ${optionsfile} "packagemanager MacPorts" |
---|
73 | close ${optionsfile} |
---|
74 | } |
---|