Changeset 86233


Ignore:
Timestamp:
Oct 23, 2011, 4:01:32 PM (8 years ago)
Author:
hum@…
Message:

mecab-base: deactivate any old mecab port before activating; see #31732.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/textproc/mecab-base/Portfile

    r86218 r86233  
    3838}
    3939
     40# deactivate any old mecab port.
     41pre-activate {
     42    if {[file exists ${prefix}/bin/mecab]
     43        && ![catch {set vers [lindex [registry_active mecab] 0]}]
     44        && ([rpm-vercomp [lindex $vers 1] 0.98] < 0 ||
     45            [rpm-vercomp [lindex $vers 1] 0.98] == 0
     46            && [rpm-vercomp [lindex $vers 2] 1] < 1)} {
     47        registry_deactivate mecab "" [list ports_nodepcheck 1]
     48    }
     49}
     50
    4051platform darwin 8 {
    4152    configure.env-append    MACOSX_DEPLOYMENT_TARGET=10.4
Note: See TracChangeset for help on using the changeset viewer.