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 135880 2015-05-06 11:23:51Z petr@macports.org $ |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | PortGroup python 1.0 |
---|
6 | |
---|
7 | set _name hpack |
---|
8 | set _n [string index ${_name} 0] |
---|
9 | |
---|
10 | name py-${_name} |
---|
11 | version 1.1.0 |
---|
12 | categories-append net |
---|
13 | platforms darwin |
---|
14 | supported_archs noarch |
---|
15 | license MIT |
---|
16 | |
---|
17 | maintainers mdeaudelin.net:macports openmaintainer |
---|
18 | |
---|
19 | description Pure-Python HPACK header compression |
---|
20 | long_description \ |
---|
21 | This module contains a pure-Python HTTP/2 header encoding (HPACK) \ |
---|
22 | logic for use in Python programs that implement HTTP/2. It also \ |
---|
23 | contains a compatibility layer that automatically enables the use \ |
---|
24 | of nghttp2 if it’s available. |
---|
25 | |
---|
26 | homepage https://pypi.python.org/pypi/${_name}/${version} |
---|
27 | |
---|
28 | distname ${_name}-${version} |
---|
29 | master_sites https://pypi.python.org/packages/source/${_n}/${_name}/ |
---|
30 | |
---|
31 | checksums md5 9928b4285029292db7fa8e16fcbdaa8d \ |
---|
32 | rmd160 dbb3a6f060822e9cbd12c2e5205edf3d528b5fec \ |
---|
33 | sha256 1a4832961ac0acb0d124d9db0bcb5ab44d61c8d8466c9a3b59d49aceeca91d11 |
---|
34 | |
---|
35 | python.versions 27 34 |
---|
36 | |
---|
37 | if {${name} ne ${subport}} { |
---|
38 | livecheck.type none |
---|
39 | } else { |
---|
40 | livecheck.type regex |
---|
41 | livecheck.url https://pypi.python.org/pypi/${_name}/json |
---|
42 | livecheck.regex "\"${_name}-(\[.\\d\]+)\\${extract.suffix}\"" |
---|
43 | } |
---|