Changeset 98865


Ignore:
Timestamp:
Oct 19, 2012, 1:20:40 AM (12 years ago)
Author:
cal@…
Message:

zmq22: provide upgrade path from zmq < 3.2

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/devel/zmq22/Portfile

    r98850 r98865  
    3030                    sha256  43904aeb9ea6844f72ca02e4e53bf1d481a1a0264e64979da761464e88604637
    3131
    32 conflicts           zmq
     32if {[catch {set installed [lindex [registry_active zmq] 0]}]} {
     33    conflicts       zmq
     34} else {
     35    set version [lindex $installed 1]
     36    if {[vercmp $version 3.2] < 0} {
     37        pre-activate {
     38            # provide an upgrade path for the zmq-update to 3.2
     39            set deactivate_proc registry_deactivate_composite
     40            if {[info commands registry_deactivate_composite] == {}} {
     41                set deactivate_proc registry_deactivate
     42            }
     43            $deactivate_proc zmq "" [list ports_nodepcheck 1]
     44        }
     45    } else {
     46        conflicts   zmq
     47    }
     48}
    3349
    3450universal_variant   yes
Note: See TracChangeset for help on using the changeset viewer.