# -*- 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 80008 2011-07-01 18:04:21Z eborisch@macports.org $

PortSystem          1.0
PortGroup           python27 1.0

name                py27-pydicom
version             0.9.5
revision            2
platforms           darwin
categories          python
license             MIT BSD
maintainers         eborisch \
                    openmaintainer

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            http://code.google.com/p/pydicom/
master_sites        http://pydicom.googlecode.com/files/
distname            pydicom-${version}
checksums           md5     61e18adcaeb1ae98c8282c289fb6e851 \
                    sha1    cd8739c53e43b8ff2113debe70cea74e95340467 \
                    rmd160  d6f80a0fd632714359eb24b79b15a01aed16e570

# Patches from upstream revision 156044badd:
# See http://code.google.com/p/pydicom/issues/detail?id=96
patchfiles          patch-dicom-UID.py.diff \
                    patch-dicom-test-_write_stds.py.diff \
                    patch-dicom-test-test_UID.py.diff

# Patches from upstream revision 861d859b4f:
# See http://code.google.com/p/pydicom/issues/detail?id=97
patchfiles-append   patch-dicom-filereader.py.diff

depends_lib-append  port:py27-numpy

livecheck.regex       {pydicom-(\d+(?:\.\d+)*).tar.gz}

