Changeset 120294


Ignore:
Timestamp:
May 22, 2014, 12:41:07 AM (5 years ago)
Author:
ryandesign@…
Message:

tagainijisho: prevent activation error if a previous version of this port had ever been installed (#43736)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/aqua/tagainijisho/Portfile

    r120293 r120294  
    4040
    4141configure.pre_args  -DCMAKE_INSTALL_PREFIX=${applications_dir}
     42
     43pre-activate {
     44    # tagainijisho before 1.0.2_0 installed this file directly, bypassing the
     45    # destroot; remove it if found to prevent an activation error.
     46    set filepath "${applications_dir}/Tagaini Jisho.app/Contents/Resources/qt.conf"
     47    if {[file exists ${filepath}] && [registry_file_registered ${filepath}] == "0"} {
     48        if {[catch {delete ${filepath}}]} {
     49            return -code error "Cannot delete ${filepath}; please remove it manually"
     50        }
     51    }
     52}
Note: See TracChangeset for help on using the changeset viewer.