[92796] trunk/dports/php

ryandesign at macports.org ryandesign at macports.org
Sun May 6 22:08:41 PDT 2012


Revision: 92796
          https://trac.macports.org/changeset/92796
Author:   ryandesign at macports.org
Date:     2012-05-06 22:08:40 -0700 (Sun, 06 May 2012)
Log Message:
-----------
php-oauth: unified port

Modified Paths:
--------------
    trunk/dports/php/php-oauth/Portfile

Added Paths:
-----------
    trunk/dports/php/php-oauth/

Modified: trunk/dports/php/php-oauth/Portfile
===================================================================
--- trunk/dports/php/php5-oauth/Portfile	2012-05-06 23:16:29 UTC (rev 92784)
+++ trunk/dports/php/php-oauth/Portfile	2012-05-07 05:08:40 UTC (rev 92796)
@@ -1,9 +1,11 @@
+# -*- 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$
 
 PortSystem      1.0
-PortGroup       php5extension 1.0
+PortGroup       php 1.0
 
-php5extension.setup oauth 1.2.2 pecl
+php.setup       oauth 1.2.2 pecl
+php.branches    5.3 5.4
 license         BSD
 categories      php devel
 platforms       darwin
@@ -18,14 +20,16 @@
 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}
+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}
+    }
 }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120506/629a068c/attachment-0001.html>


More information about the macports-changes mailing list