# -*- 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 92212 2012-04-22 00:35:23Z ryandesign@macports.org $

PortSystem          1.0
PortGroup           php5extension 1.0

php5extension.setup cairo 0.3.2 pecl
license             PHP
conflicts           php5-cairo_wrapper
categories          php devel
platforms           darwin
maintainers         ryandesign

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           rmd160  de19dfadb9c4f8e4b209e6b51dff727b64b510db \
                    sha256  c69a33b4d8c9611c0e32383b577509f64406afb5670518c8de2e34d53c926359

distname            Cairo-${version}

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

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