# $Id: Portfile 62657 2010-01-13 14:54:57Z nox@macports.org $

PortSystem      1.0
PortGroup       archcheck 1.0
PortGroup       php5extension 1.0

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

long_description \
    A cairo API wrapper.

checksums       md5     c10d73a5280b8441efe5d56eac04873c \
                sha1    1ec2e0680f34c7e0f750ab44770d04d18d77207a \
                rmd160  7e3dc07318001654afd1bc6bbcc33e6b489823ac

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

archcheck.files \
    lib/libcurl.dylib

test.run yes

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

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