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

petr at macports.org petr at macports.org
Sat Nov 22 10:27:25 PST 2014


Revision: 128517
          https://trac.macports.org/changeset/128517
Author:   petr at macports.org
Date:     2014-11-22 10:27:25 -0800 (Sat, 22 Nov 2014)
Log Message:
-----------
py-django: cleanup

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

Modified: trunk/dports/python/py-django/Portfile
===================================================================
--- trunk/dports/python/py-django/Portfile	2014-11-22 18:15:58 UTC (rev 128516)
+++ trunk/dports/python/py-django/Portfile	2014-11-22 18:27:25 UTC (rev 128517)
@@ -6,9 +6,9 @@
 
 name                py-django
 version             1.7.1
-license             BSD
 categories-append   www
 platforms           darwin
+license             BSD
 maintainers         nomaintainer
 
 description         Django is a high-level Python Web framework
@@ -48,19 +48,16 @@
     python.link_binaries no
     python.move_binaries no
     post-destroot   {
-        xinstall -m 644 -W ${worksrcpath} AUTHORS INSTALL LICENSE README.rst \
+        xinstall -m 644 -W ${worksrcpath} \
+            AUTHORS INSTALL LICENSE README.rst \
             ${destroot}${prefix}/share/doc/${subport}
 
-        file copy ${worksrcpath}/docs ${destroot}${prefix}/share/doc/${subport}/docs
+        file copy ${worksrcpath}/docs \
+            ${destroot}${prefix}/share/doc/${subport}/docs
 
         # To avoid conflict between py*-django
-        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
-        }
+        ln -s ${python.prefix}/bin/django-admin.py \
+            ${destroot}${prefix}/bin/django-admin-${python.branch}.py
     }
 
     livecheck.type  none
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20141122/5407acc6/attachment.html>


More information about the macports-changes mailing list