# -*- 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
PortGroup           github 1.0
github.setup        pydicom pydicom 1.0.2 v
name                py-pydicom
python.versions     27 34 35 36
platforms           darwin
license             MIT BSD
maintainers         {eborisch @eborisch} \
                    openmaintainer
supported_archs     noarch

description         Python Module for working with DICOM files

long_description    pydicom is a pure python package for working with DICOM \
                    files. It was made for inspecting and modifying DICOM \
                    files in an easy pythonic way. The modifications can be \
                    written again to a new file. As a pure python package, it \
                    should run anywhere python runs without any other \
                    requirements.

homepage            https://pydicom.github.io/pydicom/stable/index.html

checksums \
    rmd160  c0956d927bf4883cf5d81b72f9b3237dafff2a9e \
    sha256  fc22f3fdc7825ce86873f843d9e52b6a31109a8ca8400ac84b1246be37e558c4

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

    post-destroot {
        set DOCDIR ${destroot}${prefix}/share/doc/${subport}
        xinstall -d ${DOCDIR}
        file copy ${worksrcpath}/LICENSE ${DOCDIR}
    }

    if {${subport} eq "py27-pydicom"} {
        # Backwards compatibility for upgraders
        notes \
"pydicom >= 1.0 changed the library name. Install py27-dicom for backward\
compatibility if required. (Can be installed without conflict.) See\
https://pydicom.github.io/pydicom/stable/transition_to_pydicom1.html\
for more information."
    }
}