source: trunk/dports/python/py-backports-ssl_match_hostname/Portfile

Last change on this file was 149048, checked in by stromnov@…, 14 months ago

py-backports-ssl_match_hostname: add support for py34 (#51495)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.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 149048 2016-05-26 14:04:58Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           python 1.0
6
7name                py-backports-ssl_match_hostname
8version             3.5.0.1
9revision            0
10categories-append   devel
11platforms           darwin
12license             PSF
13supported_archs     noarch
14
15python.versions     27 33 34
16
17maintainers         stromnov openmaintainer
18
19description         The ssl.match_hostname() function from Python 3.5
20long_description    ${description}
21
22homepage            http://bitbucket.org/brandon/backports.ssl_match_hostname
23master_sites        pypi:b/backports.ssl_match_hostname/
24
25distname            backports.ssl_match_hostname-${version}
26
27checksums           rmd160  3e7112fd62bcef2bb526b7c60e782aa75ee5daac \
28                    sha256  502ad98707319f4a51fa2ca1c677bd659008d27ded9f6380c79e8932e38dcdf2
29
30if {${name} ne ${subport}} {
31    depends_lib-append  port:py${python.version}-backports \
32                        port:py${python.version}-setuptools
33
34    post-destroot {
35        foreach f {__init__.py __init__.pyc __init__.pyo __pycache__} {
36            set fp "${destroot}${python.pkgd}/backports/$f"
37            if {[file exists ${fp}]} {
38                file delete -force ${fp}
39            }
40        }
41    }
42
43    livecheck.type      none
44} else {
45    livecheck.type      regex
46    livecheck.url       https://pypi.python.org/pypi/backports.ssl_match_hostname/json
47    livecheck.regex     {backports\.ssl_match_hostname-(\d+(?:\.\d+)*)\.[tz]}
48}
Note: See TracBrowser for help on using the repository browser.