# -*- 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

PortSystem          1.0
PortGroup           python 1.0

name                py-netifaces
version             0.8
platforms           darwin
maintainers         {ryandesign @ryandesign} openmaintainer
license             MIT

description         an easy way to get the address(es) of the machine’s network interfaces from Python

long_description    ${description}

homepage            https://alastairs-place.net/projects/netifaces/
master_sites        ${homepage}

distname            netifaces-${version}

checksums           rmd160  e5204d8415d1ae1ec84118eeb86928a1ea770f18 \
                    sha256  53a711038db3d6e5cf7129d6f751185fd052f830f12f271fbfe17bd2671ab1ec

python.versions     27

if {${name} ne ${subport}} {
    depends_build-append port:py${python.version}-setuptools
}

livecheck.type      regex
livecheck.regex     netifaces-(\[0-9.\]+)${extract.suffix}