Changeset 99119


Ignore:
Timestamp:
Oct 27, 2012, 8:24:19 AM (12 years ago)
Author:
nicos@…
Message:

kdelibs4: considering startup.install when installing Agent (ticket #36751)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/kde/kdelibs4/Portfile

    r99054 r99119  
    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
Note: See TracChangeset for help on using the changeset viewer.