Ticket #20119: Portfile.diff
File Portfile.diff, 5.5 KB (added by simon+macports@…, 15 years ago) |
---|
-
.txt
old new 4 4 5 5 name php5 6 6 epoch 1 7 version 5. 2.107 version 5.3.0 8 8 revision 1 9 9 set major [lindex [split ${version} .] 0] 10 10 set my_name php${major} 11 11 dist_subdir ${my_name} 12 12 categories lang php www 13 13 maintainers ryandesign jwa 14 homepage http:// www.php.net/14 homepage http://qa.php.net/ 15 15 distname php-${version} 16 16 use_bzip2 yes 17 17 platforms darwin freebsd … … 26 26 be used for command-line scripting. 27 27 28 28 master_sites \ 29 ${homepage}distributions/ \ 30 http://it.php.net/distributions/ \ 31 http://fi.php.net/distributions/ \ 32 http://de.php.net/distributions/ \ 33 http://gr.php.net/distributions/ \ 34 http://fr.php.net/distributions/ \ 35 http://es.php.net/distributions/ \ 36 http://se.php.net/distributions/ 29 http://downloads.php.net/ilia/ \ 30 http://downloads.php.net/johannes/ 37 31 38 32 checksums \ 39 md5 15c7b5a87f57332d6fc683528e28247b\40 sha1 9a287e2791d28928fb1ee1a1167290c5005feccd\41 rmd160 9a9ec823eda9d6b3c085967e7a71f776071fc78f33 md5 f4905eca4497da3f0beb5c96863196b4 \ 34 sha1 a4bc5f2bf9d42f5932d8467fba4b0024d957adf4 \ 35 rmd160 ce5abd751a0cbf4e3745376053eb2053c4b56339 42 36 43 37 depends_build \ 44 38 port:pkgconfig \ … … 103 97 --with-openssl=${prefix} \ 104 98 --with-mhash=${prefix} \ 105 99 --with-mcrypt=${prefix} \ 106 --with-mime-magic \107 100 --with-xsl=${prefix} \ 108 101 --with-curl=${prefix} \ 109 102 --with-pcre-regex=${prefix} \ … … 148 141 variant apache conflicts apache2 no_web description {Add Apache 1 web server module} { 149 142 if { ! [variant_isset macosx] } { 150 143 depends_lib-append \ 151 p ath:sbin/apxs:apache144 port:apache 152 145 configure.args-append \ 153 146 --with-apxs=${prefix}/sbin/apxs 154 147 } else { … … 168 161 } 169 162 destroot.violate_mtree yes 170 163 depends_lib-append \ 171 p ath:apache2/bin/apxs:apache2164 port:apache2 172 165 configure.args-append \ 173 166 --with-apxs2=${prefix}/apache2/bin/apxs 174 167 } … … 200 193 variant imap description {enable operation with IMAP protocol} { 201 194 depends_lib-append \ 202 195 port:cclient 196 configure.cppflags-append \ 197 -I${prefix}/include/c-client 203 198 configure.args-append \ 204 199 --with-imap=${prefix} \ 205 200 --with-imap-ssl=${prefix} … … 250 245 --with-snmp=${prefix} 251 246 } 252 247 253 variant mysql3 conflicts mysql4 mysql5 description {build MySQL 3 support} {248 variant mysql3 conflicts mysql4 mysql5 mysqlnd description {build MySQL 3 support} { 254 249 depends_lib-append \ 255 250 port:mysql3 256 251 configure.args-delete \ … … 260 255 --with-pdo-mysql=${prefix} 261 256 } 262 257 263 variant mysql4 conflicts mysql3 mysql5 description {build MySQL 4 support} {258 variant mysql4 conflicts mysql3 mysql5 mysqlnd description {build MySQL 4 support} { 264 259 depends_lib-append \ 265 260 port:mysql4 266 261 configure.args-delete \ … … 270 265 --with-pdo-mysql=${prefix} 271 266 } 272 267 273 variant mysql5 conflicts mysql3 mysql4 description {build MySQL 5 support} {268 variant mysql5 conflicts mysql3 mysql4 mysqlnd description {build MySQL 5 support} { 274 269 depends_lib-append \ 275 270 path:bin/mysql_config5:mysql5 276 271 configure.args-delete \ … … 287 282 } 288 283 } 289 284 285 variant mysqlnd conflicts mysql3 mysql4 mysql5 description {build MySQL Native Driver support for MySQL 4.1 and up} { 286 configure.args-delete \ 287 --without-mysql 288 configure.args-append \ 289 --with-mysql=mysqlnd \ 290 --with-mysqli=mysqlnd \ 291 --with-pdo-mysql=mysqlnd 292 } 293 290 294 variant oracle description {Add Oracle oci8 database functions with the Oracle Instant Client} { 291 295 patchfiles-append \ 292 296 patch-ext-pdo_oci-config.m4.diff … … 454 458 # Copy the default php.ini files. 455 459 xinstall -m 755 -d ${destroot}${phpinidir} 456 460 xinstall -m 644 -W ${worksrcpath} \ 457 php.ini-d ist \458 php.ini- recommended\461 php.ini-development \ 462 php.ini-production \ 459 463 ${destroot}${phpinidir} 460 464 } 461 465 … … 467 471 } 468 472 if {![file exists ${phpinidir}/php.ini]} { 469 473 ui_msg "To customize php, copy" 470 ui_msg "${phpinidir}/php.ini-d ist (if this is a development server) or"471 ui_msg "${phpinidir}/php.ini- recommended(if this is a production server) to"474 ui_msg "${phpinidir}/php.ini-development (if this is a development server) or" 475 ui_msg "${phpinidir}/php.ini-production (if this is a production server) to" 472 476 ui_msg "${phpinidir}/php.ini and then make changes." 473 477 } else { 474 478 ui_msg "You may need to update your php.ini for any changes that have been made" 475 479 ui_msg "in this version of php. Compare ${phpinidir}/php.ini with" 476 ui_msg "${phpinidir}/php.ini-d ist (if this is a development server) or"477 ui_msg "${phpinidir}/php.ini- recommended(if this is a production server)."480 ui_msg "${phpinidir}/php.ini-development (if this is a development server) or" 481 ui_msg "${phpinidir}/php.ini-production (if this is a production server)." 478 482 } 479 483 480 484 if {![variant_isset no_web]} { … … 506 510 test.run yes 507 511 508 512 livecheck.check regex 509 livecheck.url ${homepage} downloads.php510 livecheck.regex get/php-(5\\.\[0-9.\]+)\\.tar513 livecheck.url ${homepage} 514 livecheck.regex php-?(5\\.\[0-9.\]+(?:(?:alpha|beta|RC)\\d+|-latest))\\.tar