Revision
100269
Author
g5pw@macports.org
Date
2012-12-06 02:55:01 -0800 (Thu, 06 Dec 2012)

Log Message

python/py-cairo:
  fix install of py-cairo (thanks again, Ryan)

Modified Paths

Diff

Modified: trunk/dports/python/py-cairo/Portfile (100268 => 100269)


--- trunk/dports/python/py-cairo/Portfile	2012-12-06 10:30:34 UTC (rev 100268)
+++ trunk/dports/python/py-cairo/Portfile	2012-12-06 10:55:01 UTC (rev 100269)
@@ -49,28 +49,28 @@
 
     distname             ${my_name}-${version}
 
+    platform darwin 9 {
+	post-patch {
+           reinplace "s| -export-symbols-regex.*||g" ${worksrcpath}/cairo/Makefile.in
+	}
+    }
+
+    post-extract {
+	fs-traverse item ${worksrcpath} {
+            if {[file isdirectory ${item}]} {
+		file attributes ${item} -permissions a+rx
+            } elseif {[file isfile ${item}]} {
+		file attributes ${item} -permissions a+r
+            }
+	}
+    }
+
     livecheck.type       none
 } else {
     livecheck.type       regex
     livecheck.regex      "${my_name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"
 }
 
-platform darwin 9 {
-    post-patch {
-        reinplace "s| -export-symbols-regex.*||g" ${worksrcpath}/cairo/Makefile.in
-    }
-}
-
-post-extract {
-    fs-traverse item ${worksrcpath} {
-        if {[file isdirectory ${item}]} {
-            file attributes ${item} -permissions a+rx
-        } elseif {[file isfile ${item}]} {
-            file attributes ${item} -permissions a+r
-        }
-    }
-}
-
 variant x11 {
     pre-configure {
 	require_active_variants cairo x11