[58830] trunk/dports/lang/php5-devel

ryandesign at macports.org ryandesign at macports.org
Mon Oct 5 21:21:35 PDT 2009


Revision: 58830
          http://trac.macports.org/changeset/58830
Author:   ryandesign at macports.org
Date:     2009-10-05 21:21:34 -0700 (Mon, 05 Oct 2009)
Log Message:
-----------
php5-devel: merge r58589 from php5: update to 5.3.1RC1_1:

 * remove odbc support which is now in the php5-odbc port (#19091)
 * remove snmp support which is now in the php5-snmp port (#19091)
 * remove dba support which is now in the php5-dba port (#20056)
 * fix php-config --includes so it contains -I${prefix}/include (#20627)
 * move conf file from extras-conf to extra to match the rest of apache2's extra conf files (#21217)
 * prevent installation with the +apache2 variant when apache2 is not built with the +preforkmpm variant (#21281)
 * update suhosin patch to version 5.3.1RC1-0.9.8 (#21737)

Revision Links:
--------------
    http://trac.macports.org/changeset/58589

Modified Paths:
--------------
    trunk/dports/lang/php5-devel/Portfile

Added Paths:
-----------
    trunk/dports/lang/php5-devel/files/patch-scripts-php-config.in.diff

Property Changed:
----------------
    trunk/dports/lang/php5-devel/


Property changes on: trunk/dports/lang/php5-devel
___________________________________________________________________
Modified: svn:mergeinfo
   - /trunk/dports/lang/php5:52241-52279,53127,56346,56392,56403
   + /trunk/dports/lang/php5:52241-52279,53127,56346,56392,56403,58589

Modified: trunk/dports/lang/php5-devel/Portfile
===================================================================
--- trunk/dports/lang/php5-devel/Portfile	2009-10-06 03:54:06 UTC (rev 58829)
+++ trunk/dports/lang/php5-devel/Portfile	2009-10-06 04:21:34 UTC (rev 58830)
@@ -6,6 +6,7 @@
 conflicts               php5 php52
 epoch                   1
 version                 5.3.1RC1
+revision                1
 set major               [lindex [split ${version} .] 0]
 set my_name             php${major}
 dist_subdir             ${my_name}
@@ -51,6 +52,8 @@
 
 # Use -p1 to accommodate the Suhosin patch
 patch.pre_args          -p1
+patchfiles \
+    patch-scripts-php-config.in.diff
 
 use_autoconf            yes
 autoconf.cmd            ${prefix}/bin/autoconf213
@@ -68,7 +71,6 @@
     --disable-all \
     --enable-bcmath \
     --enable-ctype \
-    --enable-dba \
     --enable-dom \
     --enable-fileinfo \
     --enable-filter \
@@ -102,8 +104,7 @@
 
 platform macosx {
     configure.args-append \
-        --with-ldap=/usr \
-        --with-iodbc=/usr
+        --with-ldap=/usr
 }
 
 variant no_web conflicts apache apache2 fastcgi description {Don't include any web server support} {}
@@ -127,6 +128,14 @@
 # Build an Apache 2.2 module. Keep the options here in sync with those in the
 # relevant part of the post-destroot phase.
 variant apache2 conflicts apache no_web description {Add Apache 2.2 web server module} {
+    pre-extract {
+        # Checking for mod_cgi.so is a convenient way to verify apache2 is using its
+        # +preforkmpm variant. (+eventmpm and +workermpm instead provide mod_cgid.so.)
+        if {![file exists ${prefix}/apache2/modules/mod_cgi.so]} {
+            ui_error "To use ${name} with the +apache2 variant, apache2 must be installed with the +preforkmpm variant."
+            return -code error "incompatible apache2 installation"
+        }
+    }
     destroot.violate_mtree yes
     depends_lib-append \
         port:apache2
@@ -148,6 +157,7 @@
 foreach {old_variant new_port} {
     gmp             gmp
     imap            imap
+    macports_snmp   snmp
     mssql           mssql
     mysql3          mysql
     mysql4          mysql
@@ -158,6 +168,7 @@
     postgresql82    postgresql
     postgresql83    postgresql
     pspell          pspell
+    snmp            snmp
     sockets         sockets
     sqlite          sqlite
     tidy            tidy
@@ -171,20 +182,6 @@
     }]
 }
 
-variant snmp conflicts macports_snmp description {Add SNMP support using Apple SNMP} {
-    # This compiles PHP5 with SNMP linked against Apple's included NET-SNMP.
-    configure.args-append \
-        --with-snmp=/usr
-}
-
-variant macports_snmp conflicts snmp description {Add SNMP support using MacPorts SNMP} {
-    # This compiles PHP with SNMP linked against MacPorts' NET-SNMP.
-    depends_lib-append \
-        port:net-snmp
-    configure.args-append \
-        --with-snmp=${prefix}
-}
-
 variant ipc description {Add semaphore, shared memory and IPC functions} {
     configure.args-append \
         --enable-shmop \
@@ -225,15 +222,15 @@
             return -code error "incompatible Mac OS X version"
         }
     }
-    set suhosin_patch_version   5.3.0-0.9.8-BETA-1
+    set suhosin_patch_version   ${version}-0.9.8
     set suhosin_patch           suhosin-patch-${suhosin_patch_version}.patch.gz
     patch_sites-append          http://download.suhosin.org/
     patchfiles-append           ${suhosin_patch}
     checksums-append \
         ${suhosin_patch} \
-            md5     62dc36545b86bf86e44ada1fccc17d0a \
-            sha1    8bad461c7b16febc1d2f6bcbf4c8e10428569591 \
-            rmd160  d89fd850dbba853aa881454be7995e2d6dff2490
+            md5     c3ff0cb5fa728420d56f8ed139446647 \
+            sha1    d3e8f83f81311a5f382b545cbd745dcedd5f3c93 \
+            rmd160  cfb60da9b4142b0d3fd0f7e193fe2419ba9a5d31
 }
 
 destroot.args \
@@ -246,17 +243,17 @@
     # Copy the Apache 1 module.
     if { [variant_isset apache] } {
         xinstall -m 755 -d ${destroot}${prefix}/libexec/apache \
-            ${destroot}${prefix}/etc/apache/extras-conf
+            ${destroot}${prefix}/etc/apache/extra
         xinstall -m 755 ${worksrcpath}/libs/libphp5.so ${destroot}${prefix}/libexec/apache/
-        xinstall -m 755 -c ${filespath}/mod_php.conf ${destroot}$prefix/etc/apache/extras-conf
+        xinstall -m 755 -c ${filespath}/mod_php.conf ${destroot}$prefix/etc/apache/extra
     }
     
     # Copy the Apache 2.2 module.
     if { [variant_isset apache2] } {
         xinstall -m 755 -d ${destroot}${prefix}/apache2/modules \
-            ${destroot}${prefix}/apache2/conf/extras-conf
+            ${destroot}${prefix}/apache2/conf/extra
         xinstall -m 755 ${worksrcpath}/libs/libphp5.so ${destroot}${prefix}/apache2/modules/
-        xinstall -m 755 -c ${filespath}/mod_php.conf ${destroot}${prefix}/apache2/conf/extras-conf
+        xinstall -m 755 -c ${filespath}/mod_php.conf ${destroot}${prefix}/apache2/conf/extra
     }
     
     if { [variant_isset fastcgi] } {

Copied: trunk/dports/lang/php5-devel/files/patch-scripts-php-config.in.diff (from rev 58589, trunk/dports/lang/php5/files/patch-scripts-php-config.in.diff)
===================================================================
--- trunk/dports/lang/php5-devel/files/patch-scripts-php-config.in.diff	                        (rev 0)
+++ trunk/dports/lang/php5-devel/files/patch-scripts-php-config.in.diff	2009-10-06 04:21:34 UTC (rev 58830)
@@ -0,0 +1,11 @@
+--- a/scripts/php-config.in.orig	2007-08-24 06:44:10.000000000 -0500
++++ b/scripts/php-config.in	2009-08-10 16:33:49.000000000 -0500
+@@ -6,7 +6,7 @@
+ version="@PHP_VERSION@"
+ vernum="@PHP_VERSION_ID@"
+ include_dir="@includedir@/php"
+-includes="-I$include_dir -I$include_dir/main -I$include_dir/TSRM -I$include_dir/Zend -I$include_dir/ext -I$include_dir/ext/date/lib"
++includes="-I$include_dir -I$include_dir/main -I$include_dir/TSRM -I$include_dir/Zend -I$include_dir/ext -I$include_dir/ext/date/lib -I at prefix@/include"
+ ldflags="@PHP_LDFLAGS@"
+ libs="@EXTRA_LIBS@"
+ extension_dir='@EXTENSION_DIR@'
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20091005/9367ef50/attachment.html>


More information about the macports-changes mailing list