# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
# $Id: Portfile 92345 2012-04-25 17:24:18Z jwa@macports.org $

PortSystem 1.0
PortGroup       python 1.0

name            py-xlutils
version         1.5.2
platforms       darwin
python.versions	25 26 27
python.default_version	27

maintainers     jwa openmaintainer
description     Utilities for working with Excel files
long_description \
   This package provides a collection of utilities for working with Excel files.

homepage        http://www.python-excel.org
master_sites    http://pypi.python.org/packages/source/x/xlutils/
distname        xlutils-${version}
checksums           rmd160  32724d2d6cb1e35b8a0d64ddb53c7095643afd34 \
                    sha256  5b8f2bc41983722a63009c0ab6216227d6bbc0a0f945c9cab33cd1ebac7666d0

if {$subport != $name} {
    depends_run     port:py${python.version}-xlrd \
        port:py${python.version}-xlwt\
        port:py${python.version}-errorhandler
}

if {$subport == $name} {
    livecheck.type     regex
    livecheck.url      http://pypi.python.org/pypi/xlutils
    livecheck.regex    xlutils-(\[1-9\]\\.\[0-9.\]+)\\.tar\\.\[bg\]z
} else {
    livecheck.type		none
}

