[87719] trunk/dports/aqua/mumble/Portfile

ryandesign at macports.org ryandesign at macports.org
Fri Dec 2 01:13:45 PST 2011


Revision: 87719
          http://trac.macports.org/changeset/87719
Author:   ryandesign at macports.org
Date:     2011-12-02 01:13:45 -0800 (Fri, 02 Dec 2011)
Log Message:
-----------
mumble: fix destroot failure; see #32103

Modified Paths:
--------------
    trunk/dports/aqua/mumble/Portfile

Modified: trunk/dports/aqua/mumble/Portfile
===================================================================
--- trunk/dports/aqua/mumble/Portfile	2011-12-02 08:25:29 UTC (rev 87718)
+++ trunk/dports/aqua/mumble/Portfile	2011-12-02 09:13:45 UTC (rev 87719)
@@ -6,7 +6,7 @@
 
 name                mumble
 version             1.2.2
-revision            3
+revision            4
 categories          aqua audio
 license             GPL
 maintainers         snc openmaintainer
@@ -80,6 +80,19 @@
 build.env-append    QMAKESPEC=${qt_mkspecs_dir}/macx-g++
 
 destroot {
-    file copy ${worksrcpath}/release/Mumble.app ${prefix}${applications_dir}/Mumble.app
-    file copy ${worksrcpath}/release/plugins ${prefix}${applications_dir}/Mumble.app/Contents/Plugins
+    file copy ${worksrcpath}/release/Mumble.app ${destroot}${applications_dir}/Mumble.app
+    file copy ${worksrcpath}/release/plugins ${destroot}${applications_dir}/Mumble.app/Contents/Plugins
 }
+
+pre-activate {
+    # mumble 1.1.8_0 thru 1.2.2_3 installed these items directly to
+    # ${prefix}${applications_dir}; remove them if found
+    foreach file {Mumble.app} {
+        set filepath ${prefix}${applications_dir}/${file}
+        if {[file exists ${filepath}]} {
+            if {[catch {delete ${filepath}}]} {
+                ui_warn "Cannot delete ${filepath}; please remove it manually"
+            }
+        }
+    }
+}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20111202/cce7a0f6/attachment.html>


More information about the macports-changes mailing list