# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
# $Id: Portfile 92395 2012-04-27 18:45:46Z snc@macports.org $

PortSystem 1.0
PortGroup  python 1.0

name            py-zopeinterface
version         3.8.0
revision        1
python.versions 24 25 26 27 31 32
categories      python zope
license         ZPL-2.1
platforms       darwin
maintainers     mcalhoun snc openmaintainer
description     Python interfaces for Zope
long_description    ${description}

homepage        http://old.zope.org/Products/ZopeInterface
master_sites    http://pypi.python.org/packages/source/z/zope.interface
distname        zope.interface-${version}

checksums           rmd160  07e4969655667987ec3c80057e1098f05bad3af3 \
                    sha256  1d5411ff82fd3a73bad6efb38deddb3f98d61d590344deb0cdd308e8aa94d3ff

if {${name} != ${subport}} {

post-destroot {
    xinstall -d ${destroot}${prefix}/share/doc/${subport}
    xinstall -m 644 -W ${worksrcpath} \
        CHANGES.txt  README.txt \
        ${destroot}${prefix}/share/doc/${subport}
}

test.run  yes
test.cmd  ${python.bin} setup.py

livecheck.type      none

} else {

livecheck.type      regex
livecheck.url       http://svn.zope.org/zope.interface/tags/
livecheck.regex     zope.interface\\/tags\\/(\\d+(?:\\.\\d+)*)

}
