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

snc at macports.org snc at macports.org
Sun Jan 30 15:48:09 PST 2011


Revision: 75570
          http://trac.macports.org/changeset/75570
Author:   snc at macports.org
Date:     2011-01-30 15:48:08 -0800 (Sun, 30 Jan 2011)
Log Message:
-----------
kdelibs4: attempt to deactivate old kdebase4-runtime, #28211

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

Modified: trunk/dports/kde/kdelibs4/Portfile
===================================================================
--- trunk/dports/kde/kdelibs4/Portfile	2011-01-30 22:26:46 UTC (rev 75569)
+++ trunk/dports/kde/kdelibs4/Portfile	2011-01-30 23:48:08 UTC (rev 75570)
@@ -73,5 +73,13 @@
 "
 }
 
+pre-activate {
+    if {[file exists ${prefix}/share/locale/en_US/entry.desktop]
+        && ![catch {set vers [lindex [registry_active kdebase4-runtime] 0]}]
+        && [rpm-vercomp [lindex $vers 1] 4.6.0] < 0} {
+        registry_deactivate kdebase4-runtime "" [list ports_nodepcheck 1]
+    }
+}
+
 livecheck.url       http://kde.mirrors.hoobly.com/stable/latest/src/
 livecheck.regex     kdelibs-(\\d+\\.\\d+\\.\\d+)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110130/df24a535/attachment-0001.html>


More information about the macports-changes mailing list