# -*- 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 91958 2012-04-14 02:26:57Z snc@macports.org $

PortSystem          1.0
PortGroup           python 1.0

name                py-xlrd
version             0.7.7
python.versions     25 26 27
python.default_version  27
categories          python
platforms           darwin
maintainers         snc openmaintainer
license             BSD
description         module to extract data from Microsoft Excel spreadsheet files
long_description    xlrd is a Python module to extract data from Microsoft \
                    Excel spreadsheet files.

homepage            http://www.python-excel.org
master_sites        http://pypi.python.org/packages/source/x/xlrd/
distname            xlrd-${version}
checksums           rmd160  3126668d25bb706d6ad236183784b1df6bbf45b7 \
                    sha256  e72fe62d339fc06418bba68783a5bd60eb8792663ad546cd04e5b5ece5f7ee0d

if {$subport != $name} {
    if {${python.version} == 25} {
        post-destroot {
            move ${destroot}${prefix}/bin/runxlrd.py ${destroot}${prefix}/bin/runxlrd.py-2.5
        }
    }

    livecheck.type      none
} else {
    livecheck.type      regex
    livecheck.url       http://pypi.python.org/pypi/xlrd
    livecheck.regex     xlrd (\\d+\\.\\d+\\.\\d+)
}
