# -*- 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 117950 2014-03-17 18:21:57Z mojca@macports.org $

PortSystem          1.0
PortGroup           python 1.0

set _name           radical.utils
set _n              [string index ${_name} 0]

name                py-radical-utils
version             0.6.2
categories-append   net parallel devel
platforms           darwin
supported_archs     noarch
license             MIT

maintainers         bo.ingv.it:Peter.Danecek openmaintainer

description         Shared code and tools for various Radical Group projects

long_description    This Python package contains shared code and tools for \
                    various Radical Group projects. Sometimes we call it the \
                    Radical Kitchen Sink.

homepage            https://github.com/saga-project/${_name}/

distname            ${_name}-${version}
master_sites        https://pypi.python.org/packages/source/${_n}/${_name}/

checksums           md5     dc54498c56ac5a3fceddcbc5d0aad287 \
                    rmd160  f0a4b9178b514c1f250196af832947c6fd38ecc7 \
                    sha256  af2fc46900c5e8d4dc2f2784043c1729892c182be67060a8b591deb54b7ce0f1

python.versions     26 27

if {${name} ne ${subport}} {
    depends_build-append    port:py${python.version}-setuptools
    depends_lib-append      port:py${python.version}-colorama

    # Adding documentation
    post-destroot {
        set dest_doc ${destroot}${prefix}/share/doc/${subport}
        xinstall -d  ${dest_doc}
        xinstall -m 755 -W ${worksrcpath} \
            CHANGES.md \
            LICENSE.md \
            README.md \
                ${dest_doc}
    }
    livecheck.type  none
} else {
    livecheck.type  regex
    livecheck.url   ${master_sites}
    livecheck.regex ">${_name}-(\\d+(\\.\\d+)+)\\${extract.suffix}<"
}
