Revision
118494
Author
stromnov@macports.org
Date
2014-04-03 05:20:40 -0700 (Thu, 03 Apr 2014)

Log Message

py-theano: fix permissions (#43188)

Modified Paths

Diff

Modified: trunk/dports/python/py-theano/Portfile (118493 => 118494)


--- trunk/dports/python/py-theano/Portfile	2014-04-03 12:01:15 UTC (rev 118493)
+++ trunk/dports/python/py-theano/Portfile	2014-04-03 12:20:40 UTC (rev 118494)
@@ -31,6 +31,18 @@
                         port:py${python.version}-setuptools
     depends_lib-append  port:py${python.version}-numpy \
                         port:py${python.version}-scipy
+
+    # Fix permissions (#43188)
+    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