# -*- 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 66106 2010-04-06 04:15:31Z jmr@macports.org $

PortSystem          1.0
PortGroup           python25 1.0

name                py25-configobj
version             4.5.2
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
platforms           darwin
if {[info exists supported_archs]} {
    supported_archs noarch
}
homepage            http://www.voidspace.org.uk/python/configobj.html
master_sites        sourceforge:configobj
distname            configobj-${version}
use_zip             yes
checksums           md5 b84e6ce4f8ef5fa1c466cc3561099a66 \
                    sha1 6a9e72cf55156a35abb7eb4df756b6884cfb77b6 \
                    rmd160 a69935ec51fd267070d8c0517b1b39adfdd5c275
post-destroot {
    foreach f [glob -directory ${worksrcpath}/docs *] {
        copy $f ${destroot}${prefix}/share/doc/${name}/[file tail $f]
    }
}
