# $Id: Portfile 80385 2011-07-11 11:03:46Z jmr@macports.org $

PortSystem			1.0
PortGroup			python25 1.0

name				py25-nose
version				1.0.0
license             LGPL-2+
categories-append		www
maintainers			openmaintainer akitada
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
supported_archs			noarch

homepage			http://somethingaboutorange.com/mrl/projects/nose/
master_sites			${homepage}
distname			nose-${version}

depends_lib			port:py25-distribute

checksums           md5     9542d4c66e04880d8144990de76e0b88 \
                    sha1    30015cbcb201975dbb8613acb651984255458741 \

patch {
	reinplace "s|man/man|share/man/man|" ${worksrcpath}/setup.py
}

test.run            yes

post-destroot {
    set docdir ${prefix}/share/doc/${name}
    xinstall -d ${destroot}${docdir}
    xinstall -m 644 -W ${worksrcpath} AUTHORS CHANGELOG NEWS README.txt \
        lgpl.txt ${destroot}${docdir}
}

livecheck.type      regex
livecheck.regex     {/(\d+(?:\.\d+)*)/}
