Revision: 89528 http://trac.macports.org/changeset/89528 Author: macsforever2000@macports.org Date: 2012-02-01 09:46:46 -0800 (Wed, 01 Feb 2012) Log Message: ----------- py-virtualenv: unify fix. Modified Paths: -------------- trunk/dports/python/py-virtualenv/Portfile Modified: trunk/dports/python/py-virtualenv/Portfile =================================================================== --- trunk/dports/python/py-virtualenv/Portfile 2012-02-01 17:39:56 UTC (rev 89527) +++ trunk/dports/python/py-virtualenv/Portfile 2012-02-01 17:46:46 UTC (rev 89528) @@ -26,15 +26,17 @@ python.versions 24 25 26 27 31 32 python.default_version 27 -depends_lib-append port:py${python.version}-distribute - -post-destroot { - xinstall -m 755 -d ${destroot}${prefix}/share/doc/${subport} - foreach f [glob -directory ${worksrcpath}/docs *] { - copy $f ${destroot}${prefix}/share/doc/${subport}/[file tail $f] +if {$subport != $name} { + depends_lib-append port:py${python.version}-distribute + + post-destroot { + xinstall -m 755 -d ${destroot}${prefix}/share/doc/${subport} + foreach f [glob -directory ${worksrcpath}/docs *] { + copy $f ${destroot}${prefix}/share/doc/${subport}/[file tail $f] + } } +} else { + livecheck.type regex + livecheck.url http://pypi.python.org/pypi/virtualenv + livecheck.regex virtualenv (1\.\[0-9\]+\.\[0-9\]+) } - -livecheck.type regex -livecheck.url http://pypi.python.org/pypi/virtualenv -livecheck.regex virtualenv (1\.\[0-9\]+\.\[0-9\]+)