# -*- 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
# $Id: Portfile 114324 2013-12-05 08:44:51Z ryandesign@macports.org $

PortSystem          1.0
PortGroup           python 1.0

name                py-cidrize
version             0.6.4
revision            0
categories-append   devel
license             BSD
platforms           darwin
supported_archs     noarch

maintainers         stromnov openmaintainer

description         Cidrize parses IPv4/IPv6 addresses, CIDRs, ranges, and wildcard matches.
long_description    ${description}

homepage            http://github.com/jathanism/cidrize/
master_sites        http://pypi.python.org/packages/source/c/cidrize/
distname            cidrize-${version}

checksums           rmd160  b3cd999fcb182730242b331d872a52635d8df8ad \
                    sha256  fd781b33dca2ceced97bb3621bb05de90da7bb58237d2646fd238fe30eacdbd4

python.versions     25 26 27

if {${name} ne ${subport}} {
    depends_build       port:py${python.version}-setuptools
    depends_lib-append  port:py${python.version}-netaddr
    livecheck.type      none
} else {
    livecheck.type      regex
    livecheck.url       ${master_sites}
    livecheck.regex     "cidrize-(\\d+(?:\\.\\d+)*)${extract.suffix}"
}
