[33256] trunk/dports/www/php5/Portfile
jwa at macports.org
jwa at macports.org
Tue Jan 22 02:59:41 PST 2008
Revision: 33256
http://trac.macosforge.org/projects/macports/changeset/33256
Author: jwa at macports.org
Date: 2008-01-22 02:59:40 -0800 (Tue, 22 Jan 2008)
Log Message:
-----------
make port lint clean
Modified Paths:
--------------
trunk/dports/www/php5/Portfile
Modified: trunk/dports/www/php5/Portfile
===================================================================
--- trunk/dports/www/php5/Portfile 2008-01-22 10:59:20 UTC (rev 33255)
+++ trunk/dports/www/php5/Portfile 2008-01-22 10:59:40 UTC (rev 33256)
@@ -5,7 +5,7 @@
name php5
version 5.2.5
revision 1
-categories lang php www
+categories www lang php
maintainers ryandesign jwa
homepage http://www.php.net/
distfiles php-${version}.tar.bz2:release
@@ -125,7 +125,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 \
path:${prefix}/sbin/apxs:apache
@@ -140,7 +140,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 \
path:${prefix}/apache2/bin/apxs:apache2
@@ -150,7 +150,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 \
@@ -161,7 +161,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.args-append \
@@ -171,27 +171,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
@@ -199,7 +199,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 \
@@ -209,7 +209,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 \
@@ -219,7 +219,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 \
@@ -233,7 +233,7 @@
file mkdir "${workpath}/mysql5"
file link -symbolic "${workpath}/mysql5/lib" "${prefix}/lib/mysql5"
file link -symbolic "${workpath}/mysql5/include" "${prefix}/include/mysql5"
- }
+ }
}
variant oracle description {Add Oracle oci8 database functions with the Oracle Instant Client} {
@@ -243,7 +243,7 @@
--with-oci8=instantclient,${prefix}/lib/oracle
}
-variant postgresql {
+variant postgresql description {provide postgresql support} {
depends_lib-append \
port:postgresql82
configure.args-append \
@@ -254,7 +254,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 \
@@ -267,7 +267,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 \
@@ -276,7 +276,7 @@
}
# add process control functions; see http://www.php.net/pcntl
-variant pcntl {
+variant pcntl description {provide process control} {
configure.args-append \
--enable-pcntl
}
@@ -294,7 +294,7 @@
}
}
-variant pear {
+variant pear description {add pear stuff} {
configure.args-delete \
--without-pear
configure.args-append \
@@ -306,7 +306,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"
@@ -336,7 +336,7 @@
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
}
-
+
# Copy the Apache 2 module.
if { [variant_isset apache2] } {
xinstall -m 755 -d ${destroot}${prefix}/apache2/modules \
@@ -344,7 +344,7 @@
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
}
-
+
if { [variant_isset fastcgi] } {
# If we've built an Apache module (any version) then the FastCGI binary
# will not have been built, so we need to run through the whole process
@@ -363,7 +363,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] } {
@@ -377,14 +377,14 @@
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
}
-
+
# file rename ${destroot}${prefix}/etc/pear.conf ${destroot}${prefix}/etc/pear.conf.sample
-
+
# Copy the default php.ini files.
xinstall -m 755 -d ${destroot}${prefix}/etc
xinstall -m 755 ${workpath}/${worksrcdir}/php.ini-dist ${destroot}${prefix}/etc/php.ini-dist
@@ -393,21 +393,21 @@
post-install {
ui_msg "\nIf this is your first install, you might want"
-
+
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"
}
-
+
if { [variant_isset apache2] } {
ui_msg "cd ${prefix}/apache2/modules"
ui_msg "${prefix}/apache2/bin/apxs -a -e -n \"php5\" libphp5.so\n"
ui_msg "* copy ${prefix}/etc/php.ini-dist to ${prefix}/etc/php.ini"
}
-
+
# ui_msg "* copy ${prefix}/etc/pear.conf.sample to ${prefix}/etc/pear.conf"
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080122/14c68723/attachment-0001.html
More information about the macports-changes
mailing list