[89528] trunk/dports/python/py-virtualenv/Portfile

macsforever2000 at macports.org macsforever2000 at macports.org
Wed Feb 1 09:46:47 PST 2012


Revision: 89528
          http://trac.macports.org/changeset/89528
Author:   macsforever2000 at 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\]+)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120201/b6af5fb1/attachment.html>


More information about the macports-changes mailing list