# $Id: Portfile 114324 2013-12-05 08:44:51Z ryandesign@macports.org $

PortSystem 1.0
PortGroup python 1.0

name			py-nevow
version			0.9.33
revision                0
license			MIT
platforms		darwin
supported_archs	noarch
maintainers		nomaintainer
description		A Web Application Construction Kit
long_description	Nevow is a next-generation web application templating \
					system, based on the ideas developed in the Twisted Woven \
					package. Its main focus is on separating the HTML template \
					from both the business logic and the display logic, while \
					allowing the programmer to write pure Python code as much \
					as possible.

distname		Nevow-${version}
homepage		http://divmod.org/trac/wiki/DivmodNevow
master_sites	        http://divmod.org/trac/attachment/wiki/SoftwareReleases/${distfiles}?format=raw&dummy= \
	            http://distfiles.macports.org/python/
checksums		md5     328898bca9a45904d42e2962250fb4a7 \
			sha1    862ecf171c398d79887cdd9122709bff139a4e72 \
			rmd160  d3d953758499bf0f5af23df38ca7fdc6b1d26834

python.versions	25

if {${name} ne ${subport}} {
    depends_lib-append	port:py${python.version}-twisted

    post-destroot {
        xinstall -d ${destroot}${prefix}/share/doc/${subport}
        file copy ${worksrcpath}/doc/ \
            ${destroot}${prefix}/share/doc/${subport}
        file delete ${destroot}${prefix}/share/doc/${subport}/examples
        file copy ${worksrcpath}/examples \
            ${destroot}${prefix}/share/doc/${subport}/examples
        xinstall -m 644 -W ${worksrcpath} LICENSE README \
            ${destroot}${prefix}/share/doc/${subport}
    }
}
