Ignore:
Timestamp:
Nov 1, 2012, 2:33:40 AM (7 years ago)
Author:
ryandesign@…
Message:

php-1.1.tcl: if a subport hasn't changed the version, disable its livecheck; remove leftover php._bundled global

File:
1 edited

Legend:

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

    r96776 r99317  
    343343
    344344
     345# php._first_version: keep track of the first version line in the port.
     346
     347global php._first_version
     348option_proc version             php._set_version
     349
     350proc php._set_version {option action args} {
     351    if {"set" != ${action}} {
     352        return
     353    }
     354
     355    global php._first_version
     356
     357    if {![info exists php._first_version]} {
     358        set php._first_version [option ${option}]
     359    }
     360}
     361
     362
     363# If a subport has not changed the version, disable livecheck.
     364
     365pre-livecheck {
     366    global name subport version php._first_version
     367    if {${name} != ${subport} && ${version} == ${php._first_version}} {
     368        livecheck.type          none
     369    }
     370}
     371
     372
    345373# php.add_port_code: adds the code to the port or subport to do the actual
    346374# building. For normal extension ports, the portgroup automatically calls this
     
    349377
    350378proc php.add_port_code {} {
    351     global php php.branch php.branches php.build_dirs php.config php.extension_ini php.extensions php.ini_dir php.rootname php._bundled
     379    global php php.branch php.branches php.build_dirs php.config php.extension_ini php.extensions php.ini_dir php.rootname
    352380    global destroot name subport version
    353381
Note: See TracChangeset for help on using the changeset viewer.