117724f21a94ff32f773af4c37be88fe0d2970e3~suv# -*- 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
117724f21a94ff32f773af4c37be88fe0d2970e3~suv# $Id: Portfile 121661 2014-07-03 17:50:11Z mf2k@macports.org $
117724f21a94ff32f773af4c37be88fe0d2970e3~suvPortSystem 1.0
117724f21a94ff32f773af4c37be88fe0d2970e3~suvPortGroup python 1.0
117724f21a94ff32f773af4c37be88fe0d2970e3~suvPortGroup select 1.0
117724f21a94ff32f773af4c37be88fe0d2970e3~suvset my_name nose
117724f21a94ff32f773af4c37be88fe0d2970e3~suvname py25-${my_name}
117724f21a94ff32f773af4c37be88fe0d2970e3~suvversion 1.3.1
117724f21a94ff32f773af4c37be88fe0d2970e3~suvcategories-append www
117724f21a94ff32f773af4c37be88fe0d2970e3~suvlicense LGPL-2+
117724f21a94ff32f773af4c37be88fe0d2970e3~suvmaintainers mcalhoun openmaintainer
117724f21a94ff32f773af4c37be88fe0d2970e3~suvdescription A Python unittest extension.
117724f21a94ff32f773af4c37be88fe0d2970e3~suvlong_description \
117724f21a94ff32f773af4c37be88fe0d2970e3~suv A unittest extension offering automatic test \
117724f21a94ff32f773af4c37be88fe0d2970e3~suv suite discovery, simplified test authoring, \
117724f21a94ff32f773af4c37be88fe0d2970e3~suv and output capture. Nose provides an alternate \
117724f21a94ff32f773af4c37be88fe0d2970e3~suv test discovery and running process for \
117724f21a94ff32f773af4c37be88fe0d2970e3~suv unittest, one that is intended to mimic the \
117724f21a94ff32f773af4c37be88fe0d2970e3~suv behavior of py.test as much as is reasonably \
117724f21a94ff32f773af4c37be88fe0d2970e3~suv possible without resorting to magic.
117724f21a94ff32f773af4c37be88fe0d2970e3~suvplatforms darwin
117724f21a94ff32f773af4c37be88fe0d2970e3~suvsupported_archs noarch
117724f21a94ff32f773af4c37be88fe0d2970e3~suvhomepage http://somethingaboutorange.com/mrl/projects/${my_name}
117724f21a94ff32f773af4c37be88fe0d2970e3~suvmaster_sites http://pypi.python.org/packages/source/n/${my_name}/
117724f21a94ff32f773af4c37be88fe0d2970e3~suvdistname ${my_name}-${version}
117724f21a94ff32f773af4c37be88fe0d2970e3~suvchecksums md5 672398801ddf5ba745c55c6eed79c5aa \
117724f21a94ff32f773af4c37be88fe0d2970e3~suv rmd160 7bf311d3d54f2ccb372dea331708c475b992ccec \
117724f21a94ff32f773af4c37be88fe0d2970e3~suv sha256 85273b87ab3db9307e3b1452b071e25c1db1cc812bc337d2a97ea0b0cf2ab6ba
117724f21a94ff32f773af4c37be88fe0d2970e3~suv# already installs version-suffixed executables
117724f21a94ff32f773af4c37be88fe0d2970e3~suvdepends_run-append port:nosetests_select
117724f21a94ff32f773af4c37be88fe0d2970e3~suvif {${name} eq ${subport}} {
117724f21a94ff32f773af4c37be88fe0d2970e3~suv revision 100
117724f21a94ff32f773af4c37be88fe0d2970e3~suv depends_lib port:py${python.version}-setuptools
117724f21a94ff32f773af4c37be88fe0d2970e3~suv post-patch {
117724f21a94ff32f773af4c37be88fe0d2970e3~suv reinplace "s|man/man|share/man/man|" ${worksrcpath}/setup.py
117724f21a94ff32f773af4c37be88fe0d2970e3~suv # One of the tests fails if this directory does not exist
117724f21a94ff32f773af4c37be88fe0d2970e3~suv file mkdir ${worksrcpath}/functional_tests/support/empty
117724f21a94ff32f773af4c37be88fe0d2970e3~suv post-destroot {
117724f21a94ff32f773af4c37be88fe0d2970e3~suv if {${python.version} == "24" || ${python.version} == "25"} {
117724f21a94ff32f773af4c37be88fe0d2970e3~suv move ${destroot}${prefix}/share/man/man1/nosetests.1 ${destroot}${prefix}/share/man/man1/nosetests${python.branch}.1
117724f21a94ff32f773af4c37be88fe0d2970e3~suv delete ${destroot}${prefix}/bin/nosetests
117724f21a94ff32f773af4c37be88fe0d2970e3~suv ln -s ${python.prefix}/bin/nosetests-${python.branch} ${destroot}${prefix}/bin/
117724f21a94ff32f773af4c37be88fe0d2970e3~suv ln -s ${python.prefix}/share/man/man1/nosetests.1 ${destroot}${prefix}/share/man/man1/nosetests${python.branch}.1
117724f21a94ff32f773af4c37be88fe0d2970e3~suv xinstall -m 644 -W ${worksrcpath} \
117724f21a94ff32f773af4c37be88fe0d2970e3~suv AUTHORS CHANGELOG NEWS README.txt \
117724f21a94ff32f773af4c37be88fe0d2970e3~suv ${destroot}${prefix}/share/doc/${subport}
117724f21a94ff32f773af4c37be88fe0d2970e3~suv file copy ${worksrcpath}/doc ${destroot}${prefix}/share/doc/${subport}/html
117724f21a94ff32f773af4c37be88fe0d2970e3~suv file delete ${destroot}${prefix}/share/doc/${subport}/examples
117724f21a94ff32f773af4c37be88fe0d2970e3~suv file copy ${worksrcpath}/examples ${destroot}${prefix}/share/doc/${subport}
117724f21a94ff32f773af4c37be88fe0d2970e3~suv# livecheck.url ${master_sites}
117724f21a94ff32f773af4c37be88fe0d2970e3~suv# livecheck.regex "${my_name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"