[143464] trunk/dports/net/torrentsniff
mojca at macports.org
mojca at macports.org
Sat Dec 12 13:02:06 PST 2015
Revision: 143464
https://trac.macports.org/changeset/143464
Author: mojca at macports.org
Date: 2015-12-12 13:02:05 -0800 (Sat, 12 Dec 2015)
Log Message:
-----------
torrentsniff: switch to perl5.22 (#48365), but see also #50002
Modified Paths:
--------------
trunk/dports/net/torrentsniff/Portfile
Added Paths:
-----------
trunk/dports/net/torrentsniff/files/patch-torrentsniff.diff
Removed Paths:
-------------
trunk/dports/net/torrentsniff/files/patch_torrentsniff
Modified: trunk/dports/net/torrentsniff/Portfile
===================================================================
--- trunk/dports/net/torrentsniff/Portfile 2015-12-12 20:51:36 UTC (rev 143463)
+++ trunk/dports/net/torrentsniff/Portfile 2015-12-12 21:02:05 UTC (rev 143464)
@@ -6,7 +6,7 @@
name torrentsniff
version 0.3.0
-revision 4
+revision 5
categories net perl
license MIT
maintainers nomaintainer
@@ -18,23 +18,23 @@
platforms darwin
supported_archs noarch
master_sites http://www.highprogrammer.com/alan/perl/
-checksums md5 3884cac276a990a95ea77738195508aa \
- sha1 ee683f2fbce004ae2f6daf9589b0d65db529fffb
+checksums rmd160 c52eb178784b759406e4f08688f44d92870d1a81 \
+ sha256 8af4f672a0ec6c4ad85665f90e65dadf38d15fab9df65aed1d2e50de8f6a4476
-perl5.branches 5.16
+perl5.branches 5.22
-depends_lib-append port:p5.16-libwww-perl \
- port:p5.16-digest-sha1
+depends_run-append port:p${perl5.major}-libwww-perl \
+ port:p${perl5.major}-digest-sha1
-patchfiles patch_torrentsniff
+patchfiles patch-torrentsniff.diff
configure {
- reinplace "s|__PREFIX__|${prefix}|g" ${worksrcpath}/torrentsniff
- reinplace "s|__NAME__|${name}|g" ${worksrcpath}/torrentsniff
+ reinplace "s|__PREFIX__|${prefix}|g" ${worksrcpath}/torrentsniff
+ reinplace "s|__NAME__|${name}|g" ${worksrcpath}/torrentsniff
reinplace "s|__PERL__|${perl5.bin}|g" ${worksrcpath}/torrentsniff
}
-build { }
+build {}
destroot {
xinstall -m 755 -d ${destroot}${prefix}/share/${name}/BitTorrent/ ${destroot}${prefix}/bin/
Copied: trunk/dports/net/torrentsniff/files/patch-torrentsniff.diff (from rev 143463, trunk/dports/net/torrentsniff/files/patch_torrentsniff)
===================================================================
--- trunk/dports/net/torrentsniff/files/patch-torrentsniff.diff (rev 0)
+++ trunk/dports/net/torrentsniff/files/patch-torrentsniff.diff 2015-12-12 21:02:05 UTC (rev 143464)
@@ -0,0 +1,18 @@
+--- torrentsniff.orig
++++ torrentsniff
+@@ -1,4 +1,4 @@
+-#! /usr/bin/perl -w
++#! __PERL__ -w
+
+ # This is part of modern Perl distributions.
+ use FindBin;
+@@ -13,7 +13,8 @@
+ use LWP::UserAgent;
+
+ # This is part of TorrentSniff, and should have been distributed with it.
+-use BitTorrent::BDecode;
++require '__PREFIX__/share/__NAME__/BitTorrent/BDecode.pm';
++import BitTorrent::BDecode;
+
+
+ # TorrentSniff http://www.highprogrammer.com/alan/perl/torrentsniff.html
Deleted: trunk/dports/net/torrentsniff/files/patch_torrentsniff
===================================================================
--- trunk/dports/net/torrentsniff/files/patch_torrentsniff 2015-12-12 20:51:36 UTC (rev 143463)
+++ trunk/dports/net/torrentsniff/files/patch_torrentsniff 2015-12-12 21:02:05 UTC (rev 143464)
@@ -1,18 +0,0 @@
---- torrentsniff.orig 2003-08-11 23:50:05.000000000 -0400
-+++ torrentsniff 2007-04-09 21:44:17.000000000 -0400
-@@ -1,4 +1,4 @@
--#! /usr/bin/perl -w
-+#! __PERL__ -w
-
- # This is part of modern Perl distributions.
- use FindBin;
-@@ -13,7 +13,8 @@
- use LWP::UserAgent;
-
- # This is part of TorrentSniff, and should have been distributed with it.
--use BitTorrent::BDecode;
-+require '__PREFIX__/share/__NAME__/BitTorrent/BDecode.pm';
-+import BitTorrent::BDecode;
-
-
- # TorrentSniff http://www.highprogrammer.com/alan/perl/torrentsniff.html
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20151212/94ebe6f2/attachment-0001.html>
More information about the macports-changes
mailing list