Ignore:
Timestamp:
Aug 31, 2014, 6:30:02 PM (5 years ago)
Author:
ryandesign@…
Message:

php: update php56 to 5.6.0 (#44821)
php-1.1.tcl: use php56 by default; use eq and ne instead of == and != respectively for string comparisons

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/_resources/port1.0/group/php-1.1.tcl

    r107226 r124928  
    22# $Id$
    33#
    4 # Copyright (c) 2009-2013 The MacPorts Project
     4# Copyright (c) 2009-2014 The MacPorts Project
    55# All rights reserved.
    66#
     
    4242# php.branches is mandatory; there is no default. Example:
    4343#
    44 #   php.branches                5.3 5.4
     44#   php.branches                5.3 5.4 5.5 5.6
    4545#
    4646# For unified ports, setting php.branches will create the subports.
    4747#
    48 # For single-branch extension ports (name begins with e.g. "php54-")
     48# For single-branch extension ports (name begins with e.g. "php56-")
    4949# php.branches is set automatically based on the port name and should not be
    5050# changed.
     
    5454
    5555proc php._set_branches {option action args} {
    56     if {"set" != ${action}} {
     56    if {"set" ne ${action}} {
    5757        return
    5858    }
     
    6565    if {[regexp {^php\d*-} ${name}]} {
    6666        # Legacy dist_subdir to match old php5- port layout.
    67         if {[lindex [split [lindex [option ${option}] 0] .] 0] == "5"} {
     67        if {[lindex [split [lindex [option ${option}] 0] .] 0] eq "5"} {
    6868            dist_subdir php5-${php.rootname}
    6969        }
     
    7474
    7575            # Set up stub port.
    76             if {${name} == ${subport}} {
     76            if {${name} eq ${subport}} {
    7777                supported_archs     noarch
    7878                depends_run         port:php[php.suffix_from_branch ${php.default_branch}]-${php.rootname}
     
    117117
    118118proc php._set_name {option action args} {
    119     if {"set" != ${action}} {
     119    if {"set" ne ${action}} {
    120120        return
    121121    }
     
    132132
    133133options php.latest_stable_branch
    134 default php.latest_stable_branch 5.5
     134default php.latest_stable_branch 5.6
    135135
    136136
     
    146146
    147147proc php._set_default_branch {option action args} {
    148     if {"set" != ${action}} {
     148    if {"set" ne ${action}} {
    149149        return
    150150    }
     
    152152    global name subport php.rootname
    153153
    154     if {[regexp {^php-} ${name}] && ${name} == ${subport}} {
     154    if {[regexp {^php-} ${name}] && ${name} eq ${subport}} {
    155155        depends_run             port:php[php.suffix_from_branch [option ${option}]]-${php.rootname}
    156156    }
     
    235235
    236236proc php._set_pecl {option action args} {
    237     if {"set" != ${action}} {
     237    if {"set" ne ${action}} {
    238238        return
    239239    }
     
    261261
    262262proc php._set_pecl_name {option action args} {
    263     if {"set" != ${action}} {
     263    if {"set" ne ${action}} {
    264264        return
    265265    }
     
    286286
    287287proc php._set_pecl_prerelease {option action args} {
    288     if {"set" != ${action}} {
     288    if {"set" ne ${action}} {
    289289        return
    290290    }
     
    359359
    360360proc php._set_version {option action args} {
    361     if {"set" != ${action}} {
     361    if {"set" ne ${action}} {
    362362        return
    363363    }
     
    375375pre-livecheck {
    376376    global name subport version php._first_version
    377     if {${name} != ${subport} && ${name} != "php" && ${version} == ${php._first_version}} {
     377    if {${name} ne ${subport} && ${name} ne "php" && ${version} eq ${php._first_version}} {
    378378        livecheck.type          none
    379379    }
     
    491491                if {[info exists php_ini_extension_dir]} {
    492492                    ui_debug "Found extension_dir ${php_ini_extension_dir} in ${php.ini}"
    493                     if {${php_ini_extension_dir} != ${php.extension_dir}} {
     493                    if {${php_ini_extension_dir} ne ${php.extension_dir}} {
    494494                        if {0 == ${count}} {
    495495                            ui_msg "Your php.ini contains a line that will prevent ${subport}"
Note: See TracChangeset for help on using the changeset viewer.