Ticket #17590: Portfile

File Portfile, 1.7 KB (added by arthur@…, 16 years ago)
Line 
1# $Id$
2
3PortSystem          1.0
4PortGroup           python24 1.0
5
6name                py-django
7version             1.0.2
8categories          python www
9platforms           darwin
10maintainers         arthurkoziel.com:arthur
11homepage            http://www.djangoproject.com
12description         Django is a high-level Python Web framework
13long_description    Django is a high-level Python Web framework that \
14                    encourages rapid development and clean, pragmatic \
15                    design.
16
17master_sites        http://media.djangoproject.com/releases/${version}/
18distname            Django-${version}-final
19checksums           md5     89353e3749668778f1370d2e444f3adc \
20                    sha1    f2d9088f17aff47ea17e5767740cab67b2a73b6b \
21                    rmd160  0cfea620df0831310da4ef51ef6ee4ef1b65974e
22
23depends_lib-append  port:py-setuptools
24
25variant 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
35post-destroot   {
36        xinstall -m 644 -W ${worksrcpath} AUTHORS INSTALL LICENSE README \
37                ${destroot}${prefix}/share/doc/${name}
38
39        file copy ${worksrcpath}/docs ${destroot}${prefix}/share/doc/${name}/docs
40        file copy ${worksrcpath}/examples ${destroot}${prefix}/share/doc/${name}/examples
41}
42
43livecheck.check     regex
44livecheck.url       http://www.djangoproject.com/download/
45livecheck.regex     "The latest official version is (1\.\[0-9\]+\.\[0-9\]+)"