[103655] trunk/dports/perl

larryv at macports.org larryv at macports.org
Sun Mar 3 14:36:26 PST 2013


Revision: 103655
          https://trac.macports.org/changeset/103655
Author:   larryv at macports.org
Date:     2013-03-03 14:36:25 -0800 (Sun, 03 Mar 2013)
Log Message:
-----------
p5-cpan-meta, p5-extutils-makemaker: Fix version comparison.

Modified Paths:
--------------
    trunk/dports/perl/p5-cpan-meta/Portfile
    trunk/dports/perl/p5-extutils-makemaker/Portfile

Modified: trunk/dports/perl/p5-cpan-meta/Portfile
===================================================================
--- trunk/dports/perl/p5-cpan-meta/Portfile	2013-03-03 21:49:41 UTC (rev 103654)
+++ trunk/dports/perl/p5-cpan-meta/Portfile	2013-03-03 22:36:25 UTC (rev 103655)
@@ -24,7 +24,7 @@
 			port:p${perl5.major}-scalar-list-utils \
 			port:p${perl5.major}-version
 
-	if {${perl5.major} < 5.14} {
+    if {[vercmp ${perl5.major} 5.14] < 0} {
 	#JSON::PP is in core as of 5.14
 	depends_lib-append      port:p${perl5.major}-json-pp
 	}

Modified: trunk/dports/perl/p5-extutils-makemaker/Portfile
===================================================================
--- trunk/dports/perl/p5-extutils-makemaker/Portfile	2013-03-03 21:49:41 UTC (rev 103654)
+++ trunk/dports/perl/p5-extutils-makemaker/Portfile	2013-03-03 22:36:25 UTC (rev 103655)
@@ -33,7 +33,7 @@
 			port:p${perl5.major}-scalar-list-utils \
 			port:p${perl5.major}-version
 
-	if {${perl5.major} < 5.14} {
+    if {[vercmp ${perl5.major} 5.14] < 0} {
 	#JSON::PP is in core as of 5.14
 	depends_lib-append      port:p${perl5.major}-json-pp
 	}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130303/8525c3da/attachment.html>


More information about the macports-changes mailing list