# -*- 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 105405 2013-04-19 20:31:54Z snc@macports.org $

PortSystem          1.0
PortGroup           python 1.0
PortGroup           github 1.0

github.setup        python-excel xlrd 0.9.2
name                py-xlrd
version             0.9.2
python.versions     26 27 32 33
python.default_version  27
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.

master_sites        ${github.homepage}/archive/[join ${github.tag_prefix} ""]${github.version}
distname            xlrd-${version}
checksums           rmd160  eaa9fe24edaf2ce8494973893d3306ca2f521bfe \
                    sha256  718822c224f1eb56c9e4d63b083ce4bca5f2dffd17e90cb89f4d1acd9cefff5e

if {$subport != $name} {
    livecheck.type      none
} else {
    livecheck.type      regex
    livecheck.url       http://pypi.python.org/pypi/xlrd
    livecheck.regex     xlrd (\\d+\\.\\d+\\.\\d+)
}
