# -*- 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 119470 2014-04-26 19:26:43Z snc@macports.org $

PortSystem          1.0
PortGroup           python 1.0

#PortGroup           github 1.0
#github.setup        python-excel xlrd 0.9.3

name                py-xlrd
version             0.9.3
python.versions     26 27 32 33 34
python.default_version  27
platforms           darwin
maintainers         snc openmaintainer
license             BSD
homepage            http://www.python-excel.org/
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}
master_sites        https://pypi.python.org/packages/source/x/xlrd
distname            xlrd-${version}
checksums           md5     6f3325132f246594988171bc72e1a385 \
                    rmd160  45382a5e8c98ca43f65148a1aba3b47cf7f64e93 \
                    sha256  933a35e27da7ed7712985486b53b5cfb8dd88e076e2a0bd531373d0001d2939c

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