[33254] trunk/dports/www/php5-devel/Portfile

jwa at macports.org jwa at macports.org
Tue Jan 22 02:58:55 PST 2008


Revision: 33254
          http://trac.macosforge.org/projects/macports/changeset/33254
Author:   jwa at macports.org
Date:     2008-01-22 02:58:53 -0800 (Tue, 22 Jan 2008)

Log Message:
-----------
make port lint clean, add variant for oracle support unifying with PHP5 proper

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

Modified: trunk/dports/www/php5-devel/Portfile
===================================================================
--- trunk/dports/www/php5-devel/Portfile	2008-01-22 10:55:12 UTC (rev 33253)
+++ trunk/dports/www/php5-devel/Portfile	2008-01-22 10:58:53 UTC (rev 33254)
@@ -1,10 +1,11 @@
 # $Id$
 
 PortSystem      1.0
+
 name            php5-devel
 version         5.2.5RC2
 revision        1
-categories      lang php www
+categories      www lang php
 maintainers     ryandesign jwa
 homepage	http://qa.php.net/
 distfiles	php-${version}.tar.bz2
@@ -115,7 +116,7 @@
 # Build an Apache 1 module. On Mac OS X, it uses Apple's provided Apache 1 server.
 # On other platforms, the MacPorts apache port is used. Keep the options here
 # in sync with those in the relevant part of the post-destroot phase.
