[96605] trunk/dports/python/py-logilab-common/Portfile

blair at macports.org blair at macports.org
Tue Aug 14 22:32:39 PDT 2012


Revision: 96605
          https://trac.macports.org/changeset/96605
Author:   blair at macports.org
Date:     2012-08-14 22:32:38 -0700 (Tue, 14 Aug 2012)
Log Message:
-----------
py-logilab-common: fix build for py24 where pytest couldn't be moved.

Modified Paths:
--------------
    trunk/dports/python/py-logilab-common/Portfile

Modified: trunk/dports/python/py-logilab-common/Portfile
===================================================================
--- trunk/dports/python/py-logilab-common/Portfile	2012-08-15 05:24:39 UTC (rev 96604)
+++ trunk/dports/python/py-logilab-common/Portfile	2012-08-15 05:32:38 UTC (rev 96605)
@@ -30,10 +30,17 @@
         xinstall -m 644 -W ${worksrcpath} ChangeLog README \
         ${destroot}${prefix}/share/doc/${subport}
 
-        move ${destroot}${python.prefix}/bin/pytest \
-            ${destroot}${python.prefix}/bin/pytest-${python.branch}
-        ln -sf ${python.prefix}/bin/pytest-${python.branch} \
-            ${destroot}${prefix}/bin/pytest-${python.branch}
+        # Python 2.4 installs pytest in ${prefix}/bin while newer
+        # Pythons install it into ${python.prefix}/bin.
+        if {$subport == "py24-logilab-common"} {
+            move ${destroot}${prefix}/bin/pytest \
+                ${destroot}${prefix}/bin/pytest-${python.branch}
+        } else {
+            move ${destroot}${python.prefix}/bin/pytest \
+                ${destroot}${python.prefix}/bin/pytest-${python.branch}
+            ln -sf ${python.prefix}/bin/pytest-${python.branch} \
+                ${destroot}${prefix}/bin/pytest-${python.branch}
+        }
     }
     
     livecheck.type  none
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120814/6a1e854f/attachment.html>


More information about the macports-changes mailing list