# -*- 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
# $Id: Portfile 101243 2013-01-07 01:14:35Z ryandesign@macports.org $

PortSystem      1.0
PortGroup       php 1.1

name            php-oauth
version         1.2.3
license         BSD
categories      php devel
platforms       darwin
maintainers     ryandesign openmaintainer

php.branches    5.3 5.4 5.5
php.pecl        yes

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

if {${name} != ${subport}} {
    depends_lib-append \
        port:gettext \
        port:curl
    
    post-destroot {
        set docdir ${prefix}/share/doc/${subport}
        set exampledir ${prefix}/share/examples
        xinstall -d ${destroot}${docdir} ${destroot}${exampledir}
        xinstall -m 644 -W ${worksrcpath} LICENSE ${destroot}${docdir}
        copy ${worksrcpath}/examples ${destroot}${exampledir}/${subport}
    }
}
