# -*- 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 91076 2012-03-23 15:05:42Z phw@macports.org $

PortSystem      1.0
PortGroup       python 1.0

name            py-docx
version         0.0.2
python.versions 26 27
python.default_version 27
revision        1
categories      python devel 
platforms       darwin
license         MIT
maintainers     phw openmaintainer
description     The docx module creates, reads and writes Microsoft Office Word 2007 docx files
long_description  The module was created when I was looking for a Python support for MS Word .doc files,\
                  but could only find various hacks involving COM automation,\
                  calling .net or Java, or automating OpenOffice or MS Office.

homepage        https://github.com/mikemaccana/python-docx

fetch.type      git
git.url         ${homepage}.git
git.branch      7f0781e7a86ba26d69f5e09850ef7e4fc35d3795

livecheck.type  regex
livecheck.url   https://raw.github.com/mikemaccana/python-docx/master/setup.py
livecheck.regex   {version='(\d+(?:\.\d+)*)'}

if {${name} != ${subport}} {
    depends_lib-append  port:py${python.version}-lxml
}
