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

PortSystem 1.0
PortGroup python 1.0

name			py-log4py
version			1.3
revision		1
categories-append	devel
license			MIT
maintainers		nomaintainer
platforms		darwin freebsd
supported_archs	noarch
description		log4py is a python logging module similar to log4j.
long_description	log4py is a python logging module similar to log4j. It \
				supports logging to files (including logfile rotation) or to \
				stdout/stderr, variable log-levels, configurable output \
				formats and configuration via configuration files.

homepage		http://www.its4you.at/english/log4py.html
master_sites	sourceforge:log4py
distname		log4py-${version}
checksums		md5 dc250a8a899c7e70464d683dfc3bdc4f

python.versions	24

if {$subport != $name} {
    post-destroot	{
        xinstall -m 644 -W ${worksrcpath}/doc AUTHORS COPYING ChangeLog \
            LICENSE ${destroot}${prefix}/share/doc/${subport}
        xinstall -m 644 -W ${worksrcpath}/doc/html footer.template \
            header.template index.html indices.html \
            log4py.FileAppender.html log4py.Logger.html log4py.css \
            log4py.html ${destroot}${prefix}/share/doc/${subport}
        xinstall -m 644 -W ${worksrcpath} readme.txt database/mysql.readme \
            database/mysql.sql ${destroot}${prefix}/share/doc/${subport}
        xinstall -m 644 -W ${worksrcpath} log4py-test.py log4py-classtest.py \
            log4py.conf ${destroot}${prefix}/share/doc/${subport}/examples
    }
}
