# $Id: Portfile 64461 2010-03-06 18:01:52Z ryandesign@macports.org $

PortSystem      1.0
PortGroup       archcheck 1.0
PortGroup       php5extension 1.0

php5extension.setup cairo 0.2.0 pecl
license         PHP
conflicts       php5-cairo_wrapper
categories      php devel
platforms       darwin
maintainers     nox openmaintainer
description     Cairo Graphics Library Extension

long_description \
    Cairo is a 2D graphics library with support for multiple output devices. \
    Currently supported output targets include the X Window System, Quartz, \
    Win32, image buffers, PostScript, PDF, and SVG file output.

checksums       md5     e35ac0eda37e5cd4370858aebe08f0f8 \
                sha1    0e84590d1f012d6e7ac6ff916fefecce15d3a205 \
                rmd160  9f18cfb94252ebe41358dc0a8173746a2b856907

depends_lib-append \
    path:lib/libcairo.dylib:cairo

archcheck.files \
    lib/libcairo.dylib

test.run yes

post-destroot {
    set docdir ${prefix}/share/doc/${name}
    xinstall -d ${destroot}${docdir}
    xinstall -m 644 -W ${worksrcpath} CREDITS IGNORED README SYMBOLS TODO \
        ${destroot}${docdir}
}

livecheck.regex {(\d+(?:\.\d+)*)</a></th>}
