Changeset 90672 for trunk/dports/_resources/port1.0
- Timestamp:
- Mar 12, 2012, 1:37:46 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dports/_resources/port1.0/group/php-1.0.tcl
r90671 r90672 76 76 options php.extension_dir 77 77 default php.extension_dir {[exec ${php.config} --extension-dir 2>/dev/null]} 78 options php.ini 79 default php.ini {${prefix}/etc/${php}/php.ini} 78 80 options php.inidir 79 81 default php.inidir {${prefix}/var/db/${php}} 80 options php.php_ini81 default php.php_ini {${prefix}/etc/${php}/php.ini}82 82 options php.phpize 83 83 default php.phpize {${prefix}/bin/phpize${php.version}} … … 186 186 puts $fp "; Do not edit this file; it is automatically generated by MacPorts." 187 187 puts $fp "; Any changes you make will be lost if you upgrade or uninstall ${name}." 188 puts $fp "; To configure PHP, edit ${php. php_ini}."188 puts $fp "; To configure PHP, edit ${php.ini}." 189 189 foreach extension ${php.extensions} { 190 190 puts $fp "${extension_prefix}${extension}.so" … … 194 194 195 195 post-install { 196 if {[file exists ${php. php_ini}]} {196 if {[file exists ${php.ini}]} { 197 197 set count 0 198 set fp [open ${php. php_ini} r]198 set fp [open ${php.ini} r] 199 199 while {![eof $fp]} { 200 200 set line [gets $fp] 201 201 regexp {^extension_dir *= *"?([^\"]*)"?} $line -> phpiniextensiondir 202 202 if {[info exists phpiniextensiondir]} { 203 ui_debug "Found extension_dir ${phpiniextensiondir} in ${php. php_ini}"203 ui_debug "Found extension_dir ${phpiniextensiondir} in ${php.ini}" 204 204 if {${phpiniextensiondir} != ${php.extension_dir}} { 205 205 if {0 == ${count}} { 206 206 ui_msg "Your php.ini contains a line that will prevent ${name}" 207 207 ui_msg "and other PHP extensions from working. To fix this," 208 ui_msg "edit ${php. php_ini} and delete this line:"208 ui_msg "edit ${php.ini} and delete this line:" 209 209 ui_msg "" 210 210 }
Note: See TracChangeset
for help on using the changeset viewer.