[90762] users/ryandesign/ports/lang/php54/Portfile

ryandesign at macports.org ryandesign at macports.org
Wed Mar 14 00:21:15 PDT 2012


Revision: 90762
          http://trac.macports.org/changeset/90762
Author:   ryandesign at macports.org
Date:     2012-03-14 00:21:14 -0700 (Wed, 14 Mar 2012)
Log Message:
-----------
php54: avoid having to maintain the list of SAPIs in too many places

Modified Paths:
--------------
    users/ryandesign/ports/lang/php54/Portfile

Modified: users/ryandesign/ports/lang/php54/Portfile
===================================================================
--- users/ryandesign/ports/lang/php54/Portfile	2012-03-14 06:57:09 UTC (rev 90761)
+++ users/ryandesign/ports/lang/php54/Portfile	2012-03-14 07:21:14 UTC (rev 90762)
@@ -38,7 +38,9 @@
     configure.compiler llvm-gcc-4.2
 }
 
-if {${subport} == "${php}" || ${subport} == "${php}-apache2handler" || ${subport} == "${php}-cgi" || ${subport} == "${php}-fpm"} {
+set sapi_subports       [list ${php} ${php}-apache2handler ${php}-cgi ${php}-fpm]
+
+if {-1 != [lsearch -exact ${sapi_subports} ${subport}]} {
     
     ### SAPIs ###
     
@@ -871,7 +873,7 @@
     depends_lib-append      port:zlib
 }
 
-if {${subport} != "${php}" && ${subport} != "${php}-apache2handler" && ${subport} != "${php}-cgi" && ${subport} != "${php}-fpm"} {
+if {-1 == [lsearch -exact ${sapi_subports} ${subport}]} {
     php.rootname [regsub "^${php}-" ${subport} ""]
     if {![info exists php.extensions]} {
         php.extensions ${php.rootname}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120314/b778cd56/attachment.html>


More information about the macports-changes mailing list