# -*- 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
maintainers ryandesign openmaintainer
php.branches 5.3 5.4 5.5 5.6
description PHP bindings for Subversion
long_description ${description}
checksums rmd160 fb7a7c33ab6609c0802055332a725f72931e3e55 \
sha256 8ccf1dd78b92649486d1875102ecb899c1e4e5ddf674f2d87adf611c16295089
if {${name} ne ${subport}} {
depends_lib-append port:subversion
patchfiles patch-hook_emailcommit.php
reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/examples/hook_emailcommit.php
configure.args-append --with-svn=${prefix} \
--with-svn-apr=${prefix}/bin/apr-1-config
# error: "for" loop initial declaration used outside C99 mode
configure.cflags-append -std=c99
xinstall -d ${destroot}${prefix}/share/examples
copy ${worksrcpath}/examples ${destroot}${prefix}/share/examples/${subport}