# -*- 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-iplib
version             1.2.1
revision            0
categories-append   net
license             BSD
platforms           {darwin any}
supported_archs     noarch
maintainers         nomaintainer
description         convert amongst many different IPv4 notations
long_description    iplib is a Python module useful to convert amongst \
                    many different notations and to manage couples of \
                    address/netmask in the CIDR notation.

homepage            https://github.com/alberanid/python-iplib

checksums           rmd160  183dcc8105ca9e6588e11ed8260a584f1260921d \
                    sha256  dd55f6accded7f18053f930fe72acc4c5a55d7c028698373127c84f836399ab9 \
                    size    10896
python.versions     27

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

    post-destroot {
        set docdir ${prefix}/share/doc/${subport}
        xinstall -d ${destroot}${docdir}
        xinstall -m 0644 -W ${worksrcpath} README.md \
            ${destroot}${docdir}
    }

}
