[99119] trunk/dports/kde/kdelibs4/Portfile

nicos at macports.org nicos at macports.org
Sat Oct 27 01:24:19 PDT 2012


Revision: 99119
          http://trac.macports.org//changeset/99119
Author:   nicos at macports.org
Date:     2012-10-27 01:24:19 -0700 (Sat, 27 Oct 2012)
Log Message:
-----------
kdelibs4: considering startup.install when installing Agent (ticket #36751)

Modified Paths:
--------------
    trunk/dports/kde/kdelibs4/Portfile

Modified: trunk/dports/kde/kdelibs4/Portfile
===================================================================
--- trunk/dports/kde/kdelibs4/Portfile	2012-10-27 07:35:04 UTC (rev 99118)
+++ trunk/dports/kde/kdelibs4/Portfile	2012-10-27 08:24:19 UTC (rev 99119)
@@ -101,8 +101,14 @@
     reinplace "s|%APPLICATIONS_DIR%|${applications_dir}|g" \
         ${destroot}${prefix}/Library/LaunchAgents/org.macports.kdecache.plist
     
-    xinstall -d -m 755 ${destroot}${startup_root}/Library/LaunchAgents
-    ln -s ${prefix}/Library/LaunchAgents/org.macports.kdecache.plist ${destroot}${startup_root}/Library/LaunchAgents
+    # The startupitem.install keyword does not exist in MacPorts < 2.1.
+    if {![info exists startupitem.install]} {
+        set startupitem.install yes
+    }
+    if { ${startupitem.install} != "no" } {
+        xinstall -d -m 755 ${destroot}${startup_root}/Library/LaunchAgents
+        ln -s ${prefix}/Library/LaunchAgents/org.macports.kdecache.plist ${destroot}${startup_root}/Library/LaunchAgents
+    }
 }
 
 post-activate {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20121027/ce67f261/attachment.html>


More information about the macports-changes mailing list