# -*- 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-saga
python.rootname     saga-python
version             0.28
categories-append   net science
platforms           {darwin any}
supported_archs     noarch
license             MIT

maintainers         {petr @petrrr} openmaintainer

description         A Simple API for Grid and Distributed Applications

long_description    \
    SAGA (Simple API for Grid Applications) defines a high-level interface to \
    the most commonly used distributed computing functionality. SAGA-Python \
    provides a Python module that is compliant with the OGF GFD.90 SAGA \
    specification. Its main focus is ease of use and simple user-space \
    deployment in heterogeneous distributed computing environments. \
    It supports a wide range of application use-cases from simple, uncoupled \
    tasks to complex workflows.

homepage            http://saga-project.github.io/${python.rootname}/

checksums           md5     ca1e7c1207beb865358f61e88afce5ec \
                    rmd160  5d82d00a6cd7919f33d553ad0982c929dfd126d5 \
                    sha256  62d3b2b7eab195af6f7654ca6e26d70d056c0339a2278e7f4a855711c7dfce68

python.versions     27

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

    depends_lib-append      port:py${python.version}-colorama \
                            port:py${python.version}-radical-utils \
                            port:py${python.version}-libcloud

    # testing only
    depends_run-append      port:py${python.version}-nose

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