# $Id: Portfile 53568 2009-07-08 13:38:47Z ryandesign@macports.org $

PortSystem              1.0
PortGroup               php5extension 1.0

php5extension.setup     syck 0.55
revision                2
categories-append       net devel
platforms               darwin freebsd openbsd
maintainers             gmail.com:emory.smith openmaintainer
homepage                http://www.whytheluckystiff.net/syck/
master_sites            http://rubyforge.org/frs/download.php/4492

description             PHP5 bindings for syck

long_description        Syck is a parser for YAML -- this package installs \
                        the syck php extension, allowing php code to \
                        interface to the libsyck C library.

checksums               md5     a57b7c46d81170b9318e2f384f77910c \
                        sha1    acb0aea04a6a0e82220223ffaf889ad6587402eb \
                        rmd160  ffd26db70cf743b90cbfecfe7402c6fb8d698ee8

dist_subdir             syck

depends_lib-append      port:syck \
                        port:re2c

worksrcdir              syck-${version}/ext/php

configure.args          --with-syck=${prefix}

platform darwin {
    # for details on this patch see the "Patch For Mac Users" section
    # of http://trac.symfony-project.com/trac/wiki/InstallingSyck
    patchfiles patch-phpext.c.diff
}
