Ticket #36751: patch-kde-kdelibs4.diff

File patch-kde-kdelibs4.diff, 975 bytes (added by pixilla (Bradley Giesbrecht), 12 years ago)
  • kde/kdelibs4/Portfile

     
    101101    reinplace "s|%APPLICATIONS_DIR%|${applications_dir}|g" \
    102102        ${destroot}${prefix}/Library/LaunchAgents/org.macports.kdecache.plist
    103103   
    104     xinstall -d -m 755 ${destroot}${startup_root}/Library/LaunchAgents
    105     ln -s ${prefix}/Library/LaunchAgents/org.macports.kdecache.plist ${destroot}${startup_root}/Library/LaunchAgents
     104    # The startupitem.install keyword does not exist in MacPorts < 2.1.
     105    if {![info exists startupitem.install]} {
     106        set startupitem.install yes
     107    }
     108    if { ${startupitem.install} != "no" } {
     109        xinstall -d -m 755 ${destroot}${startup_root}/Library/LaunchAgents
     110        ln -s ${prefix}/Library/LaunchAgents/org.macports.kdecache.plist ${destroot}${startup_root}/Library/LaunchAgents
     111    }
    106112}
    107113
    108114post-activate {