# $Id: Portfile 62678 2010-01-13 21:25:54Z ryandesign@macports.org $

PortSystem      1.0
PortGroup       archcheck 1.0
PortGroup       php5extension 1.0

php5extension.setup oauth 0.99.9 pecl
revision        1
license         BSD
categories      php devel
platforms       darwin
maintainers     nox 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       md5     7a93f01d31076ea4eda87d95e658ce76 \
                sha1    179b872373fedb521f01ef3aeb3587a8ba33e39c \
                rmd160  ace7defa4dbacee8048a1496558e99c6e45f381e

depends_lib-append \
    port:curl

archcheck.files \
    lib/libcurl.dylib

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

livecheck.regex {(\d+(?:\.\d+)*)</a></th>}
