# -*- coding: utf-8; mode: tcl; tab-width: 4; truncate-lines: t; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
# $Id: Portfile 90949 2012-03-19 09:29:49Z ryandesign@macports.org $

PortSystem 1.0
PortGroup python 1.0

name            py-ipy
version         0.75

categories      python devel net
maintainers     vmunix.org:torstenb \
                openmaintainer
description     python module for handling IPv4 and IPv6 addresses and networks
long_description    IPy is a Python module for handling IPv4 and IPv6 \
                addresses and networks in a fashion similar to perl's \
                Net::IP and friends. The IP class allows a comfortable \
                parsing and handling for most notations in use for \
                IPv4 and IPv6 addresses and networks.

platforms       darwin
license         BSD

homepage        https://github.com/haypo/python-ipy
master_sites    http://pypi.python.org/packages/source/I/IPy/

distname        IPy-${version}

python.versions 25 26 27
python.default_version 27


checksums       rmd160  f31b64d62d77a37b5fb66bb6bf047258426c7bed \
                sha256  0fa14af4792cc0b6f61cb5a1cd8fbdf7ddbaa6864ef82681021b750e9e6b2b61

if {${name} != ${subport}} {
    post-destroot {
        set docdir ${prefix}/share/doc/${subport}
        xinstall -m 644 ${worksrcpath}/README ${destroot}${docdir}
    }
}
