Revision: 145255 https://trac.macports.org/changeset/145255 Author: devans@macports.org Date: 2016-01-29 13:13:41 -0800 (Fri, 29 Jan 2016) Log Message: ----------- p5-innotop: update to version 1.10.0 using github repo. Modified Paths: -------------- trunk/dports/perl/p5-innotop/Portfile Added Paths: ----------- trunk/dports/perl/p5-innotop/files/ trunk/dports/perl/p5-innotop/files/patch-innotop.diff Modified: trunk/dports/perl/p5-innotop/Portfile =================================================================== --- trunk/dports/perl/p5-innotop/Portfile 2016-01-29 21:13:15 UTC (rev 145254) +++ trunk/dports/perl/p5-innotop/Portfile 2016-01-29 21:13:41 UTC (rev 145255) @@ -5,7 +5,7 @@ PortGroup perl5 1.0 perl5.branches 5.22 -perl5.setup innotop 1.9.1 +perl5.setup innotop 1.10.0 license {GPL-2 Artistic-1} maintainers nomaintainer supported_archs noarch @@ -18,21 +18,33 @@ information, row operations, logs, I/O \ operations, load graph, and more. You can \ monitor any servers at once with innotop. -homepage http://code.google.com/p/innotop/ +set gh_user innotop +set gh_project innotop +set gh_commit c931d2d + +homepage https://github.com/${gh_user}/${gh_project} +master_sites ${homepage}/tarball/${gh_commit} +distname ${gh_project}-${gh_commit} +worksrcdir ${gh_user}-${distname} + platforms darwin -master_sites googlecode:innotop -dist_subdir innotop -checksums rmd160 bc39ee3dbffdf81606af4ea30405404d0aa9ce3c \ - sha256 117e5af58a83af79b6cf99877b25b1479197597be5a7d51b245a0ad9c69f4d3d +checksums rmd160 1c3a91c447b6eafbcce1cde80d38d585e82543e1 \ + sha256 290646dbcf8bc689363c8c6febeb9e5cc574d0b10854524da14ee740a1364d57 if {${perl5.major} != ""} { -depends_lib-append port:p${perl5.major}-dbi \ + depends_lib-append \ + port:p${perl5.major}-dbi \ port:p${perl5.major}-dbd-mysql \ port:p${perl5.major}-term-readkey + + patchfiles patch-innotop.diff + + post-patch { + reinplace "s|^#!.*|#!${perl5.bin}|" ${worksrcpath}/innotop + reinplace "s|@@MP_PREFIX@@|${prefix}|" ${worksrcpath}/innotop + } } -livecheck.type regex -livecheck.url https://code.google.com/p/innotop/downloads/ -livecheck.regex "innotop-(\\d+(?:\\.\\d+)*)${extract.suffix}" +livecheck.type none Added: trunk/dports/perl/p5-innotop/files/patch-innotop.diff =================================================================== --- trunk/dports/perl/p5-innotop/files/patch-innotop.diff (rev 0) +++ trunk/dports/perl/p5-innotop/files/patch-innotop.diff 2016-01-29 21:13:41 UTC (rev 145255) @@ -0,0 +1,11 @@ +--- innotop.orig 2016-01-29 12:55:18.000000000 -0800 ++++ innotop 2016-01-29 12:56:45.000000000 -0800 +@@ -29,7 +29,7 @@ + + # Configuration files + our $default_home_conf = "$homepath/.innotop/innotop.conf"; +-our $default_central_conf = "/etc/innotop/innotop.conf"; ++our $default_central_conf = "@@MP_PREFIX@@/etc/innotop/innotop.conf"; + our $conf_file = ""; + + ## Begin packages ##