[125224] trunk/dports/net/canto/Portfile

jmr at macports.org jmr at macports.org
Wed Sep 10 10:36:20 PDT 2014


Revision: 125224
          https://trac.macports.org/changeset/125224
Author:   jmr at macports.org
Date:     2014-09-10 10:36:20 -0700 (Wed, 10 Sep 2014)
Log Message:
-----------
canto: fix and clean up after destroot bypass

Modified Paths:
--------------
    trunk/dports/net/canto/Portfile

Modified: trunk/dports/net/canto/Portfile
===================================================================
--- trunk/dports/net/canto/Portfile	2014-09-10 17:20:45 UTC (rev 125223)
+++ trunk/dports/net/canto/Portfile	2014-09-10 17:36:20 UTC (rev 125224)
@@ -6,6 +6,7 @@
 
 name                canto
 version             0.6.13
+revision            1
 categories          net python
 maintainers         codezen.org:jack
 license             GPL-2
@@ -29,5 +30,12 @@
 
 
 post-destroot {
-    ln -s ${python.prefix}/bin/canto ${prefix}/bin/canto
+    ln -s ${python.prefix}/bin/canto ${destroot}${prefix}/bin/canto
 }
+
+pre-activate {
+    set filepath ${prefix}/bin/canto
+    if {![catch {file type $filepath}] && [registry_file_registered $filepath] == "0"} {
+        file delete -force $filepath
+    }
+}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140910/7a33db27/attachment-0001.html>


More information about the macports-changes mailing list