Portfile revision 117724f21a94ff32f773af4c37be88fe0d2970e3
d3bea9aaf581073595ad7b10e92d066b5e7b7115helix# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
d3bea9aaf581073595ad7b10e92d066b5e7b7115helix# $Id: Portfile 121661 2014-07-03 17:50:11Z mf2k@macports.org $
d3bea9aaf581073595ad7b10e92d066b5e7b7115helixPortSystem 1.0
d3bea9aaf581073595ad7b10e92d066b5e7b7115helixPortGroup python 1.0
d3bea9aaf581073595ad7b10e92d066b5e7b7115helixPortGroup select 1.0
d3bea9aaf581073595ad7b10e92d066b5e7b7115helixset my_name nose
d3bea9aaf581073595ad7b10e92d066b5e7b7115helixname py25-${my_name}
d3bea9aaf581073595ad7b10e92d066b5e7b7115helixversion 1.3.1
d3bea9aaf581073595ad7b10e92d066b5e7b7115helixcategories-append www
d3bea9aaf581073595ad7b10e92d066b5e7b7115helixlicense LGPL-2+
d3bea9aaf581073595ad7b10e92d066b5e7b7115helixmaintainers mcalhoun openmaintainer
d3bea9aaf581073595ad7b10e92d066b5e7b7115helixdescription A Python unittest extension.
d3bea9aaf581073595ad7b10e92d066b5e7b7115helixlong_description \
d3bea9aaf581073595ad7b10e92d066b5e7b7115helix A unittest extension offering automatic test \
d3bea9aaf581073595ad7b10e92d066b5e7b7115helix suite discovery, simplified test authoring, \
d3bea9aaf581073595ad7b10e92d066b5e7b7115helix and output capture. Nose provides an alternate \
d3bea9aaf581073595ad7b10e92d066b5e7b7115helix test discovery and running process for \
d3bea9aaf581073595ad7b10e92d066b5e7b7115helix unittest, one that is intended to mimic the \
d3bea9aaf581073595ad7b10e92d066b5e7b7115helix behavior of py.test as much as is reasonably \
d3bea9aaf581073595ad7b10e92d066b5e7b7115helix possible without resorting to magic.
d3bea9aaf581073595ad7b10e92d066b5e7b7115helixplatforms darwin
d3bea9aaf581073595ad7b10e92d066b5e7b7115helixsupported_archs noarch
d3bea9aaf581073595ad7b10e92d066b5e7b7115helixhomepage http://somethingaboutorange.com/mrl/projects/${my_name}
d3bea9aaf581073595ad7b10e92d066b5e7b7115helixmaster_sites http://pypi.python.org/packages/source/n/${my_name}/
d3bea9aaf581073595ad7b10e92d066b5e7b7115helixdistname ${my_name}-${version}
d3bea9aaf581073595ad7b10e92d066b5e7b7115helixchecksums md5 672398801ddf5ba745c55c6eed79c5aa \
d3bea9aaf581073595ad7b10e92d066b5e7b7115helix rmd160 7bf311d3d54f2ccb372dea331708c475b992ccec \
d3bea9aaf581073595ad7b10e92d066b5e7b7115helix sha256 85273b87ab3db9307e3b1452b071e25c1db1cc812bc337d2a97ea0b0cf2ab6ba
487ddb90211ce954e6c4c3f8ed90df8b1c12ca2chelix# already installs version-suffixed executables
487ddb90211ce954e6c4c3f8ed90df8b1c12ca2chelixdepends_run-append port:nosetests_select
487ddb90211ce954e6c4c3f8ed90df8b1c12ca2chelixif {${name} eq ${subport}} {
d3bea9aaf581073595ad7b10e92d066b5e7b7115helix revision 100
d3bea9aaf581073595ad7b10e92d066b5e7b7115helix depends_lib port:py${python.version}-setuptools
d3bea9aaf581073595ad7b10e92d066b5e7b7115helix post-patch {
d3bea9aaf581073595ad7b10e92d066b5e7b7115helix reinplace "s|man/man|share/man/man|" ${worksrcpath}/setup.py
d3bea9aaf581073595ad7b10e92d066b5e7b7115helix # One of the tests fails if this directory does not exist
d3bea9aaf581073595ad7b10e92d066b5e7b7115helix file mkdir ${worksrcpath}/functional_tests/support/empty
d3bea9aaf581073595ad7b10e92d066b5e7b7115helix post-destroot {
d3bea9aaf581073595ad7b10e92d066b5e7b7115helix if {${python.version} == "24" || ${python.version} == "25"} {
d3bea9aaf581073595ad7b10e92d066b5e7b7115helix move ${destroot}${prefix}/share/man/man1/nosetests.1 ${destroot}${prefix}/share/man/man1/nosetests${python.branch}.1
d3bea9aaf581073595ad7b10e92d066b5e7b7115helix delete ${destroot}${prefix}/bin/nosetests
d3bea9aaf581073595ad7b10e92d066b5e7b7115helix ln -s ${python.prefix}/bin/nosetests-${python.branch} ${destroot}${prefix}/bin/
d3bea9aaf581073595ad7b10e92d066b5e7b7115helix ln -s ${python.prefix}/share/man/man1/nosetests.1 ${destroot}${prefix}/share/man/man1/nosetests${python.branch}.1
d3bea9aaf581073595ad7b10e92d066b5e7b7115helix xinstall -m 644 -W ${worksrcpath} \
d3bea9aaf581073595ad7b10e92d066b5e7b7115helix AUTHORS CHANGELOG NEWS README.txt \
487ddb90211ce954e6c4c3f8ed90df8b1c12ca2chelix ${destroot}${prefix}/share/doc/${subport}
d3bea9aaf581073595ad7b10e92d066b5e7b7115helix file copy ${worksrcpath}/doc ${destroot}${prefix}/share/doc/${subport}/html
487ddb90211ce954e6c4c3f8ed90df8b1c12ca2chelix file delete ${destroot}${prefix}/share/doc/${subport}/examples
487ddb90211ce954e6c4c3f8ed90df8b1c12ca2chelix file copy ${worksrcpath}/examples ${destroot}${prefix}/share/doc/${subport}
d3bea9aaf581073595ad7b10e92d066b5e7b7115helix# livecheck.url ${master_sites}
d3bea9aaf581073595ad7b10e92d066b5e7b7115helix# livecheck.regex "${my_name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"