Ignore:
Timestamp:
Apr 3, 2015, 1:58:43 AM (4 years ago)
Author:
pixilla@…
Message:

databases/mysql55:

  • Update version to 5.5.42.
  • Use cmake.out_of_source. See #47197
  • Minor organizational edits.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/databases/mysql55/Portfile

    r120537 r134676  
    66name                mysql55
    77set name_mysql      ${name}
    8 version             5.5.38
     8version             5.5.42
    99# Set revision_client and revision_server to 0 if you bump version.
    1010set revision_client 0
     
    1717homepage            http://www.mysql.com/
    1818
    19 if {${subport} eq ${name}} {
     19if {$subport eq $name} {
    2020
    2121    PortGroup           archcheck 1.0
     
    3131
    3232    distname            mysql-${version}
     33    cmake.out_of_source yes
    3334    use_parallel_build  yes
    3435
     
    3637    patchfiles          patch-cmake-install_layout.cmake.diff
    3738
    38     checksums           rmd160 57034b4b0642de0b08a4cf4e7e2641c775485e06 \
    39                         sha256 61869633924ab243a3f676cf6b8feb66b672e3c07566a7190f0f1bb8c9b2fc81
     39    checksums           rmd160  6dc47c5a885439a99585a0a8225a8e234a19e12e \
     40                        sha256  887b12676be4893fa833e4a585c6c8b0c0f18dee30ba7d22cfe860cd85bfc74a
    4041
    4142    depends_lib-append  port:zlib port:tcp_wrappers
     
    4849
    4950    post-extract {
    50         file mkdir ${worksrcpath}/build_macports/macports
     51        file mkdir ${configure.dir}/macports
    5152        copy ${filespath}/macports-default.cnf \
    5253            ${filespath}/my.cnf \
    53             ${worksrcpath}/build_macports/macports/
     54            ${configure.dir}/macports/
    5455    }
    5556
     
    5859            ${worksrcpath}/cmake/install_layout.cmake
    5960        reinplace "s|@NAME@|${name_mysql}|g" \
    60             ${worksrcpath}/build_macports/macports/macports-default.cnf \
    61             ${worksrcpath}/build_macports/macports/my.cnf
     61            ${configure.dir}/macports/macports-default.cnf \
     62            ${configure.dir}/macports/my.cnf
    6263        reinplace "s|@PREFIX@|${prefix}|g" \
    63             ${worksrcpath}/build_macports/macports/macports-default.cnf \
    64             ${worksrcpath}/build_macports/macports/my.cnf
    65     }
    66 
    67     configure.cmd       cmake ..
    68     configure.dir       ${worksrcpath}/build_macports
    69     build.dir           ${worksrcpath}/build_macports
     64            ${configure.dir}/macports/macports-default.cnf \
     65            ${configure.dir}/macports/my.cnf
     66    }
    7067
    7168    configure.args-delete \
     
    9087
    9188    post-build {
    92         set dirs ${worksrcpath}/build_macports
    93         foreach dir ${dirs} {
     89        foreach dir ${configure.dir} {
    9490            reinplace -E {s|-arch [a-z0-9_]+||g} \
    9591                ${dir}/scripts/mysql_config \
     
    115111        xinstall -m 755 -o root -d \
    116112            ${destroot}${prefix}/etc/${name_mysql}
    117         copy ${worksrcpath}/build_macports/macports/macports-default.cnf \
     113        copy ${configure.dir}/macports/macports-default.cnf \
    118114            ${destroot}${prefix}/etc/${name_mysql}/
    119115        xinstall -m 755 -o root -d \
    120116            ${destroot}${prefix}/share/${name_mysql}/support-files/macports
    121         copy ${worksrcpath}/build_macports/macports/my.cnf \
     117        copy ${configure.dir}/macports/my.cnf \
    122118            ${destroot}${prefix}/share/${name_mysql}/support-files/macports/
    123119    }
     
    190186    livecheck.type          regex
    191187    livecheck.url           http://dev.mysql.com/downloads/mysql/${version_branch}.html
    192     livecheck.regex         "<h1>MySQL Community Server (${version_branch}(\.\[0-9.\]+)?)</h1>"
     188    livecheck.regex         "MySQL Community Server (${version_branch}(\.\[0-9.\]+)?)"
    193189}
    194190
Note: See TracChangeset for help on using the changeset viewer.