Ticket #20119: Portfile.diff

File Portfile.diff, 5.5 KB (added by simon+macports@…, 15 years ago)
  • .txt

    old new  
    44
    55name                    php5
    66epoch                   1
    7 version                 5.2.10
     7version                 5.3.0
    88revision                1
    99set major               [lindex [split ${version} .] 0]
    1010set my_name             php${major}
    1111dist_subdir             ${my_name}
    1212categories              lang php www
    1313maintainers             ryandesign jwa
    14 homepage                http://www.php.net/
     14homepage                http://qa.php.net/
    1515distname                php-${version}
    1616use_bzip2               yes
    1717platforms               darwin freebsd
     
    2626    be used for command-line scripting.
    2727
    2828master_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/
    3731
    3832checksums \
    39     md5     15c7b5a87f57332d6fc683528e28247b \
    40     sha1    9a287e2791d28928fb1ee1a1167290c5005feccd \
    41     rmd160  9a9ec823eda9d6b3c085967e7a71f776071fc78f
     33    md5     f4905eca4497da3f0beb5c96863196b4 \
     34    sha1    a4bc5f2bf9d42f5932d8467fba4b0024d957adf4 \
     35    rmd160  ce5abd751a0cbf4e3745376053eb2053c4b56339
    4236
    4337depends_build \
    4438    port:pkgconfig \
     
    10397    --with-openssl=${prefix} \
    10498    --with-mhash=${prefix} \
    10599    --with-mcrypt=${prefix} \
    106     --with-mime-magic \
    107100    --with-xsl=${prefix} \
    108101    --with-curl=${prefix} \
    109102    --with-pcre-regex=${prefix} \
     
    148141variant apache conflicts apache2 no_web description {Add Apache 1 web server module} {
    149142    if { ! [variant_isset macosx] } {
    150143        depends_lib-append \
    151             path:sbin/apxs:apache
     144            port:apache
    152145        configure.args-append \
    153146            --with-apxs=${prefix}/sbin/apxs
    154147    } else {
     
    168161    }
    169162    destroot.violate_mtree yes
    170163    depends_lib-append \
    171         path:apache2/bin/apxs:apache2
     164        port:apache2
    172165    configure.args-append \
    173166        --with-apxs2=${prefix}/apache2/bin/apxs
    174167}
     
    200193variant imap description {enable operation with IMAP protocol} {
    201194    depends_lib-append \
    202195        port:cclient
     196    configure.cppflags-append \
     197        -I${prefix}/include/c-client
    203198    configure.args-append \
    204199        --with-imap=${prefix} \
    205200        --with-imap-ssl=${prefix}
     
    250245        --with-snmp=${prefix}
    251246}
    252247
    253 variant mysql3 conflicts mysql4 mysql5 description {build MySQL 3 support} {
     248variant mysql3 conflicts mysql4 mysql5 mysqlnd description {build MySQL 3 support} {
    254249    depends_lib-append \
    255250        port:mysql3
    256251    configure.args-delete \
     
    260255        --with-pdo-mysql=${prefix}
    261256}
    262257
    263 variant mysql4 conflicts mysql3 mysql5 description {build MySQL 4 support} {
     258variant mysql4 conflicts mysql3 mysql5 mysqlnd description {build MySQL 4 support} {
    264259    depends_lib-append \
    265260        port:mysql4
    266261    configure.args-delete \
     
    270265        --with-pdo-mysql=${prefix}
    271266}
    272267
    273 variant mysql5 conflicts mysql3 mysql4 description {build MySQL 5 support} {
     268variant mysql5 conflicts mysql3 mysql4 mysqlnd description {build MySQL 5 support} {
    274269    depends_lib-append \
    275270        path:bin/mysql_config5:mysql5
    276271    configure.args-delete \
     
    287282    }
    288283}
    289284
     285variant 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
    290294variant oracle description {Add Oracle oci8 database functions with the Oracle Instant Client} {
    291295    patchfiles-append \
    292296        patch-ext-pdo_oci-config.m4.diff
     
    454458    # Copy the default php.ini files.
    455459    xinstall -m 755 -d ${destroot}${phpinidir}
    456460    xinstall -m 644 -W ${worksrcpath} \
    457         php.ini-dist \
    458         php.ini-recommended \
     461        php.ini-development \
     462        php.ini-production \
    459463        ${destroot}${phpinidir}
    460464}
    461465
     
    467471    }
    468472    if {![file exists ${phpinidir}/php.ini]} {
    469473        ui_msg "To customize php, copy"
    470         ui_msg "${phpinidir}/php.ini-dist (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"
    472476        ui_msg "${phpinidir}/php.ini and then make changes."
    473477    } else {
    474478        ui_msg "You may need to update your php.ini for any changes that have been made"
    475479        ui_msg "in this version of php. Compare ${phpinidir}/php.ini with"
    476         ui_msg "${phpinidir}/php.ini-dist (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)."
    478482    }
    479483   
    480484    if {![variant_isset no_web]} {
     
    506510test.run                yes
    507511
    508512livecheck.check         regex
    509 livecheck.url           ${homepage}downloads.php
    510 livecheck.regex         get/php-(5\\.\[0-9.\]+)\\.tar
     513livecheck.url           ${homepage}
     514livecheck.regex         php-?(5\\.\[0-9.\]+(?:(?:alpha|beta|RC)\\d+|-latest))\\.tar