# $Id: Portfile 102584 2013-02-05 04:25:13Z larryv@macports.org $

PortSystem 1.0
PortGroup python 1.0

name			py-dns
version			2.3.4
categories-append	net
license			PSF
maintainers		nomaintainer
platforms		darwin freebsd
supported_archs	noarch
description		module for performing DNS queries from python
long_description	py-dns provides a module for performing DNS queries \
				from python applications.

homepage		http://pydns.sourceforge.net/
master_sites	sourceforge:pydns
checksums		md5    f2cd357a101ad7dd2b3f353a8dad51b8 \
				sha1   5934e0f5c4d2fbb76011e5b6dcec9eee96b08652 \
				rmd160 77704bd8239d4fb67b83b586e70ccf7d43da612b
distname		pydns-${version}

python.versions	24 25 26 27

if {$subport != $name} {
    post-destroot   {
        xinstall -m 644 -W ${worksrcpath} CREDITS.txt README-guido.txt \
            README.txt ${destroot}${prefix}/share/doc/${subport}
        xinstall -m 644 -W ${worksrcpath}/tests test.py test2.py test4.py \
            test5.py testPackers.py testsrv.py \
            ${destroot}${prefix}/share/doc/${subport}/examples
    }
}
