# $Id: Portfile 130416 2014-12-30 06:41:41Z larryv@macports.org $ PortSystem 1.0 PortGroup python 1.0 name py-dnspython version 1.12.0 categories-append net license ISC platforms darwin supported_archs noarch maintainers ram openmaintainer description DNS toolkit for Python long_description \ dnspython is a DNS toolkit for Python. It supports almost all \ record types. It can be used for queries, zone transfers, and \ dynamic updates. It supports TSIG authenticated messages and EDNS0. homepage http://www.dnspython.org/ master_sites ${homepage}kits/${version} distname dnspython-${version} python.versions 26 27 33 34 checksums rmd160 e17bd5b87b45e6ca3192110bed1997be2c43861c \ sha256 03fb82af866001c4afa58c48027bcc4b80bbf0a7f27e1d861cf06393eea4724f if {${name} ne ${subport}} { if {${python.version} >= 30} { distname dnspython3-${version} master_sites ${homepage}kits3/${version} checksums rmd160 e2ac97bcc10f8c1e1f32730deabf2966754b873a \ sha256 68affac839c7283661fd9f1b4baf74911a2292a627ee2dd1c3c98186b5c812f1 } } post-destroot { if {${name} ne ${subport}} { xinstall -d -m 755 ${destroot}${prefix}/share/doc/${subport}/examples xinstall -m 644 -W ${worksrcpath} ChangeLog LICENSE README \ ${destroot}${prefix}/share/doc/${subport} xinstall -m 644 -W ${worksrcpath}/examples ddns.py e164.py \ mx.py name.py reverse.py reverse_name.py xfr.py \ ${destroot}${prefix}/share/doc/${subport}/examples } } if {${name} eq ${subport}} { livecheck.type regex livecheck.url ${homepage} livecheck.regex {is (\d+(?:\.\d+)*),} } else { livecheck.type none }