# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4

PortSystem          1.0
PortGroup           python 1.0

name                py-fabio
version             0.9.0
revision            0

platforms           darwin
universal_variant   no
license             MIT
maintainers         {ill.fr:coquelleni @coquellen} openmaintainer

description         Reading and handling data from two-dimensional X-ray detectors.
long_description \
    FabIO is a Python module written for easy and transparent reading of raw \
    two-dimensional data from various X-ray detectors. The module provides \
    a function for reading any image and returning a fabioimage object which \
    contains both metadata (header information) and the raw data. All \
    fabioimage object offer additional methods to extract information about \
    the image and to open other detector images from the same data series.

homepage            https://github.com/silx-kit/fabio
master_sites        pypi:[string index ${python.rootname} 0]/${python.rootname}
distname            fabio-${version}

checksums           rmd160  ce92aea3c292ecc49abc9620f5237cd265b6fdf2 \
                    sha256  e8f357e24a7c128d9f9c01981de14fd092c9a4adf9896251402ca4d2fa382d1e \
                    size    1189121

python.versions     27 35 36 37

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

    test.run        yes

    post-destroot {
        set docdir ${prefix}/share/doc/${subport}
        xinstall -d ${destroot}${docdir}
        xinstall -m 0644 -W ${worksrcpath} README.rst copyright \
            ${destroot}${docdir}
    }

    livecheck.type  none

    notes "If fabio_viewer is needed, install py${python.version}-pyqt4"
}
