[44380] trunk/dports/python
jmr at macports.org
jmr at macports.org
Sat Dec 27 04:29:18 PST 2008
Revision: 44380
http://trac.macports.org/changeset/44380
Author: jmr at macports.org
Date: 2008-12-27 04:29:17 -0800 (Sat, 27 Dec 2008)
Log Message:
-----------
py*-game: fix overly restrictive file permissions (#17749)
Modified Paths:
--------------
trunk/dports/python/py-game/Portfile
trunk/dports/python/py25-game/Portfile
trunk/dports/python/py26-game/Portfile
Modified: trunk/dports/python/py-game/Portfile
===================================================================
--- trunk/dports/python/py-game/Portfile 2008-12-27 11:52:39 UTC (rev 44379)
+++ trunk/dports/python/py-game/Portfile 2008-12-27 12:29:17 UTC (rev 44380)
@@ -6,6 +6,7 @@
name py-game
version 1.8.1
+revision 1
categories python devel multimedia graphics
platforms darwin
maintainers nomaintainer
@@ -34,6 +35,16 @@
port:py-numeric \
port:py-pyobjc
+post-extract {
+ # See #17749
+ system "chmod -R a+r ${worksrcpath}"
+ fs-traverse f ${worksrcpath} {
+ if {[file isdirectory ${f}]} {
+ system "chmod a+rx ${f}"
+ }
+ }
+}
+
use_configure yes
configure.env-append LOCALBASE=${prefix}
configure.cmd ${python.bin} config.py
@@ -50,9 +61,9 @@
}
post-destroot {
- file delete -force ${destroot}${prefix}/share/doc/${name}
- file copy ${worksrcpath}/docs ${destroot}${prefix}/share/doc/${name}
- file copy ${worksrcpath}/examples ${destroot}${prefix}/share/doc/${name}
+ delete ${destroot}${prefix}/share/doc/${name}/examples
+ eval copy [glob ${worksrcpath}/docs/*] ${destroot}${prefix}/share/doc/${name}
+ copy ${worksrcpath}/examples ${destroot}${prefix}/share/doc/${name}
xinstall -m 644 -W ${worksrcpath} install.html WHATSNEW \
README.txt ${destroot}${prefix}/share/doc/${name}
}
Modified: trunk/dports/python/py25-game/Portfile
===================================================================
--- trunk/dports/python/py25-game/Portfile 2008-12-27 11:52:39 UTC (rev 44379)
+++ trunk/dports/python/py25-game/Portfile 2008-12-27 12:29:17 UTC (rev 44380)
@@ -6,6 +6,7 @@
name py25-game
version 1.8.1
+revision 1
categories python devel multimedia graphics
platforms darwin
maintainers jmr openmaintainer
@@ -34,6 +35,16 @@
port:py25-numeric \
port:py25-pyobjc
+post-extract {
+ # See #17749
+ system "chmod -R a+r ${worksrcpath}"
+ fs-traverse f ${worksrcpath} {
+ if {[file isdirectory ${f}]} {
+ system "chmod a+rx ${f}"
+ }
+ }
+}
+
use_configure yes
configure.env-append LOCALBASE=${prefix}
configure.cmd ${python.bin} config.py
@@ -50,9 +61,9 @@
}
post-destroot {
- file delete -force ${destroot}${prefix}/share/doc/${name}
- file copy ${worksrcpath}/docs ${destroot}${prefix}/share/doc/${name}
- file copy ${worksrcpath}/examples ${destroot}${prefix}/share/doc/${name}
+ delete ${destroot}${prefix}/share/doc/${name}/examples
+ eval copy [glob ${worksrcpath}/docs/*] ${destroot}${prefix}/share/doc/${name}
+ copy ${worksrcpath}/examples ${destroot}${prefix}/share/doc/${name}
xinstall -m 644 -W ${worksrcpath} install.html WHATSNEW \
README.txt ${destroot}${prefix}/share/doc/${name}
}
Modified: trunk/dports/python/py26-game/Portfile
===================================================================
--- trunk/dports/python/py26-game/Portfile 2008-12-27 11:52:39 UTC (rev 44379)
+++ trunk/dports/python/py26-game/Portfile 2008-12-27 12:29:17 UTC (rev 44380)
@@ -6,6 +6,7 @@
name py26-game
version 1.8.1
+revision 1
categories python devel multimedia graphics
platforms darwin
maintainers jmr openmaintainer
@@ -34,6 +35,16 @@
port:py26-numeric \
port:py26-pyobjc
+post-extract {
+ # See #17749
+ system "chmod -R a+r ${worksrcpath}"
+ fs-traverse f ${worksrcpath} {
+ if {[file isdirectory ${f}]} {
+ system "chmod a+rx ${f}"
+ }
+ }
+}
+
use_configure yes
configure.env-append LOCALBASE=${prefix}
@@ -51,9 +62,9 @@
}
post-destroot {
- file delete -force ${destroot}${prefix}/share/doc/${name}
- file copy ${worksrcpath}/docs ${destroot}${prefix}/share/doc/${name}
- file copy ${worksrcpath}/examples ${destroot}${prefix}/share/doc/${name}
+ delete ${destroot}${prefix}/share/doc/${name}/examples
+ eval copy [glob ${worksrcpath}/docs/*] ${destroot}${prefix}/share/doc/${name}
+ copy ${worksrcpath}/examples ${destroot}${prefix}/share/doc/${name}
xinstall -m 644 -W ${worksrcpath} install.html WHATSNEW \
README.txt ${destroot}${prefix}/share/doc/${name}
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20081227/fa69f8d3/attachment.html>
More information about the macports-changes
mailing list