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

PortSystem 1.0
PortGroup python 1.0

name			py-htmlgen
version			2.2
revision		1
categories-append	textproc
license			MIT
platforms		darwin
supported_archs	noarch
maintainers		nomaintainer
description		python class library for the generation of HTML documents
long_description	HTMLgen is a class library for the generation of HTML \
				documents with Python scripts. It's used when you want to \
				create HTML pages containing information which changes from \
				time to time. For example, you might want to have a page which \
				provides an overall system summary of data collected nightly. \
				Or maybe you have a catalog of data and images that you would \
				like formed into a spiffy set of web pages for the world to \
				browse. Python is a great scripting language for these tasks \
				and with HTMLgen it is very straightforward to construct \
				objects which are rendered out into consistently structured \
				web pages. Of course, CGI scripts written in Python can take \
				advantage of these classes as well.

homepage		http://starship.python.net/crew/friedrich/
master_sites	freebsd
distname		HTMLgen
checksums		md5 cd20f8b63d3215e57289ddbf56c97f48

python.versions	24 26

if {${name} ne ${subport}} {
    post-extract	{
        file copy ${filespath}/setup.py ${worksrcpath}
        file delete ${worksrcpath}/installp.py ${worksrcpath}/HTMLtest.py
        reinplace "s|VERSION|${version}|g" ${worksrcpath}/setup.py
    }

    post-destroot	{
        file delete -force ${destroot}${prefix}/share/doc/${subport}
        file copy ${worksrcpath}/html ${destroot}${prefix}/share/doc/${subport}
        xinstall -m 644 -W ${worksrcpath} ChangeLog README \
            ${destroot}${prefix}/share/doc/${subport}
    }
}
