New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Changeset 82443


Ignore:
Timestamp:
08/13/11 16:26:28 (4 years ago)
Author:
jmr@…
Message:

py*-nose: unify (#30676)

Location:
trunk/dports/python
Files:
5 deleted
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/python/py-nose/Portfile

    r80385 r82443  
    33 
    44PortSystem                      1.0 
    5 PortGroup                       python24 1.0 
     5PortGroup           python 1.0 
    66 
    7 name                            py-nose 
     7set my_name         nose 
     8name                            py-${my_name} 
    89version                         1.0.0 
    9 categories-append               www 
     10categories-append       www 
    1011license                         LGPL-2+ 
    11 maintainers                     openmaintainer akitada 
     12maintainers                     akitada mcalhoun openmaintainer 
    1213description                     A Python unittest extension. 
    13 long_description                A unittest extension offering automatic test \ 
    14                                 suite discovery, simplified test authoring, \ 
    15                                 and output capture. Nose provides an alternate \ 
    16                                 test discovery and running process for \ 
    17                                 unittest, one that is intended to mimic the \ 
    18                                 behavior of py.test as much as is reasonably \ 
    19                                 possible without resorting to magic. 
     14long_description \ 
     15    A unittest extension offering automatic test \ 
     16    suite discovery, simplified test authoring, \ 
     17    and output capture. Nose provides an alternate \ 
     18    test discovery and running process for \ 
     19    unittest, one that is intended to mimic the \ 
     20    behavior of py.test as much as is reasonably \ 
     21    possible without resorting to magic. 
    2022 
    2123platforms                       darwin 
    22 supported_archs                 noarch 
     24supported_archs         noarch 
    2325 
    24 homepage                        http://somethingaboutorange.com/mrl/projects/nose/ 
    25 master_sites                    ${homepage} 
    26 distname                        nose-${version} 
     26homepage                        http://somethingaboutorange.com/mrl/projects/${my_name} 
     27master_sites            http://pypi.python.org/packages/source/n/${my_name} 
     28distname                        ${my_name}-${version} 
    2729 
    28 depends_lib                     port:py-setuptools 
     30checksums           md5     47a4784c817afa6ef11a505b574584ed \ 
     31                    sha1    186d223d0d74e94093bc0c42223d2ad92c090eed 
    2932 
    30 checksums           md5     9542d4c66e04880d8144990de76e0b88 \ 
    31                     sha1    30015cbcb201975dbb8613acb651984255458741 \ 
     33python.versions     24 25 26 27 31 32 
    3234 
    33 patch { 
    34         reinplace "s|man/man|share/man/man|" ${worksrcpath}/setup.py 
     35if {$subport != $name} { 
     36    if {${python.version} == "24"} { 
     37        depends_lib             port:py-setuptools 
     38    } else { 
     39        depends_lib             port:py${python.version}-distribute 
     40    } 
     41 
     42    post-patch { 
     43        reinplace "s|man/man|share/man/man|" ${worksrcpath}/setup.py 
     44     
     45        # One of the tests fails if this directory does not exist 
     46        file mkdir ${worksrcpath}/functional_tests/support/empty 
     47    } 
     48 
     49    post-destroot { 
     50        if {${python.version} == "24" || ${python.version} == "25"} { 
     51            move ${destroot}${prefix}/share/man/man1/nosetests.1 ${destroot}${prefix}/share/man/man1/nosetests${python.branch}.1 
     52            delete ${destroot}${prefix}/bin/nosetests 
     53        } else { 
     54            ln -s ${python.prefix}/share/man/man1/nosetests.1 ${destroot}${prefix}/share/man/man1/nosetests${python.branch}.1 
     55        } 
     56 
     57        xinstall -m 644 -W ${worksrcpath} \ 
     58            AUTHORS CHANGELOG NEWS README.txt \ 
     59            ${destroot}${prefix}/share/doc/${subport} 
     60     
     61        file copy ${worksrcpath}/doc ${destroot}${prefix}/share/doc/${subport}/html 
     62     
     63        file delete ${destroot}${prefix}/share/doc/${subport}/examples 
     64        file copy ${worksrcpath}/examples ${destroot}${prefix}/share/doc/${subport} 
     65    } 
     66 
     67    test.run  yes 
     68    test.cmd  ${python.bin} setup.py test 
    3569} 
     70 
     71livecheck.type   regex 
     72livecheck.url    ${master_sites} 
     73livecheck.regex     "${my_name}-(\\d+(?:\\.\\d+)*)${extract.suffix}" 
Note: See TracChangeset for help on using the changeset viewer.