[92328] trunk/dports/python
deric at macports.org
deric at macports.org
Wed Apr 25 03:16:45 PDT 2012
Revision: 92328
https://trac.macports.org/changeset/92328
Author: deric at macports.org
Date: 2012-04-25 03:16:45 -0700 (Wed, 25 Apr 2012)
Log Message:
-----------
py-django: Unified and updated to 1.4, closes #31241.
Added Paths:
-----------
trunk/dports/python/py-django/
trunk/dports/python/py-django/Portfile
Removed Paths:
-------------
trunk/dports/python/py25-django/
trunk/dports/python/py26-django/
trunk/dports/python/py27-django/
Copied: trunk/dports/python/py-django/Portfile (from rev 92151, trunk/dports/python/py27-django/Portfile)
===================================================================
--- trunk/dports/python/py-django/Portfile (rev 0)
+++ trunk/dports/python/py-django/Portfile 2012-04-25 10:16:45 UTC (rev 92328)
@@ -0,0 +1,64 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
+# $Id$
+
+PortSystem 1.0
+PortGroup python 1.0
+
+name py-django
+version 1.4
+categories-append www
+platforms darwin
+maintainers deric
+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 \
+ encourages rapid development and clean, pragmatic \
+ design.
+
+set branch [join [lrange [split ${version} .] 0 1] .]
+master_sites https://www.djangoproject.com/m/releases/${branch}/
+distname Django-${version}
+checksums md5 ba8e86198a93c196015df0b363ab1109 \
+ sha1 acc0b854bfbda29c74c1f818323139cf18b38eeb \
+ rmd160 6c015864335264ad3d9497bda8e828a436fbc800
+
+python.versions 25 26 27
+python.default_version 27
+
+if {${subport} != ${name}} {
+
+ depends_lib-append port:py${python.version}-distribute
+
+ variant bash_completion {
+ depends_run-append port:bash-completion
+
+ post-patch {
+ reinplace "s|django-admin.py|django-admin-${python.branch}.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-${python.branch}.py
+ }
+ }
+
+ # we want *-${python.branch}.py not *.py-${python.branch}
+ python.link_binaries no
+ post-destroot {
+ xinstall -m 644 -W ${worksrcpath} AUTHORS INSTALL LICENSE README \
+ ${destroot}${prefix}/share/doc/${subport}
+
+ 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
+ }
+}
+
+livecheck.type 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/20120425/12d86093/attachment.html>
More information about the macports-changes
mailing list