# -*- 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 90939 2012-03-19 00:26:03Z ryandesign@macports.org $

PortSystem          1.0
PortGroup           python24 1.0

name                py-tiff
version             0.1.6
categories          python graphics
platforms           darwin
maintainers         nomaintainer
license             GPL-2+

description         pytiff provides tiff handling and advanced imaging for Python

long_description    ${description}

homepage            http://www.haynold.com/software_projects/2004/pytiff/
master_sites        ${homepage}
distname            pytiff-${version}

checksums           rmd160  5a473019cfe39e6448ca85326fb58a227ebce2d5 \
                    sha256  fcbf4605c05cb35e861c851394541c4a41d0b8fd906f300339ab3d43e7489db5

depends_lib-append  port:tiff

post-extract {
    fs-traverse item ${worksrcpath} {
        if {[file isdirectory ${item}]} {
            file attributes ${item} -permissions a+rx
        } elseif {[file isfile ${item}]} {
            file attributes ${item} -permissions a+r
        }
    }
}

patchfiles          patch-setup.py.diff

post-destroot {
    xinstall -m 644 -W ${worksrcpath} CHANGES README \
        ${destroot}${prefix}/share/doc/${name}
}

livecheck.type      regex
livecheck.regex     pytiff-(\[0-9.\]+)${extract.suffix}
