# -*- 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

PortSystem          1.0
PortGroup           python 1.0

name                py-xlwt
version             1.3.0
python.versions     27 35 36
platforms           darwin
maintainers         {snc @nerdling} openmaintainer
license             BSD
description         python module for writing Excel spreadsheets
long_description    xlwt is a library for generating spreadsheet \
                    files that are compatible with Excel 97/2000/XP/2003, \
                    OpenOffice.org Calc, and Gnumeric. xlwt has full support \
                    for Unicode. Excel spreadsheets can be generated on any \
                    platform without needing Excel or a COM server. The only \
                    requirement is Python 2.3 to 2.6. \
                    xlwt is a fork of pyExcelerator.

homepage            http://www.python-excel.org
master_sites        pypi:x/xlwt/
distname            xlwt-${version}
checksums           md5     4b1ca8a3cef3261f4b4dc3f138e383a8 \
                    rmd160  d8806e52767dc5179d21a76a21385b7e3a5d1dd5 \
                    sha256  c59912717a9b28f1a3c2a98fd60741014b06b043936dcecbc113eaaada156c88

if {${name} ne ${subport}} {
    livecheck.type  none
    depends_build-append port:py${python.version}-setuptools
} else {
    livecheck.type  regex
    livecheck.url   https://pypi.python.org/pypi/xlwt
    livecheck.regex xlwt (\\d+\\.\\d+\\.\\d+)
}
