# $Id: Portfile 81161 2011-07-26 06:23:10Z ryandesign@macports.org $

PortSystem      1.0
PortGroup       php5extension 1.0

php5extension.setup oauth 1.2.2 pecl
license         BSD
categories      php devel
platforms       darwin
maintainers     nomaintainer
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       sha1    bd74cd7aa150e33db20ac36f0b1459473f1ef070 \
                rmd160  82e172febc68dc15e225fbd96a9d5b40f0741fa4

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