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