Ticket #18903: py26-django_r1.diff

File py26-django_r1.diff, 2.0 KB (added by arthur@…, 16 years ago)

py26-django r1

  • Portfile

    old new  
    55
    66name                py26-django
    77version             1.0.2
     8revision            1
    89categories          python www
    910platforms           darwin
    1011maintainers         arthurkoziel.com:arthur
     
    2223
    2324depends_lib-append  port:py26-setuptools
    2425
    25 variant bash_completion description {Bash completion support} {
     26variant bash_completion {
    2627    depends_run-append  port:bash-completion
    27 
     28    patchfiles patch-extras-django_bash_completion.diff
     29   
    2830    post-destroot {
    2931        xinstall -d ${destroot}${prefix}/etc/bash_completion.d
    3032        xinstall -m 644 ${worksrcpath}/extras/django_bash_completion \
    31             ${destroot}${prefix}/etc/bash_completion.d/django-admin.py
     33            ${destroot}${prefix}/etc/bash_completion.d/django-admin-2.6.py
    3234    }
    3335}
    3436
    3537post-destroot   {
    36         xinstall -m 644 -W ${worksrcpath} AUTHORS INSTALL LICENSE README \
    37                 ${destroot}${prefix}/share/doc/${name}
     38    xinstall -m 644 -W ${worksrcpath} AUTHORS INSTALL LICENSE README \
     39        ${destroot}${prefix}/share/doc/${name}
    3840       
    39         ln -s ${python.prefix}/bin/django-admin.py ${destroot}${prefix}/bin/django-admin.py
     41    ln -s ${python.prefix}/bin/django-admin.py ${destroot}${prefix}/bin/django-admin-2.6.py
    4042       
    41         file copy ${worksrcpath}/docs ${destroot}${prefix}/share/doc/${name}/docs
    42         file copy ${worksrcpath}/examples ${destroot}${prefix}/share/doc/${name}/examples
     43    file copy ${worksrcpath}/docs ${destroot}${prefix}/share/doc/${name}/docs
     44    file copy ${worksrcpath}/examples ${destroot}${prefix}/share/doc/${name}/examples
    4345}
    4446
    4547livecheck.check     regex
    4648livecheck.url       http://www.djangoproject.com/download/
    47 livecheck.regex     "The latest official version is (1\.\[0-9\]+\.\[0-9\]+)"
    48  No newline at end of file
     49livecheck.regex     "The latest official version is (1\.\[0-9\]+\.\[0-9\]+)"