[96742] trunk/dports/python/py-django/Portfile

blair at macports.org blair at macports.org
Fri Aug 17 17:52:25 PDT 2012


Revision: 96742
          https://trac.macports.org/changeset/96742
Author:   blair at macports.org
Date:     2012-08-17 17:52:25 -0700 (Fri, 17 Aug 2012)
Log Message:
-----------
py-django: properly rename ${prefix}/bin/django-admin.py for Python < 2.6.

Modified Paths:
--------------
    trunk/dports/python/py-django/Portfile

Modified: trunk/dports/python/py-django/Portfile
===================================================================
--- trunk/dports/python/py-django/Portfile	2012-08-18 00:42:04 UTC (rev 96741)
+++ trunk/dports/python/py-django/Portfile	2012-08-18 00:52:25 UTC (rev 96742)
@@ -53,8 +53,13 @@
         file copy ${worksrcpath}/docs ${destroot}${prefix}/share/doc/${subport}/docs
 
         # To avoid conflict between py*-django
-        ln -s ${python.prefix}/bin/django-admin.py \
-            ${destroot}${prefix}/bin/django-admin-${python.branch}.py
+        if {${python.version} >= 26} {
+            ln -s ${python.prefix}/bin/django-admin.py \
+                ${destroot}${prefix}/bin/django-admin-${python.branch}.py
+        } else {
+            move ${destroot}${prefix}/bin/django-admin.py \
+                ${destroot}${prefix}/bin/django-admin-${python.branch}.py
+        }
     }
 }
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120817/40976f57/attachment-0001.html>


More information about the macports-changes mailing list