[93576] trunk/dports/lang/php/Portfile

ryandesign at macports.org ryandesign at macports.org
Sun May 27 04:20:42 PDT 2012


Revision: 93576
          https://trac.macports.org/changeset/93576
Author:   ryandesign at macports.org
Date:     2012-05-27 04:20:41 -0700 (Sun, 27 May 2012)
Log Message:
-----------
php: use php 1.1 portgroup

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

Modified: trunk/dports/lang/php/Portfile
===================================================================
--- trunk/dports/lang/php/Portfile	2012-05-27 11:18:37 UTC (rev 93575)
+++ trunk/dports/lang/php/Portfile	2012-05-27 11:20:41 UTC (rev 93576)
@@ -2,9 +2,10 @@
 # $Id$
 
 PortSystem              1.0
-PortGroup               php 1.0
+PortGroup               php 1.1
 
 name                    php
+revision                1
 categories              lang php www
 platforms               darwin freebsd
 maintainers             ryandesign jwa
@@ -733,7 +734,7 @@
     depends_lib-append      port:openssl
     
     post-extract {
-        move ${build.dir}/config0.m4 ${build.dir}/config.m4
+        move ${php.build_dirs}/config0.m4 ${php.build_dirs}/config.m4
     }
     
     configure.args-append   --with-openssl=${prefix}
@@ -992,8 +993,8 @@
 set branch              ${subport_branch}
 set php                 php[php.suffix_from_branch ${branch}]
 
-# Set up the stub port.
 if {${name} == ${subport}} {
+    # Set up the stub port.
     version             ${branch}
     supported_archs     noarch
     distfiles
@@ -1004,22 +1005,23 @@
         xinstall -d -m 755 ${destroot}${prefix}/share/doc/${subport}
         system "echo \"${name} is a stub port\" > ${destroot}${prefix}/share/doc/${subport}/README"
     }
+} else {
+    # Set an explicit distname so the default from the php portgroup doesn't get used.
+    distname            ${name}-${version}
 }
 
 # Set up the php portgroup, for extension subports.
 if {[is_extension_subport]} {
-    if {![info exists php.extensions]} {
-        php.extensions ${php.rootname}
-    }
-    php.setup ${php.extensions} ${version}
-    
+    default php.extensions ${php.rootname}
     default homepage    http://www.php.net/${php.rootname}
     
-    pre-extract {
+    php.build_dirs
+    foreach extension ${php.extensions} {
         # Speed up extraction by extracting only the modules we're going to be building.
-        foreach extension ${php.extensions} {
-            extract.post_args-append ${worksrcdir}/ext/${extension}
-        }
+        extract.post_args-append ${worksrcdir}/ext/${extension}
+        
+        # Run phpize, configure, build and destroot in each extension's directory.
+        php.build_dirs-append ${worksrcpath}/ext/${extension}
     }
     
     post-extract {
@@ -1041,4 +1043,6 @@
     }
     
     destroot.target     install-modules install-headers
+    
+    php.add_port_code
 }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120527/af9a6ca0/attachment.html>


More information about the macports-changes mailing list