Ticket #29849: php5extension.tcl.diff
File php5extension.tcl.diff, 2.1 KB (added by BjarneDMat, 13 years ago) |
---|
-
.tcl
old new 1 # $Id: php5extension-1. 0.tcl 79424 2011-06-13 08:03:13Z ryandesign@macports.org $1 # $Id: php5extension-1.1.tcl 79424 2011-06-13 08:03:13Z ryandesign@macports.org $ 2 2 # 3 3 # Copyright (c) 2009 The MacPorts Project 4 4 # All rights reserved. … … 34 34 # 35 35 # Usage: 36 36 # 37 # PortGroup php5extension 1. 037 # PortGroup php5extension 1.1 38 38 # php5extension.setup extension version source 39 39 # 40 40 # where extension is the name of the extension (e.g. APC), version is its … … 70 70 proc php5extension.setup {extensions version {source ""}} { 71 71 global php5extension.build_dirs php5extension.extensions php5extension.ini php5extension.inidir php5extension.source 72 72 global destroot 73 73 74 74 # Use "set" to preserve the list structure. 75 75 set php5extension.extensions ${extensions} 76 76 77 global php5extension.iniFile 78 set php5extension.iniFile ${destroot}${php5extension.inidir}/${php5extension.ini} 79 77 80 php5extension.source ${source} 78 81 79 82 name php5-[lindex ${php5extension.extensions} 0] … … 129 132 } else { 130 133 set extension_prefix "extension=" 131 134 } 132 set fp [open ${ destroot}${php5extension.inidir}/${php5extension.ini} w]135 set fp [open ${php5extension.iniFile} w] 133 136 puts $fp "; Do not edit this file; it is automatically generated by MacPorts." 134 137 puts $fp "; Any changes you make will be lost if you upgrade or uninstall ${name}." 135 138 puts $fp "; To configure PHP, edit ${php5extension.php_ini}." … … 137 140 puts $fp "${extension_prefix}${extension}.so" 138 141 } 139 142 close $fp 143 144 if { [ file exists ${filespath}/php_default.ini ] } { 145 exec cat ${filespath}/php_default.ini >> ${php5extension.iniFile} 146 } 147 148 140 149 } 141 150 142 151 post-install {