[23759] trunk/dports/www/php5/Portfile

source_changes at macosforge.org source_changes at macosforge.org
Sun Apr 8 19:58:08 PDT 2007


Revision: 23759
          http://trac.macosforge.org/projects/macports/changeset/23759
Author:   ryandesign at macports.org
Date:     2007-04-08 19:58:08 -0700 (Sun, 08 Apr 2007)

Log Message:
-----------
Whitespace / formatting changes only

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

Modified: trunk/dports/www/php5/Portfile
===================================================================
--- trunk/dports/www/php5/Portfile	2007-04-09 02:19:59 UTC (rev 23758)
+++ trunk/dports/www/php5/Portfile	2007-04-09 02:58:08 UTC (rev 23759)
@@ -1,20 +1,22 @@
 # $Id$
 
-PortSystem 1.0
-
-name			php5
-version			5.2.1
-revision		3
+PortSystem      1.0
+name            php5
+version         5.2.1
+revision        3
 categories      lang php www
 maintainers     ryandesign at macports.org jwa at macports.org
+platforms       darwin freebsd
 
-description     PHP: Hypertext Preprocessor
-long_description 	PHP is a widely-used general-purpose scripting language \
-			that is especially suited for Web development and can be \
-			embedded into HTML. 
-platforms	darwin freebsd
+description \
+	PHP: Hypertext Preprocessor
+long_description \
+	PHP is a widely-used general-purpose scripting language \
+	that is especially suited for Web development and can be \
+	embedded into HTML.
 
-master_sites	http://www.php.net/distributions/:release \
+master_sites \
+	http://www.php.net/distributions/:release \
 	http://it.php.net/distributions/:release \
 	http://fi.php.net/distributions/:release \
 	http://de.php.net/distributions/:release \
@@ -25,19 +27,21 @@
 	http://downloads.php.net/ilia/:rc \
 	http://downloads.php.net/jani/:rc 
 
-distfiles	php-${version}.tar.bz2:release
-worksrcdir	php-${version}
-checksums	md5 261218e3569a777dbd87c16a15f05c8d \
-		sha1 978ce7cde3d988d9aa672e32e46f815a8b25baa0
-use_bzip2	yes
+distfiles       php-${version}.tar.bz2:release
+use_bzip2       yes
+worksrcdir      php-${version}
+checksums \
+	md5 261218e3569a777dbd87c16a15f05c8d \
+	sha1 978ce7cde3d988d9aa672e32e46f815a8b25baa0
 
-depends_lib	port:libxml2  \
+depends_lib \
+	port:libxml2 \
 	port:libxslt \
 	port:openssl \
 	port:tidy \
 	port:zlib \
 	port:libiconv \
-	port:expat  \
+	port:expat \
 	port:gettext \
 	port:tiff \
 	lib:libmhash:mhash \
@@ -49,7 +53,7 @@
 	port:libpng \
 	port:freetype
 
-configure.args	\
+configure.args \
 	--mandir=${prefix}/share/man \
 	--infodir=${prefix}/share/info \
 	--with-config-file-path=${prefix}/etc \
@@ -70,7 +74,7 @@
 	--enable-soap \
 	--enable-filepro \
 	--enable-bcmath \
-	--enable-trans-sid  \
+	--enable-trans-sid \
 	--enable-mbstring \
 	--enable-dbx \
 	--enable-dba \
@@ -90,11 +94,14 @@
 	--without-pear \
 	--with-freetype-dir=${prefix}
 
