source: trunk/dports/net/torrentsniff/Portfile

Last change on this file was 151843, checked in by mojca@…, 11 months ago

torrentsniff: switch to perl5.24 (#52081)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.8 KB
Line 
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: Portfile 151843 2016-08-23 12:12:45Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup perl5     1.0
6
7name                torrentsniff
8version             0.3.0
9revision            6
10categories          net perl
11license             MIT
12maintainers         nomaintainer
13description         torrent status program
14long_description    TorrentSniff is a command line Perl program \
15                    that reads a BitTorrent .torrent file from the local file \
16                    system or from a URL and reports on the status of the torrent.
17homepage            http://www.highprogrammer.com/alan/perl/torrentsniff.html
18platforms           darwin
19supported_archs     noarch
20master_sites        http://www.highprogrammer.com/alan/perl/
21checksums           rmd160  c52eb178784b759406e4f08688f44d92870d1a81 \
22                    sha256  8af4f672a0ec6c4ad85665f90e65dadf38d15fab9df65aed1d2e50de8f6a4476
23
24perl5.branches      5.24
25
26depends_run-append  port:p${perl5.major}-libwww-perl \
27                    port:p${perl5.major}-digest-sha1
28
29patchfiles          patch-torrentsniff.diff
30
31configure {
32    reinplace "s|__PREFIX__|${prefix}|g"  ${worksrcpath}/torrentsniff
33    reinplace "s|__NAME__|${name}|g"      ${worksrcpath}/torrentsniff
34    reinplace "s|__PERL__|${perl5.bin}|g" ${worksrcpath}/torrentsniff
35}
36
37build {}
38
39destroot {
40    xinstall -m 755 -d ${destroot}${prefix}/share/${name}/BitTorrent/ ${destroot}${prefix}/bin/
41    xinstall -m 644 ${worksrcpath}/BitTorrent/BDecode.pm ${destroot}${prefix}/share/${name}/BitTorrent/
42    xinstall -m 755 ${worksrcpath}/torrentsniff ${destroot}${prefix}/bin/
43}
44
45livecheck.type      regex
46livecheck.url       ${homepage}
47livecheck.regex     "${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"
Note: See TracBrowser for help on using the repository browser.