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

Last change on this file was 148976, checked in by raimue@…, 16 months ago

Mass update of python ports for master_sites pypi

The pypi hosting site changed the naming scheme for new uploads. While old URLs
continue to work, this possibly breaks updates as master_sites would need to be
changed. This patch updates all previously hardcoded references to
pypi.python.org to the pypi: mirror sites, which was already updated to check
at both the old and new location. See #51391.

Overriding maintainers as this is a mass update of ports.

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