-configure.env	CFLAGS=-I${prefix}/include/c-client
+configure.env \
+	CFLAGS=-I${prefix}/include/c-client
 
 platform darwin 6 {
-	depends_lib-append	lib:libdl:dlcompat
-	configure.env-append	LDFLAGS=-L${prefix}/lib \
+	depends_lib-append \
+		lib:libdl:dlcompat
+	configure.env-append \
+		LDFLAGS=-L${prefix}/lib \
 		CPPFLAGS="-I${prefix}/include -no-cpp-precomp -DBIND_8_COMPAT" \
 		LIBS=-ldl
 	# Work around php bug #40410; should be able to remove this once php 5.2.2 is released
@@ -102,7 +109,8 @@
 }
 
 platform darwin 7 {
-	configure.env-append	LDFLAGS="-L${prefix}/lib" \
+	configure.env-append \
+		LDFLAGS="-L${prefix}/lib" \
 		CPPFLAGS="-I${prefix}/include -no-cpp-precomp" \
 		LIBS=-ldl
 	# Work around php bug #40410; should be able to remove this once php 5.2.2 is released
@@ -110,67 +118,90 @@
 }
 
 platform darwin 8 {
-	configure.env-append	CC=/usr/bin/gcc-4.0 CPP=/usr/bin/cpp-4.0 CXX=/usr/bin/g++-4.0
+	configure.env-append \
+		CC=/usr/bin/gcc-4.0 CPP=/usr/bin/cpp-4.0 CXX=/usr/bin/g++-4.0
 }
 
 platform freebsd {
-	configure.env-append	LDFLAGS=-L${prefix}/lib \
+	configure.env-append \
+		LDFLAGS=-L${prefix}/lib \
 		CPPFLAGS="-I${prefix}/include
 }
 
 variant macosx {
-	configure.args-append	--with-ldap=/usr --with-kerberos=/usr --with-iodbc=/usr
+	configure.args-append \
+		--with-ldap=/usr \
+		--with-kerberos=/usr \
+		--with-iodbc=/usr
 }
 
 variant apache conflicts apache2 fastcgi {
 	if { ! [variant_isset macosx] } {
-		depends_lib-append	path:${prefix}/sbin/apxs:apache
-		configure.args-append	--with-apxs=${prefix}/sbin/apxs
+		depends_lib-append \
+			path:${prefix}/sbin/apxs:apache
+		configure.args-append \
+			--with-apxs=${prefix}/sbin/apxs
 	} else {
-		configure.args-append	--with-apxs=/usr/sbin/apxs
+		configure.args-append \
+			--with-apxs=/usr/sbin/apxs
 	}
 }
 
 variant apache2 conflicts apache fastcgi {
-	depends_lib-append	path:${prefix}/apache2/bin/apxs:apache2
-	configure.args-append 	--with-apxs2=${prefix}/apache2/bin/apxs
+	depends_lib-append \
+		path:${prefix}/apache2/bin/apxs:apache2
+	configure.args-append \
+		--with-apxs2=${prefix}/apache2/bin/apxs
 }
 
 variant fastcgi conflicts apache apache2 {
-	configure.args-append --enable-fastcgi \
+	configure.args-append \
+		--enable-fastcgi \
 		--enable-force-cgi-redirect \
 		--enable-memory-limit
 }
 
 variant snmp conflicts macports_snmp {
 # This compiles PHP5 with SNMP linked against Apple's included NET-SNMP.
-	configure.args-append	--with-snmp=/usr
+	configure.args-append \
+		--with-snmp=/usr
 }
                 
 variant macports_snmp conflicts snmp {
 # This compiles PHP with SNMP linked against MacPorts' NET-SNMP.
-	depends_lib-append	port:net-snmp
-	configure.args-append	--with-snmp=${prefix}
+	depends_lib-append \
+		port:net-snmp
+	configure.args-append \
+		--with-snmp=${prefix}
 }
 
 variant mysql3 conflicts mysql4 mysql5 {
-	depends_lib-append	port:mysql
-	configure.args-delete	--without-mysql
-	configure.args-append	--with-mysql=${prefix} \
+	depends_lib-append \
+		port:mysql
+	configure.args-delete \
+		--without-mysql
+	configure.args-append \
+		--with-mysql=${prefix} \
 		--with-pdo-mysql=${prefix}
 }
 
 variant mysql4 conflicts mysql3 mysql5 {
-	depends_lib-append	port:mysql4
-	configure.args-delete	--without-mysql
-	configure.args-append	--with-mysql=${prefix} \
+	depends_lib-append \
+		port:mysql4
+	configure.args-delete \
+		--without-mysql
+	configure.args-append \
+		--with-mysql=${prefix} \
 		--with-pdo-mysql=${prefix}
 }
 
 variant mysql5 conflicts mysql3 mysql4 {
-	depends_lib-append	port:mysql5
-	configure.args-delete	--without-mysql
-	configure.args-append	--with-mysql=${workpath}/mysql5 \
+	depends_lib-append \
+		port:mysql5
+	configure.args-delete \
+		--without-mysql
+	configure.args-append \
+		--with-mysql=${workpath}/mysql5 \
 		--with-pdo-mysql=${prefix}/bin/mysql_config5 \
 		--with-mysql-sock=${prefix}/var/run/mysql5/mysqld.sock \
 		--with-mysqli=${prefix}/bin/mysql_config5
@@ -182,8 +213,10 @@
 }
 
 variant postgresql {
-	depends_lib-append	port:postgresql82
-	configure.args-append	--with-pgsql=${prefix}/lib/postgresql82/bin \
+	depends_lib-append \
+		port:postgresql82
+	configure.args-append \
+		--with-pgsql=${prefix}/lib/postgresql82/bin \
 		--with-pdo-pgsql=${prefix}/lib/postgresql82/bin
 }
 
