[57241] trunk/dports/devel/bzr-gtk/Portfile

raimue at macports.org raimue at macports.org
Mon Sep 7 19:30:43 PDT 2009


Revision: 57241
          http://trac.macports.org/changeset/57241
Author:   raimue at macports.org
Date:     2009-09-07 19:30:35 -0700 (Mon, 07 Sep 2009)
Log Message:
-----------
devel/bzr-gtk:
Add symlinks for files to the prefix which are being installed inside the
python 2.6 framework directory after r57239.

Revision Links:
--------------
    http://trac.macports.org/changeset/57239

Modified Paths:
--------------
    trunk/dports/devel/bzr-gtk/Portfile

Modified: trunk/dports/devel/bzr-gtk/Portfile
===================================================================
--- trunk/dports/devel/bzr-gtk/Portfile	2009-09-08 01:53:55 UTC (rev 57240)
+++ trunk/dports/devel/bzr-gtk/Portfile	2009-09-08 02:30:35 UTC (rev 57241)
@@ -5,6 +5,7 @@
 
 name          bzr-gtk
 version       0.97.0
+revision      1
 set branch    [join [lrange [split ${version} .] 0 1] .]
 categories    devel python
 platforms     darwin
@@ -26,6 +27,17 @@
 
 universal_variant no
 
+post-destroot {
+    fs-traverse f "${destroot}${python.prefix}/bin ${destroot}${python.prefix}/share" {
+        set pfile [string range $f [string length ${destroot}${python.prefix}] end]
+        if {[file isdirectory $f]} {
+            xinstall -d -m 0755 ${destroot}${prefix}${pfile}
+        } else {
+            ln -s ${python.prefix}${pfile} ${destroot}${prefix}${pfile}
+        }
+    }
+}
+
 livecheck.check regex
 livecheck.url   ${homepage}
 livecheck.regex {bzr-gtk-(\d+(?:\.\d+)*).tar.gz}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090907/195a8c79/attachment.html>


More information about the macports-changes mailing list