# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4 # $Id$ PortSystem 1.0 PortGroup python26 1.0 name py26-nose version 0.11.1 categories-append www maintainers mcalhoun openmaintainer description A Python unittest extension. long_description \ A unittest extension offering automatic test \ suite discovery, simplified test authoring, \ and output capture. Nose provides an alternate \ test discovery and running process for \ unittest, one that is intended to mimic the \ behavior of py.test as much as is reasonably \ possible without resorting to magic. platforms darwin homepage http://somethingaboutorange.com/mrl/projects/nose/ master_sites ${homepage} distname nose-${version} depends_lib port:py26-setuptools checksums md5 00789d016f81ec52f666f020c644447e \ sha1 696530bb81d04d57277b1c8ca554739e98cc7652 \ rmd160 3a3aa22fd1f1647d4cd9ad2374dca3c58ca78e22 post-patch { reinplace "s|man/man|share/man/man|" ${worksrcpath}/setup.py # One of the tests fails if this directory does not exist file mkdir ${worksrcpath}/functional_tests/support/empty } post-destroot { set branch 2.6 set framewpath ${frameworks_dir}/Python.framework set framewdir ${framewpath}/Versions/${branch} ln -s ${framewdir}/share/man/man1/nosetests.1 ${destroot}${prefix}/share/man/man1/nosetests${branch}.1 ln -s ${python.prefix}/bin/nosetests ${destroot}${prefix}/bin/nosetests-${branch} xinstall -m 644 -W ${worksrcpath} \ AUTHORS CHANGELOG NEWS README.txt \ ${destroot}${prefix}/share/doc/${name} file copy ${worksrcpath}/doc ${destroot}${prefix}/share/doc/${name}/html file delete ${destroot}${prefix}/share/doc/${name}/examples file copy ${worksrcpath}/examples ${destroot}${prefix}/share/doc/${name} } test.run yes test.cmd ${python.bin} setup.py test livecheck.check regex livecheck.url ${homepage} livecheck.regex "Current version: (\\d+(?:\\.\\d+)*)"