Ticket #48770: Portfile

File Portfile, 1.5 KB (added by mdeaudelin (Mathieu Deaudelin-Lemay), 9 years ago)

Proposed Portfile for new port.

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 135880 2015-05-06 11:23:51Z petr@macports.org $
3
4PortSystem          1.0
5PortGroup           python 1.0
6
7set _name           hpack
8set _n              [string index ${_name} 0]
9
10name                py-${_name}
11version             1.1.0
12categories-append   net
13platforms           darwin
14supported_archs     noarch
15license             MIT
16
17maintainers         mdeaudelin.net:macports openmaintainer
18
19description         Pure-Python HPACK header compression
20long_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 its available.
25
26homepage            https://pypi.python.org/pypi/${_name}/${version}
27
28distname            ${_name}-${version}
29master_sites        https://pypi.python.org/packages/source/${_n}/${_name}/
30
31checksums           md5     9928b4285029292db7fa8e16fcbdaa8d \
32                    rmd160  dbb3a6f060822e9cbd12c2e5205edf3d528b5fec \
33                    sha256  1a4832961ac0acb0d124d9db0bcb5ab44d61c8d8466c9a3b59d49aceeca91d11
34
35python.versions     27 34
36
37if {${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}