[56471] trunk/dports/lang
ryandesign at macports.org
ryandesign at macports.org
Fri Aug 28 04:46:32 PDT 2009
Revision: 56471
http://trac.macports.org/changeset/56471
Author: ryandesign at macports.org
Date: 2009-08-28 04:46:31 -0700 (Fri, 28 Aug 2009)
Log Message:
-----------
php5-web: new meta-port that any ports that need PHP web support can depend on
Added Paths:
-----------
trunk/dports/lang/php5-web/
trunk/dports/lang/php5-web/Portfile
Added: trunk/dports/lang/php5-web/Portfile
===================================================================
--- trunk/dports/lang/php5-web/Portfile (rev 0)
+++ trunk/dports/lang/php5-web/Portfile 2009-08-28 11:46:31 UTC (rev 56471)
@@ -0,0 +1,48 @@
+# $Id$
+
+PortSystem 1.0
+
+name php5-web
+version 5.3.0
+categories lang php www
+platforms darwin
+maintainers ryandesign
+homepage http://www.php.net/
+
+description Meta-port for PHP web server support
+
+long_description If you have a port for a web app that uses PHP, and \
+ you don't care (as you usually wouldn't) whether \
+ PHP is compiled as an Apache module or as a FastCGI \
+ binary, depend on ${name} so the user can choose.
+
+depends_lib path:bin/php:php5
+
+distfiles
+
+use_configure no
+
+build {
+ set found 0
+ foreach {desc file} "
+ {FastCGI binary} ${prefix}/bin/php-cgi
+ {Apache 2 module} ${prefix}/apache2/modules/libphp5.so
+ {Apache 1 module} ${prefix}/libexec/apache/libphp5.so
+ " {
+ if {[file exists ${file}]} {
+ ui_debug "OK: found ${desc} (${file})"
+ incr found
+ }
+ }
+ if {!${found}} {
+ ui_error "php5 is installed without web server support. Please reinstall it with one of the web server SAPI variants."
+ return -code error "incompatible php5 installation"
+ }
+}
+
+destroot {
+ xinstall -d ${destroot}${prefix}/share/doc/${name}
+ system "echo \"${long_description}\" > ${destroot}${prefix}/share/doc/${name}/README.txt"
+}
+
+livecheck.check none
Property changes on: trunk/dports/lang/php5-web/Portfile
___________________________________________________________________
Added: svn:keywords
+ Id
Added: svn:eol-style
+ native
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090828/36662323/attachment-0001.html>
More information about the macports-changes
mailing list