# $Id: Portfile 106453 2013-05-27 05:53:14Z jmr@macports.org $

PortSystem          1.0
PortGroup           python 1.0

name                py-colormath
version             1.0.8
categories-append   math
license             BSD
maintainers         nomaintainer
description         Simplify color math operations in python
long_description \
   The python-colormath is a python module that abstracts common color math \
   operations

platforms           darwin
supported_archs     noarch

homepage            http://code.google.com/p/python-colormath/
master_sites        http://pypi.python.org/packages/source/c/colormath/
distname            colormath-${version}

checksums           md5     ab44959e09b2634763449fc0d0b303d3 \
                    sha1    f25ab70231ee77e5d81b4367f22b73118cfd82d8 \
                    rmd160  2dd69548feb436e0b90b3fbff30a2d74745bbd4a

python.versions     25 26

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

    post-destroot {
       xinstall -m 755 -d ${destroot}${prefix}/share/doc/${subport}
       xinstall -m 644 -W ${worksrcpath} README.rst LICENSE.txt \
          ${destroot}${prefix}/share/doc/${subport}
    }
    livecheck.type      none
} else {
    livecheck.type      regex
    livecheck.url       [lindex ${master_sites} 0]
    livecheck.regex     {colormath-([0-9.]+)\.tar\.gz}
}