@@ -191,7 +224,8 @@
 # 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 {
-	depends_lib-append port:sqlite3
+	depends_lib-append \
+		port:sqlite3
 	configure.args-delete \
 		--without-sqlite \
 		--without-pdo-sqlite
@@ -212,24 +246,32 @@
 
 # add process control functions; see http://www.php.net/pcntl
 variant pcntl {
-	configure.args-append	--enable-pcntl
+	configure.args-append \
+		--enable-pcntl
 }
 
 # if no apache/apache2/fastcgi variant is set, we set it (need better default variant management)
 if { ![variant_isset apache] && ![variant_isset apache2] && ![variant_isset fastcgi] } {
 	if { ! [variant_isset macosx] } {
-		depends_lib-append	path:${prefix}/sbin/apxs:apache
-		configure.args-append 	--with-apxs=${prefix}/sbin/apxs
+		depends_lib-append \
+			path:${prefix}/sbin/apxs:apache
+		configure.args-append \
+			--with-apxs=${prefix}/sbin/apxs
 	} else {
-		configure.args-append	--with-apxs=/usr/sbin/apxs
+		configure.args-append \
+			--with-apxs=/usr/sbin/apxs
 	}
 }
 
 variant pear {
-	configure.args-delete	--without-pear
-	configure.args-append	--with-pear=${prefix}/lib/php
-	destroot.target-append	install-pear
-	destroot.args-append	PHP_PEAR_INSTALL_DIR=${prefix}/lib/php
+	configure.args-delete \
+		--without-pear
+	configure.args-append \
+		--with-pear=${prefix}/lib/php
+	destroot.target-append \
+		install-pear
+	destroot.args-append \
+		PHP_PEAR_INSTALL_DIR=${prefix}/lib/php
 	post-destroot {
 		#nuke pear-stuff in ${destroot}
 		system "cd ${destroot} && rm -rf .channels .depdb .depdblock .filemap .lock"
@@ -242,9 +284,11 @@
 	}
 }
 
-destroot.args	INSTALL_ROOT=${destroot}
+destroot.args \
+	INSTALL_ROOT=${destroot}
 
-destroot.target	install-cli install-build install-headers install-programs
+destroot.target \
+	install-cli install-build install-headers install-programs
 
 post-destroot	{
 	# copy fastcgi php binary to the bin dir under a new name so it doesn't overwrite cli version
@@ -274,7 +318,6 @@
 	xinstall -m 755 -d ${destroot}${prefix}/etc
 	xinstall -m 755 ${workpath}/${worksrcdir}/php.ini-dist ${destroot}${prefix}/etc/php.ini-dist
 	xinstall -m 755 ${workpath}/${worksrcdir}/php.ini-recommended ${destroot}${prefix}/etc/php.ini-recommended
-
 }
 
 post-install {

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


More information about the macports-changes mailing list