Ignore:
Timestamp:
Apr 1, 2015, 10:35:51 PM (4 years ago)
Author:
pixilla@…
Message:

databases/mysql56:

  • Use cmake.out_of_source. See #47197
  • Minor organizational edits.
File:
1 edited

Legend:

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

    r132850 r134646  
    1919maintainers         pixilla openmaintainer
    2020homepage            http://www.mysql.com/
    21 master_sites        mysql:MySQL-${version_branch}
    22 
    23 if {${subport} eq ${name_mysql}} {
     21
     22if {$subport eq $name} {
    2423
    2524    PortGroup           archcheck 1.0
    2625    PortGroup           cmake 1.0
     26    PortGroup           select 1.0
     27
     28    revision            ${revision_client}
     29    license             GPL-2
     30    description         Multithreaded SQL database server
     31    long_description    MySQL is an open-source, multi-threaded SQL database.
     32
     33    master_sites        mysql:MySQL-${version_branch}
    2734
    2835    distname            mysql-${version}
     36    cmake.out_of_source yes
    2937    use_parallel_build  yes
    3038
     
    5967                        sha256  3bd21af06a9304e372daba41fa5612bb54ac1bc05a4349b3160d0cda972ac098
    6068
     69    depends_lib-append  port:zlib port:tcp_wrappers
     70    depends_run-append  port:mysql_select
     71
     72    select.group        mysql
     73    select.file         ${filespath}/${name_mysql}
     74
    6175    archcheck.files     lib/libz.dylib lib/libwrap.dylib
    6276
    6377    post-extract {
    64         file mkdir ${worksrcpath}/build_macports/macports
     78        file mkdir ${configure.dir}/macports
    6579        copy ${filespath}/macports-default.cnf \
    6680            ${filespath}/my.cnf \
    67             ${worksrcpath}/build_macports/macports/
     81            ${configure.dir}/macports/
    6882    }
    6983
     
    7286            ${worksrcpath}/cmake/install_layout.cmake
    7387        reinplace "s|@NAME@|${name_mysql}|g" \
    74             ${worksrcpath}/build_macports/macports/macports-default.cnf \
    75             ${worksrcpath}/build_macports/macports/my.cnf
     88            ${configure.dir}/macports/macports-default.cnf \
     89            ${configure.dir}/macports/my.cnf
    7690        reinplace "s|@PREFIX@|${prefix}|g" \
    77             ${worksrcpath}/build_macports/macports/macports-default.cnf \
    78             ${worksrcpath}/build_macports/macports/my.cnf
     91            ${configure.dir}/macports/macports-default.cnf \
     92            ${configure.dir}/macports/my.cnf
    7993        reinplace "s|@SYSCONFDIR@|/etc/${name_mysql}|g" \
    8094            ${worksrcpath}/scripts/mysql_install_db.pl.in
     
    8599    }
    86100
    87     configure.dir       ${worksrcpath}/build_macports
    88     configure.cmd       cmake ..
    89101    configure.args-delete \
    90102                        -DCMAKE_INSTALL_NAME_DIR=${prefix}/lib
     
    108120    configure.cppflags-delete \
    109121                        -I${prefix}/include
    110 }
    111 
    112 if {${subport} eq ${name}} {
    113 
    114     PortGroup           select 1.0
    115 
    116     revision            ${revision_client}
    117     license             GPL-2
    118     description         Multithreaded SQL database server
    119     long_description    MySQL is an open-source, multi-threaded SQL database.
    120 
    121     depends_lib-append  port:zlib port:tcp_wrappers
    122     depends_run-append  port:mysql_select
    123 
    124     select.group        mysql
    125     select.file         ${filespath}/${name_mysql}
    126 
    127     build.dir           ${worksrcpath}/build_macports
    128     post-build {
    129         set dirs ${worksrcpath}/build_macports
    130         foreach dir ${dirs} {
    131             reinplace -E {s|-arch [a-z0-9_]+||g} \
    132                 ${dir}/scripts/mysql_config \
    133                 ${dir}/scripts/mysqlbug
    134         }
    135     }
    136122
    137123    post-destroot {
     
    152138        xinstall -m 755 -o root -d \
    153139            ${destroot}${prefix}/etc/${name_mysql}
    154         copy ${worksrcpath}/build_macports/macports/macports-default.cnf \
     140        copy ${configure.dir}/macports/macports-default.cnf \
    155141            ${destroot}${prefix}/etc/${name_mysql}/
    156142        xinstall -m 755 -o root -d \
    157143            ${destroot}${prefix}/share/${name_mysql}/support-files/macports
    158         copy ${worksrcpath}/build_macports/macports/my.cnf \
     144        copy ${configure.dir}/macports/my.cnf \
    159145            ${destroot}${prefix}/share/${name_mysql}/support-files/macports/
    160146        # Remove file supplied by ${name_mysql}-innodb-memcached-plugin subport.
Note: See TracChangeset for help on using the changeset viewer.