# -*- 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 92953 2012-05-11 19:20:50Z ryandesign@macports.org $

PortSystem      1.0
PortGroup       php 1.0

php.setup       cairo_wrapper 0.2.4 pecl
php.branches    5.3 5.4
license         PHP
categories      php devel
platforms       darwin
maintainers     nomaintainer
description     Cairo Wrapper Extension

long_description \
    A cairo API wrapper.

checksums       md5     c10d73a5280b8441efe5d56eac04873c \
                sha1    1ec2e0680f34c7e0f750ab44770d04d18d77207a \
                rmd160  7e3dc07318001654afd1bc6bbcc33e6b489823ac

if {${name} != ${subport}} {
    conflicts   ${php}-cairo
    
    depends_build       port:pkgconfig
    
    depends_lib-append  path:lib/libcairo.dylib:cairo
    
    patchfiles          patch-cairo_wrapper.c.diff \
                        patch-tests-cairo_version_string.phpt.diff
    
    test.run            yes
    
    post-destroot {
        set docdir ${prefix}/share/doc/${subport}
        xinstall -d ${destroot}${docdir}
        xinstall -m 644 -W ${worksrcpath} CREDITS ${destroot}${docdir}
    }
}

php.pecl_livecheck_stable no
