source: trunk/dports/php/php-oauth/Portfile

Last change on this file was 153201, checked in by ryandesign@…, 12 months ago

php-oauth: add php70-oauth subport version 2.0.2

Resolves #50920

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.4 KB
Line 
1# -*- 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
2# $Id: Portfile 153201 2016-09-27 07:23:44Z ryandesign@macports.org $
3
4PortSystem      1.0
5PortGroup       php 1.1
6
7name            php-oauth
8license         BSD
9categories      php devel
10platforms       darwin
11maintainers     ryandesign openmaintainer
12
13php.branches    5.3 5.4 5.5 5.6 7.0
14php.pecl        yes
15
16if {[vercmp ${php.branch} 7] >= 0} {
17    version     2.0.2
18    checksums   rmd160  e55b94d499f97906576b48bb7e9498cdbb6f8533 \
19                sha256  87ce1a5d585f439f0ead2683f2f7dca76d538df9143da681978356b5e1c6e8e8
20} else {
21    version     1.2.3
22    checksums   rmd160  506f0644b22323a4d1ad6794433768d83357b5ba \
23                sha256  86bb5ee37afe672d4532ad784c7f711855c79f0dabf0acacafd5344ab6cf0195
24}
25
26description     oauth consumer extension
27
28long_description \
29    OAuth is an authorization protocol built on top of HTTP which allows \
30    applications to securely access data without having to store usernames and \
31    passwords.
32
33
34if {${name} ne ${subport}} {
35    depends_lib-append \
36        port:gettext \
37        port:curl
38   
39    post-destroot {
40        set docdir ${prefix}/share/doc/${subport}
41        set exampledir ${prefix}/share/examples
42        xinstall -d ${destroot}${docdir} ${destroot}${exampledir}
43        xinstall -m 644 -W ${worksrcpath} LICENSE ${destroot}${docdir}
44        copy ${worksrcpath}/examples ${destroot}${exampledir}/${subport}
45    }
46}
Note: See TracBrowser for help on using the repository browser.