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

Last change on this file was 148976, checked in by raimue@…, 14 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: 1.8 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
6
7name                py-unittest2
8version             0.5.1
9revision            1
10license             PSF
11maintainers         aronnax openmaintainer
12python.versions     26 27 33 34
13
14description         New features in the unittest library
15
16long_description    \
17    unittest2 is a backport of the new features added to the unittest testing \
18    framework in Python 2.7. It is tested to run on Python 2.4 - 2.7. To use \
19    unittest2 instead of unittest simply replace import unittest with \
20    import unittest2.
21
22platforms           darwin
23supported_archs     noarch
24
25homepage            http://pypi.python.org/pypi/unittest2
26
27if {${name} eq ${subport}} {
28    livecheck.type      regex
29    livecheck.url       {http://pypi.python.org/pypi?:action=doap&name=unittest2}
30    livecheck.regex     {<release><Version><revision>([^<]+)</revision></Version></release>}
31} else {
32    livecheck.type      none
33
34    if {${python.version} < 30} {
35        master_sites        pypi:u/unittest2/
36        distname            unittest2-${version}
37
38        checksums           md5     a0af5cac92bbbfa0c3b0e99571390e0f \
39                            rmd160  aa83b1d6dedaa71a9e6d3bed4028e855bef04821 \
40                            sha256  aa5de8cdf654d843379c97bd1ee240e86356d3355a97b147a6f3f4d149247a71
41    } else {
42        master_sites        pypi:u/unittest2py3k/
43        distname            unittest2py3k-${version}
44
45        checksums           md5     8824ff92044310d9365f90d892bf0f09 \
46                            rmd160  119f837e7af015fc83e8967fa1388f8745d9895f \
47                            sha256  78249c5f1ac508a34d9d131d43a89d77bf154186f3ea5f7a6b993d3f3535d403
48    }
49}
Note: See TracBrowser for help on using the repository browser.