# $Id: Portfile 64763 2010-03-15 16:31:33Z nox@macports.org $

PortSystem      1.0
PortGroup python26 1.0

name            py26-pil
version         1.1.7
revision        1
license         MIT
maintainers     jmr openmaintainer
description     Python Imaging Library
long_description    The Python Imaging Library (PIL) adds image \
                    processing capabilities to your Python interpreter. \
                    This library supports many file formats, and \
                    provides powerful image processing and graphics \
                    capabilities. 
categories-append   graphics
platforms       darwin freebsd
homepage        http://www.pythonware.com/products/pil/
master_sites    http://effbot.org/downloads/
distname        Imaging-${version}
checksums       md5 fc14a54e1ce02a0225be8854bfba478e \
                sha1 76c37504251171fda8da8e63ecb8bc42a69a5c81 \
                rmd160 9af570fe100e250a4860314341fe3e6d695d7fde
patchfiles      patch-setup.py

depends_lib-append  port:freetype \
                    port:jpeg \
                    port:lcms

post-patch {
    reinplace s,__PREFIX__,${prefix},g ${worksrcpath}/setup.py
}

post-destroot {
    xinstall -d -m 0755 ${destroot}${prefix}/share/doc/${name}
    xinstall -m 0644 -W ${worksrcpath} BUILDME CHANGES CONTENTS README \
        ${destroot}${prefix}/share/doc/${name}
}

livecheck.type  regex
livecheck.url   ${homepage}
livecheck.regex {Imaging-([0-9\.]+)\.tar\.gz}
