# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4
# $Id: Portfile 70583 2010-08-14 13:56:39Z ryandesign@macports.org $

PortSystem          1.0
PortGroup           python26 1.0

name                py26-configobj
version             4.6.0
maintainers         akitada openmaintainer
description         Config file reading, writing and validation.
long_description    ConfigObj is a simple but powerful config file \
                    reader and writer: an ini file round tripper. \
                    Its main feature is that it is very easy to use, \
                    with a straightforward programmer's interface and \
                    a simple syntax for config files. \
                    It has lots of other features though : \
                    \
                    * Nested sections (subsections), to any level \
                    * List values \
                    * Multiple line values \
                    * String interpolation (substitution) \
                    * Integrated with a powerful validation system \
                    \
                        - including automatic type checking/conversion \
                        - repeated sections \
                        - and allowing default values \
                    \
                    * When writing out config files, ConfigObj \
                      preserves all comments and the order of members \
                      and sections \
                    * Many useful methods and options for working with \
                      configuration files (like the 'reload' method) \
                    * Full Unicode support
homepage            http://www.voidspace.org.uk/python/configobj.html

platforms           darwin
supported_archs     noarch

master_sites        sourceforge:configobj
distname            configobj-${version}
use_zip             yes

checksums           md5     286907e06061e272137f48e5f611a526 \
                    sha1    b6f2863c67c461702188f3eae0d57fa7dc4ceac6 \
                    rmd160  d2b102a6642237ef3780c5efc9de48356ed472fc

post-destroot {
    foreach f [glob -directory ${worksrcpath}/docs *] {
        copy $f ${destroot}${prefix}/share/doc/${name}/[file tail $f]
    }
}
