[48732] trunk/dports/python/py-django/Portfile
arthurk at macports.org
arthurk at macports.org
Fri Mar 27 12:24:42 PDT 2009
Revision: 48732
http://trac.macports.org/changeset/48732
Author: arthurk at macports.org
Date: 2009-03-27 12:24:41 -0700 (Fri, 27 Mar 2009)
Log Message:
-----------
Fix conflict between py*-django ports (Ticket #18532 and #18903)
Modified Paths:
--------------
trunk/dports/python/py-django/Portfile
Modified: trunk/dports/python/py-django/Portfile
===================================================================
--- trunk/dports/python/py-django/Portfile 2009-03-27 18:52:43 UTC (rev 48731)
+++ trunk/dports/python/py-django/Portfile 2009-03-27 19:24:41 UTC (rev 48732)
@@ -5,9 +5,10 @@
name py-django
version 1.0.2
-categories python www
+revision 1
+categories-append www
platforms darwin
-maintainers arthurkoziel.com:arthur
+maintainers arthurk
homepage http://www.djangoproject.com
description Django is a high-level Python Web framework
long_description Django is a high-level Python Web framework that \
@@ -25,22 +26,31 @@
variant bash_completion {
depends_run-append port:bash-completion
+ post-patch {
+ reinplace "s|django-admin.py|django-admin-2.4.py|g" \
+ ${worksrcpath}/extras/django_bash_completion
+ }
+
post-destroot {
xinstall -d ${destroot}${prefix}/etc/bash_completion.d
xinstall -m 644 ${worksrcpath}/extras/django_bash_completion \
- ${destroot}${prefix}/etc/bash_completion.d/django-admin.py
+ ${destroot}${prefix}/etc/bash_completion.d/django-admin-2.4.py
}
}
post-destroot {
- xinstall -m 644 -W ${worksrcpath} AUTHORS INSTALL LICENSE README \
- ${destroot}${prefix}/share/doc/${name}
+ xinstall -m 644 -W ${worksrcpath} AUTHORS INSTALL LICENSE README \
+ ${destroot}${prefix}/share/doc/${name}
- file copy ${worksrcpath}/docs ${destroot}${prefix}/share/doc/${name}/docs
- file copy ${worksrcpath}/examples ${destroot}${prefix}/share/doc/${name}/examples
+ file copy ${worksrcpath}/docs ${destroot}${prefix}/share/doc/${name}/docs
+ file copy ${worksrcpath}/examples \
+ ${destroot}${prefix}/share/doc/${name}/examples
+
+ # To avoid conflict between py*-django
+ move ${destroot}${prefix}/bin/django-admin.py \
+ ${destroot}${prefix}/bin/django-admin-2.4.py
}
livecheck.check regex
livecheck.url http://www.djangoproject.com/download/
livecheck.regex "The latest official version is (1\.\[0-9\]+\.\[0-9\]+)"
-
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090327/d81e4213/attachment-0001.html>
More information about the macports-changes
mailing list