[154098] trunk/dports/net/fwknop/Portfile

mojca at macports.org mojca at macports.org
Thu Oct 20 05:14:46 CEST 2016


Revision: 154098
          https://trac.macports.org/changeset/154098
Author:   mojca at macports.org
Date:     2016-10-19 20:14:46 -0700 (Wed, 19 Oct 2016)
Log Message:
-----------
fwknop: switch to perl5.24 (#52081)

Modified Paths:
--------------
    trunk/dports/net/fwknop/Portfile

Modified: trunk/dports/net/fwknop/Portfile
===================================================================
--- trunk/dports/net/fwknop/Portfile	2016-10-20 03:06:20 UTC (rev 154097)
+++ trunk/dports/net/fwknop/Portfile	2016-10-20 03:14:46 UTC (rev 154098)
@@ -1,10 +1,11 @@
 # $Id$
 
 PortSystem 1.0
+PortGroup       perl5 1.0
 
 name            fwknop
 version         1.9.12
-revision        4
+revision        5
 conflicts       fwknop-client
 categories      net security
 license         GPL-2
@@ -39,21 +40,23 @@
 
 use_bzip2       yes
 
-depends_lib     port:p5.22-crypt-cbc \
-                port:p5.22-crypt-rijndael \
-                port:p5.22-digest-sha \
-                port:p5.22-gnupg-interface \
-                port:p5.22-net-ipv4addr \
-                port:p5.22-net-ping-external \
-                port:p5.22-term-readkey \
-                port:p5.22-unix-syslog
+perl5.branches  5.24
 
+depends_lib     port:p${perl5.major}-crypt-cbc \
+                port:p${perl5.major}-crypt-rijndael \
+                port:p${perl5.major}-digest-sha \
+                port:p${perl5.major}-gnupg-interface \
+                port:p${perl5.major}-net-ipv4addr \
+                port:p${perl5.major}-net-ping-external \
+                port:p${perl5.major}-term-readkey \
+                port:p${perl5.major}-unix-syslog
+
 use_configure   no
 build           {}
 
 destroot {
-    system "cd ${worksrcpath} && ${prefix}/bin/perl5.22 -w -p -i -e 's:^#!/usr/bin/perl -w$:#!${prefix}/bin/perl5.22 -w:' fwknop"
-    system "cd ${worksrcpath} && ${prefix}/bin/perl5.22 -w -p -i -e 's:^use lib ./usr/lib/fwknop.;::' fwknop"
+    system "cd ${worksrcpath} && ${perl5.bin} -w -p -i -e 's:^#!/usr/bin/perl -w$:#!${perl5.bin} -w:' fwknop"
+    system "cd ${worksrcpath} && ${perl5.bin} -w -p -i -e 's:^use lib ./usr/lib/fwknop.;::' fwknop"
     xinstall -m 755 ${worksrcpath}/fwknop ${destroot}${prefix}/bin
     xinstall -m 644 ${worksrcpath}/fwknop.8 ${destroot}${prefix}/share/man/man8
 }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macports.org/pipermail/macports-changes/attachments/20161019/ded7c0e5/attachment-0002.html>


More information about the macports-changes mailing list