# $Id: Portfile 98343 2012-10-03 02:39:15Z ryandesign@macports.org $

PortSystem      1.0
PortGroup       php5extension 1.0

php5extension.setup oauth 1.2.3 pecl
license         BSD
categories      php devel
platforms       darwin
maintainers     ryandesign openmaintainer
description     oauth consumer extension

long_description \
    OAuth is an authorization protocol built on top of HTTP which allows \
    applications to securely access data without having to store usernames and \
    passwords.

checksums       rmd160  506f0644b22323a4d1ad6794433768d83357b5ba \
                sha256  86bb5ee37afe672d4532ad784c7f711855c79f0dabf0acacafd5344ab6cf0195

depends_lib-append \
    port:gettext \
    port:curl

post-destroot {
    set docdir ${prefix}/share/doc/${name}
    set exampledir ${prefix}/share/examples
    xinstall -d ${destroot}${docdir} ${destroot}${exampledir}
    xinstall -m 644 -W ${worksrcpath} LICENSE ${destroot}${docdir}
    copy ${worksrcpath}/examples ${destroot}${exampledir}/${name}
}
