Ignore:
Timestamp:
Mar 27, 2009, 7:26:57 PM (11 years ago)
Author:
arthurk@…
Message:

Fix conflict between py*-django ports (Ticket #18532 and #18903)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/python/py25-django/Portfile

    r42370 r48733  
    11# $Id$
    22
    3 PortSystem              1.0
    4 PortGroup               python25 1.0
     3PortSystem          1.0
     4PortGroup           python25 1.0
    55
    6 name                    py25-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.
     6name                py25-django
     7version             1.0.2
     8revision            1
     9categories-append   www
     10platforms           darwin
     11maintainers         arthurk
     12homepage            http://www.djangoproject.com
     13description         Django is a high-level Python Web framework
     14long_description    Django is a high-level Python Web framework that \
     15                    encourages rapid development and clean, pragmatic \
     16                    design.
    1617
    17 master_sites            http://media.djangoproject.com/releases/${version}/
    18 distname                Django-${version}-final
    19 checksums               md5     89353e3749668778f1370d2e444f3adc \
    20                         sha1    f2d9088f17aff47ea17e5767740cab67b2a73b6b \
    21                         rmd160  0cfea620df0831310da4ef51ef6ee4ef1b65974e
     18master_sites        http://media.djangoproject.com/releases/${version}/
     19distname            Django-${version}-final
     20checksums           md5     89353e3749668778f1370d2e444f3adc \
     21                    sha1    f2d9088f17aff47ea17e5767740cab67b2a73b6b \
     22                    rmd160  0cfea620df0831310da4ef51ef6ee4ef1b65974e
    2223
    23 depends_lib-append      port:py25-setuptools
     24depends_lib-append  port:py25-setuptools
     25
     26variant bash_completion {
     27    depends_run-append  port:bash-completion
     28   
     29    post-patch {
     30        reinplace "s|django-admin.py|django-admin-2.5.py|g" \
     31            ${worksrcpath}/extras/django_bash_completion
     32    }
     33   
     34    post-destroot {
     35        xinstall -d ${destroot}${prefix}/etc/bash_completion.d
     36        xinstall -m 644 ${worksrcpath}/extras/django_bash_completion \
     37            ${destroot}${prefix}/etc/bash_completion.d/django-admin-2.5.py
     38    }
     39}
    2440
    2541post-destroot   {
    26         xinstall -m 644 -W ${worksrcpath} AUTHORS INSTALL LICENSE README \
    27                 ${destroot}${prefix}/share/doc/${name}
     42    xinstall -m 644 -W ${worksrcpath} AUTHORS INSTALL LICENSE README \
     43        ${destroot}${prefix}/share/doc/${name}
    2844
    29         file copy ${worksrcpath}/docs ${destroot}${prefix}/share/doc/${name}/docs
    30         file copy ${worksrcpath}/examples ${destroot}${prefix}/share/doc/${name}/examples
     45    file copy ${worksrcpath}/docs ${destroot}${prefix}/share/doc/${name}/docs
     46    file copy ${worksrcpath}/examples \
     47        ${destroot}${prefix}/share/doc/${name}/examples
     48   
     49    # To avoid conflict between py*-django
     50    move ${destroot}${prefix}/bin/django-admin.py \
     51        ${destroot}${prefix}/bin/django-admin-2.5.py
    3152}
    3253
     54livecheck.check     regex
     55livecheck.url       http://www.djangoproject.com/download/
     56livecheck.regex     "The latest official version is (1\.\[0-9\]+\.\[0-9\]+)"
Note: See TracChangeset for help on using the changeset viewer.