Revision
144316
Author
mojca@macports.org
Date
2016-01-06 07:27:11 -0800 (Wed, 06 Jan 2016)

Log Message

ghsum: switch to perl5.22 (#48365)

Modified Paths

Diff

Modified: trunk/dports/devel/ghsum/Portfile (144315 => 144316)


--- trunk/dports/devel/ghsum/Portfile	2016-01-06 15:25:53 UTC (rev 144315)
+++ trunk/dports/devel/ghsum/Portfile	2016-01-06 15:27:11 UTC (rev 144316)
@@ -3,9 +3,11 @@
 
 PortSystem          1.0
 PortGroup           github 1.0
+PortGroup           perl5 1.0
 
 github.setup        rodnaph ghsum 0.1.0 v
-revision            1
+revision            2
+perl5.branches      5.22
 categories          devel shells macports
 platforms           darwin
 maintainers         pu-gh.com:rod
@@ -20,7 +22,7 @@
 
 depends_lib         port:wget \
                     path:lib/libssl.dylib:openssl \
-                    port:p5.16-getopt-long-descriptive
+                    port:p${perl5.major}-getopt-long-descriptive
 
 checksums           rmd160 8135a086a7ba075d5ce3596caaa46cd21705bb64 \
                     sha256 863ce994a8a9a276f3ea8a6a395b33015540cccf08c8e419223aa8253ed42eb2
@@ -28,7 +30,7 @@
 use_configure       no
 
 post-patch {
-    reinplace       "s&#!/usr/bin/env perl&#!${prefix}/bin/perl5.16&" ${worksrcpath}/ghsum
+    reinplace       "s&#!/usr/bin/env perl&#!${perl5.bin}&" ${worksrcpath}/ghsum
 }
 
 build               {}