[143393] trunk/dports/net/nedi/Portfile

mojca at macports.org mojca at macports.org
Sat Dec 12 09:47:47 PST 2015


Revision: 143393
          https://trac.macports.org/changeset/143393
Author:   mojca at macports.org
Date:     2015-12-11 15:26:57 -0800 (Fri, 11 Dec 2015)
Log Message:
-----------
nedi: switch to perl5.22 using the perl portgroup (#48365, untested)

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

Modified: trunk/dports/net/nedi/Portfile
===================================================================
--- trunk/dports/net/nedi/Portfile	2015-12-11 23:22:30 UTC (rev 143392)
+++ trunk/dports/net/nedi/Portfile	2015-12-11 23:26:57 UTC (rev 143393)
@@ -2,9 +2,11 @@
 # $Id$
 
 PortSystem          1.0
+PortGroup           perl5 1.0
 
 name                nedi
 version             1.0.9
+revision            1
 license             GPL-3
 categories          net
 maintainers         nomaintainer
@@ -24,16 +26,18 @@
 checksums           rmd160  776b178b4fd3fe139796dbc367ae0e626f6ccaa1 \
                     sha256  cf004dafb781f1ac638b2291ea565d3c3972eb5dd049f9119b46dbc66f722f13
 
-depends_lib         port:perl5.16 \
+perl5.branches      5.22
+
+depends_lib         port:perl${perl5.major} \
                     path:bin/mysql_config5:mysql5 \
-                    port:p5.16-net-snmp \
-                    port:p5.16-net-ssh-perl \
-                    port:p5.16-net-telnet \
-                    port:p5.16-net-telnet-cisco \
-                    port:p5.16-libwww-perl \
-                    port:p5.16-algorithm-diff \
-                    port:p5.16-dbi \
-                    port:p5.16-dbd-mysql \
+                    port:p${perl5.major}-net-snmp \
+                    port:p${perl5.major}-net-ssh-perl \
+                    port:p${perl5.major}-net-telnet \
+                    port:p${perl5.major}-net-telnet-cisco \
+                    port:p${perl5.major}-libwww-perl \
+                    port:p${perl5.major}-algorithm-diff \
+                    port:p${perl5.major}-dbi \
+                    port:p${perl5.major}-dbd-mysql \
                     port:rrdtool \
                     port:fping
 
@@ -64,7 +68,7 @@
 post-destroot {
 
 # Fix general paths
-    eval reinplace "s|^#!.*|#!${prefix}/bin/perl5.16|" \
+    eval reinplace "s|^#!.*|#!${perl5.bin}|" \
         [glob ${destroot}${nedidir}/*.pl] \
         [glob ${destroot}${nedidir}/contrib/*.pl] \
         [glob ${destroot}${nedidir}/inc/*.pl]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20151212/5713fe13/attachment.html>


More information about the macports-changes mailing list