1 | # $Id$ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | PortGroup python26 1.0 |
---|
5 | |
---|
6 | name py26-django |
---|
7 | version 1.0.2 |
---|
8 | categories python www |
---|
9 | platforms darwin |
---|
10 | maintainers arthurkoziel.com:arthur |
---|
11 | homepage http://www.djangoproject.com |
---|
12 | description Django is a high-level Python Web framework |
---|
13 | long_description Django is a high-level Python Web framework that \ |
---|
14 | encourages rapid development and clean, pragmatic \ |
---|
15 | design. |
---|
16 | |
---|
17 | master_sites http://media.djangoproject.com/releases/${version}/ |
---|
18 | distname Django-${version}-final |
---|
19 | checksums md5 89353e3749668778f1370d2e444f3adc \ |
---|
20 | sha1 f2d9088f17aff47ea17e5767740cab67b2a73b6b \ |
---|
21 | rmd160 0cfea620df0831310da4ef51ef6ee4ef1b65974e |
---|
22 | |
---|
23 | depends_lib-append port:py26-setuptools |
---|
24 | |
---|
25 | variant bash_completion description {Bash completion support} { |
---|
26 | depends_run-append port:bash-completion |
---|
27 | |
---|
28 | post-destroot { |
---|
29 | xinstall -d ${destroot}${prefix}/etc/bash_completion.d |
---|
30 | xinstall -m 644 ${worksrcpath}/extras/django_bash_completion \ |
---|
31 | ${destroot}${prefix}/etc/bash_completion.d/django-admin.py |
---|
32 | } |
---|
33 | } |
---|
34 | |
---|
35 | post-destroot { |
---|
36 | xinstall -m 644 -W ${worksrcpath} AUTHORS INSTALL LICENSE README \ |
---|
37 | ${destroot}${prefix}/share/doc/${name} |
---|
38 | |
---|
39 | ln -s ${python.prefix}/bin/django-admin.py ${destroot}${prefix}/bin/django-admin.py |
---|
40 | |
---|
41 | file copy ${worksrcpath}/docs ${destroot}${prefix}/share/doc/${name}/docs |
---|
42 | file copy ${worksrcpath}/examples ${destroot}${prefix}/share/doc/${name}/examples |
---|
43 | } |
---|
44 | |
---|
45 | livecheck.check regex |
---|
46 | livecheck.url http://www.djangoproject.com/download/ |
---|
47 | livecheck.regex "The latest official version is (1\.\[0-9\]+\.\[0-9\]+)" |
---|