Ticket #32103: mumble.diff

File mumble.diff, 1.3 KB (added by ryandesign (Ryan Carsten Schmidt), 13 years ago)

tentative patch

  • Portfile

     
    66
    77name                mumble
    88version             1.2.2
    9 revision            3
     9revision            4
    1010categories          aqua audio
    1111license             GPL
    1212maintainers         snc openmaintainer
     
    8080build.env-append    QMAKESPEC=${qt_mkspecs_dir}/macx-g++
    8181
    8282destroot {
    83     file copy ${worksrcpath}/release/Mumble.app ${prefix}${applications_dir}/Mumble.app
    84     file copy ${worksrcpath}/release/plugins ${prefix}${applications_dir}/Mumble.app/Contents/Plugins
     83    file copy ${worksrcpath}/release/Mumble.app ${destroot}${applications_dir}/Mumble.app
     84    file copy ${worksrcpath}/release/plugins ${destroot}${applications_dir}/Mumble.app/Contents/Plugins
    8585}
     86
     87pre-activate {
     88    # mumble 1.1.8_0 thru 1.2.2_3 installed these items directly to
     89    # ${prefix}${applications_dir}; remove them if found
     90    foreach file {Mumble.app} {
     91        set filepath ${prefix}${applications_dir}/${file}
     92        if {[file exists ${filepath}]} {
     93            if {[catch {delete ${filepath}}]} {
     94                ui_warn "Cannot delete ${filepath}; please remove it manually"
     95            }
     96        }
     97    }
     98}