-variant apache conflicts apache2 {
+variant apache conflicts apache2 description {for Apple Apache} {
     if { ! [variant_isset macosx] } {
 	depends_lib-append \
 	    port:apache
@@ -130,7 +131,7 @@
 
 # Build an Apache 2 module. Keep the options here in sync with those in the
 # relevant part of the post-destroot phase.
-variant apache2 conflicts apache {
+variant apache2 conflicts apache description {for current Apache} {
     destroot.violate_mtree yes
     depends_lib-append \
 	port:apache2
@@ -140,7 +141,7 @@
 
 # Build a FastCGI binary. Keep the options here in sync with those in the
 # relevant part of the post-destroot phase.
-variant fastcgi {
+variant fastcgi description {add fastcgi binary} {
     if { ![variant_isset apache] && ![variant_isset apache2] } {
 	configure.args-append \
 	    --enable-fastcgi \
@@ -151,7 +152,7 @@
 
 # Add IMAP support. See:
 # http://www.php.net/imap
-variant imap {
+variant imap description {enable operation with IMAP protocol} {
     depends_lib-append \
 	port:cclient
     configure.cppflags-append \
@@ -163,27 +164,27 @@
 
 # Add Tidy support. See:
 # http://www.php.net/tidy
-variant tidy {
+variant tidy description {add Tidy support} {
     depends_lib-append \
 	port:tidy
     configure.args-append \
 	--with-tidy=${prefix}
 }
 
-variant mssql {
+variant mssql description {add support for MS-SQL server} {
     depends_lib-append \
 	port:freetds
     configure.args-append \
 	--with-mssql=${prefix}
 }
 
-variant snmp conflicts macports_snmp {
+variant snmp conflicts macports_snmp description {use 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 {
+variant macports_snmp conflicts snmp description {use MacPorts snmp} {
     # This compiles PHP with SNMP linked against MacPorts' NET-SNMP.
     depends_lib-append \
 	port:net-snmp
@@ -191,7 +192,7 @@
 	--with-snmp=${prefix}
 }
 
-variant mysql3 conflicts mysql4 mysql5 {
+variant mysql3 conflicts mysql4 mysql5 description {build MySQL 3 support} {
     depends_lib-append \
 	port:mysql
     configure.args-delete \
@@ -201,7 +202,7 @@
 	--with-pdo-mysql=${prefix}
 }
 
-variant mysql4 conflicts mysql3 mysql5 {
+variant mysql4 conflicts mysql3 mysql5 description {build MySQL 4 support} {
     depends_lib-append \
 	port:mysql4
     configure.args-delete \
@@ -211,7 +212,7 @@
 	--with-pdo-mysql=${prefix}
 }
 
-variant mysql5 conflicts mysql3 mysql4 {
+variant mysql5 conflicts mysql3 mysql4 description {build MySQL 5 support} {
     depends_lib-append \
 	port:mysql5
     configure.args-delete \
@@ -225,10 +226,18 @@
 	file mkdir "${workpath}/mysql5"
 	file link -symbolic "${workpath}/mysql5/lib" "${prefix}/lib/mysql5"
 	file link -symbolic "${workpath}/mysql5/include" "${prefix}/include/mysql5"
-    }	
+    }
 }
 
-variant postgresql {
+
+variant oracle description {Add Oracle oci8 database functions with the Oracle Instant Client} {
+	depends_lib-append \
+		port:oracle-instantclient
+	configure.args-append \
+		--with-oci8=instantclient,${prefix}/lib/oracle
+}
+
+variant postgresql description {provide postgresql support} {
     depends_lib-append \
 	port:postgresql82
     configure.args-append \
@@ -239,7 +248,7 @@
 # add sqlite support
 # note that standard sqlite support uses the built-in sqlite2 libraries
 # while pdo sqlite support uses the sqlite3 libraries from the sqlite3 port
-variant sqlite {
+variant sqlite description {build sqlite support} {
     depends_lib-append \
 	port:sqlite3
     configure.args-delete \
@@ -252,7 +261,7 @@
 }
 
 # add semaphore, shared memory and IPC functions; see http://www.php.net/sem
-variant ipc {
+variant ipc description {build IPC support} {
     configure.args-append \
 	--enable-shmop \
 	--enable-sysvsem \
@@ -261,7 +270,7 @@
 }
 
 # add process control functions; see http://www.php.net/pcntl
-variant pcntl {
+variant pcntl description {provide process control} {
     configure.args-append \
 	--enable-pcntl
 }
@@ -279,7 +288,7 @@
     }
 }
 
-variant pear {
+variant pear description {add pear stuff} {
     configure.args-delete \
 	--without-pear
     configure.args-append \
@@ -291,7 +300,7 @@
     post-destroot {
 	#nuke pear-stuff in ${destroot}
 	system "cd ${destroot} && rm -rf .channels .depdb .depdblock .filemap .lock"
-	
+
 	system "if \[ -f ${prefix}/lib/php/.depdblock \]; then rm -f ${destroot}${prefix}/lib/php/.depdblock; fi"
 	system "if \[ -f ${prefix}/lib/php/.depdb \]; then rm -f ${destroot}${prefix}/lib/php/.depdb; fi"
 	system "if \[ -f ${prefix}/lib/php/.filemap \]; then rm -f ${destroot}${prefix}/lib/php/.filemap; fi"
@@ -348,7 +357,7 @@
 	    configure.args-delete \
 		--with-apxs2=${prefix}/apache2/bin/apxs
 	}
-	
+
 	# Run the build again to get the FastCGI binary. Keep the options here
 	# in sync with those in the fastcgi variant.
 	if { [variant_isset apache] || [variant_isset apache2] } {
@@ -362,7 +371,7 @@
 	    command_exec build
 	    ui_msg "$UI_PREFIX Staging ${name} fastcgi into destroot"
 	}
-	
+
 	# Copy the FastCGI binary to the bin dir under a new name so it doesn't
 	# conflict with the cli version.
 	xinstall -m 755 ${worksrcpath}/sapi/cgi/php-cgi ${destroot}${prefix}/bin
@@ -381,7 +390,7 @@
 
     if { [variant_isset apache] } {
 	ui_msg " * enable php in apache :\n"
-	
+
 	ui_msg "cd ${prefix}/libexec/apache"
 	ui_msg "${prefix}/apache/bin/apxs -a -e -n \"php5\" libphp5.so\n"
 	ui_msg "* copy  ${prefix}/etc/php.ini-dist to  ${prefix}/etc/php.ini"

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080122/e73c8895/attachment.html


More information about the macports-changes mailing list