[130756] trunk/dports/perl/p5-test-tester/Portfile

devans at macports.org devans at macports.org
Fri Jan 2 04:29:22 PST 2015


Revision: 130756
          https://trac.macports.org/changeset/130756
Author:   devans at macports.org
Date:     2015-01-02 04:29:22 -0800 (Fri, 02 Jan 2015)
Log Message:
-----------
p5-test-tester: handle/correct replacement for obsolete branches 5.8 5.10 5.12 5.14.

Modified Paths:
--------------
    trunk/dports/perl/p5-test-tester/Portfile

Modified: trunk/dports/perl/p5-test-tester/Portfile
===================================================================
--- trunk/dports/perl/p5-test-tester/Portfile	2015-01-02 12:26:11 UTC (rev 130755)
+++ trunk/dports/perl/p5-test-tester/Portfile	2015-01-02 12:29:22 UTC (rev 130756)
@@ -4,16 +4,21 @@
 PortSystem          1.0
 PortGroup           perl5 1.0
 
-perl5.branches      5.10 5.12 5.14 5.16 5.18 5.20
+perl5.branches      5.8 5.10 5.12 5.14 5.16 5.18 5.20
 perl5.setup         Test-Tester 0.109
 revision            1
 license             {Artistic-1 GPL}
 
+depends_lib
+
 if {${perl5.major} != ""} {
-    replaced_by     p${perl5.major}-test-simple
+    if {[vercmp ${perl5.major} 5.16] >= 0} {
+        replaced_by p${perl5.major}-test-simple
+    } else {
+        replaced_by p5.16-test-simple
+    }
 } else {
     replaced_by     p5-test-simple
 }
 
-depends_lib
 PortGroup           obsolete 1.0
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150102/3c3c68fb/attachment.html>


More information about the macports-changes mailing list