[92575] users/ryandesign/ports/lang/php/Portfile

ryandesign at macports.org ryandesign at macports.org
Tue May 1 10:40:47 PDT 2012


Revision: 92575
          https://trac.macports.org/changeset/92575
Author:   ryandesign at macports.org
Date:     2012-05-01 10:40:47 -0700 (Tue, 01 May 2012)
Log Message:
-----------
php: future-proof version comparisons by using vercmp

Modified Paths:
--------------
    users/ryandesign/ports/lang/php/Portfile

Modified: users/ryandesign/ports/lang/php/Portfile
===================================================================
--- users/ryandesign/ports/lang/php/Portfile	2012-05-01 17:34:30 UTC (rev 92574)
+++ users/ryandesign/ports/lang/php/Portfile	2012-05-01 17:40:47 UTC (rev 92575)
@@ -267,7 +267,7 @@
     }
     
     # Enable livecheck for the two most recent PHP branches.
-    if {${branch} >= [lindex ${branches} end-1]} {
+    if {[vercmp ${branch} [lindex ${branches} end-1]] >= 0} {
         livecheck.type      regex
         livecheck.url       ${homepage}downloads.php
         livecheck.regex     get/php-([strsed ${branch} {g/\\./\\./}](?:\\.\[0-9.\]+)*)\\.tar
@@ -327,7 +327,7 @@
     configure.args-delete   --disable-cgi
     configure.args-append   --enable-cgi
     
-    if {${branch} >= 5.4} {
+    if {[vercmp ${branch} 5.4] >= 0} {
         build.target        cgi
         destroot.target     install-cgi
     } else {
@@ -862,7 +862,7 @@
     description             a PHP interface to SQLite, including the sqlite, sqlite3 \
                             and pdo_sqlite extensions
     
-    if {${branch} >= 5.4} {
+    if {[vercmp ${branch} 5.4] >= 0} {
         php.extensions-delete sqlite
         description-delete "sqlite,"
     }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120501/8bd8613a/attachment.html>


More information about the macports-changes mailing list