[89244] trunk/dports/python/py-simplejson/Portfile
and.damore at macports.org
and.damore at macports.org
Sat Jan 21 15:21:01 PST 2012
Revision: 89244
http://trac.macports.org/changeset/89244
Author: and.damore at macports.org
Date: 2012-01-21 15:21:01 -0800 (Sat, 21 Jan 2012)
Log Message:
-----------
port py-simplejson: adding conditional check for subport before using $python.version variable in post-destroot
Modified Paths:
--------------
trunk/dports/python/py-simplejson/Portfile
Modified: trunk/dports/python/py-simplejson/Portfile
===================================================================
--- trunk/dports/python/py-simplejson/Portfile 2012-01-21 23:19:36 UTC (rev 89243)
+++ trunk/dports/python/py-simplejson/Portfile 2012-01-21 23:21:01 UTC (rev 89244)
@@ -8,6 +8,7 @@
set real_name simplejson
version 2.3.2
python.versions 24 25 26 27
+python.default_version 24
categories-append www
license MIT
maintainers akitada singingwolfboy openmaintainer
@@ -49,14 +50,16 @@
post-destroot {
set docdir ${destroot}${prefix}/share/doc/${subport}
xinstall -d ${docdir}
- if {${python.version} == 24} {
- foreach f [glob -directory ${worksrcpath}/docs *] {
- copy $f ${docdir}
+ if {$name != $subport} {
+ if {${python.version} == 24} {
+ foreach f [glob -directory ${worksrcpath}/docs *] {
+ copy $f ${docdir}
+ }
+ } else {
+ xinstall -m 644 -W ${worksrcpath} \
+ CHANGES.txt README.rst index.rst \
+ ${docdir}
}
- } else {
- xinstall -m 644 -W ${worksrcpath} \
- CHANGES.txt README.rst index.rst \
- ${docdir}
}
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120121/32a0f69f/attachment.html>
More information about the macports-changes
mailing list