# $Id: Portfile 82910 2011-08-22 00:06:45Z jmr@macports.org $

PortSystem      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     nomaintainer
description     Cairo Wrapper Extension

long_description \
    A cairo API wrapper.

checksums       md5     c10d73a5280b8441efe5d56eac04873c \
                sha1    1ec2e0680f34c7e0f750ab44770d04d18d77207a \
                rmd160  7e3dc07318001654afd1bc6bbcc33e6b489823ac

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

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>}
