source: trunk/dports/python/py-nose/Portfile @ 83769

Last change on this file since 83769 was 83769, checked in by jmr@…, 8 years ago

py-nose: update to 1.1.2

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.6 KB
Line 
1# -*- 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
2# $Id: Portfile 83769 2011-09-10 19:46:17Z jmr@macports.org $
3
4PortSystem                      1.0
5PortGroup           python 1.0
6
7set my_name         nose
8name                            py-${my_name}
9version                         1.1.2
10categories-append       www
11license                         LGPL-2+
12maintainers                     akitada mcalhoun openmaintainer
13description                     A Python unittest extension.
14long_description \
15    A unittest extension offering automatic test \
16    suite discovery, simplified test authoring, \
17    and output capture. Nose provides an alternate \
18    test discovery and running process for \
19    unittest, one that is intended to mimic the \
20    behavior of py.test as much as is reasonably \
21    possible without resorting to magic.
22
23platforms                       darwin
24supported_archs         noarch
25
26homepage                        http://somethingaboutorange.com/mrl/projects/${my_name}
27master_sites            http://pypi.python.org/packages/source/n/${my_name}
28distname                        ${my_name}-${version}
29
30checksums           md5     144f237b615e23f21f6a50b2183aa817 \
31                    sha256  b1ba12c1c45323fd8695be68ce7228456b86e51234f167027ebbc4ccda852c61
32
33python.versions     24 25 26 27 31 32
34
35# already installs version-suffixed executables
36python.link_binaries no
37
38if {$subport != $name} {
39    depends_lib         port:py${python.version}-distribute
40
41    post-patch {
42        reinplace "s|man/man|share/man/man|" ${worksrcpath}/setup.py
43   
44        # One of the tests fails if this directory does not exist
45        file mkdir ${worksrcpath}/functional_tests/support/empty
46    }
47
48    post-destroot {
49        if {${python.version} == "24" || ${python.version} == "25"} {
50            move ${destroot}${prefix}/share/man/man1/nosetests.1 ${destroot}${prefix}/share/man/man1/nosetests${python.branch}.1
51            delete ${destroot}${prefix}/bin/nosetests
52        } else {
53            ln -s ${python.prefix}/bin/nosetests-${python.branch} ${destroot}${prefix}/bin/
54            ln -s ${python.prefix}/share/man/man1/nosetests.1 ${destroot}${prefix}/share/man/man1/nosetests${python.branch}.1
55        }
56
57        xinstall -m 644 -W ${worksrcpath} \
58            AUTHORS CHANGELOG NEWS README.txt \
59            ${destroot}${prefix}/share/doc/${subport}
60   
61        file copy ${worksrcpath}/doc ${destroot}${prefix}/share/doc/${subport}/html
62   
63        file delete ${destroot}${prefix}/share/doc/${subport}/examples
64        file copy ${worksrcpath}/examples ${destroot}${prefix}/share/doc/${subport}
65    }
66
67    test.run  yes
68    test.cmd  ${python.bin} setup.py test
69}
70
71livecheck.type   regex
72livecheck.url    ${master_sites}
73livecheck.regex     "${my_name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"
Note: See TracBrowser for help on using the repository browser.