Ticket #44484: p5-dbd-mysql.diff

File p5-dbd-mysql.diff, 3.1 KB (added by hassy.6thsense@…, 10 years ago)
  • p5-dbd-mysql/Portfile

    old new  
    2020
    2121    depends_lib-append          port:p${perl5.major}-dbi
    2222
    23     variant mysql4 conflicts mysql5 mysql51 mysql55 mariadb percona description {build with mysql4 port} {
     23    variant mysql4 conflicts mysql51 mysql55 mysql56 mariadb55 percona55 description {build with mysql4 port} {
    2424        depends_lib-append      port:mysql4
    2525    }
    2626
    27     variant mysql5 conflicts mysql4 mysql51 mysql55 mariadb percona description {build with mysql5 port} {
    28         depends_lib-append      path:bin/mysql_config5:mysql5
    29         configure.args-append   --mysql_config=${prefix}/bin/mysql_config5
    30     }
    31 
    32     variant mysql51 conflicts mysql4 mysql5 mysql55 mariadb percona description {build with mysql51 port} {
     27    variant mysql51 conflicts mysql4 mysql55 mysql56 mariadb55 percona55 description {build with mysql51 port} {
    3328        depends_lib-append      port:mysql51
    3429        configure.args-append   --mysql_config=${prefix}/lib/mysql51/bin/mysql_config
    3530    }
    3631
    37     variant mysql55 conflicts mysql4 mysql5 mysql51 mariadb percona description {build with mysql55 port} {
     32    variant mysql55 conflicts mysql4 mysql51 mysql56 mariadb55 percona55 description {build with mysql55 port} {
    3833        depends_lib-append      port:mysql55
    3934        configure.args-append   --mysql_config=${prefix}/lib/mysql55/bin/mysql_config
    4035    }
    4136
    42     variant mariadb conflicts mysql4 mysql5 mysql51 mysql55 percona description {build with mariadb port} {
     37    variant mysql56 conflicts mysql4 mysql51 mysql55 mariadb55 percona55 description {build with mysql56 port} {
     38        depends_lib-append      port:mysql56
     39        configure.args-append   --mysql_config=${prefix}/lib/mysql56/bin/mysql_config
     40    }
     41
     42    variant mariadb55 conflicts mysql4 mysql51 mysql55 mysql56 percona55 description {build with mariadb port} {
    4343        depends_lib-append      port:mariadb
    4444        configure.args-append   --mysql_config=${prefix}/lib/mariadb/bin/mysql_config
    4545    }
    4646
    47     variant percona conflicts mysql4 mysql5 mysql51 mysql55 mariadb description {build with percona port} {
     47    variant percona55 conflicts mysql4 mysql51 mysql55 mysql56 mariadb55 description {build with percona port} {
    4848        depends_lib-append      port:percona
    4949        configure.args-append   --mysql_config=${prefix}/lib/percona/bin/mysql_config
    5050    }
    5151
     52    # If legacy +mysql5 variant change to replacement +mysql51 variant.
     53    if {[variant_isset mysql5]} {
     54        default_variants-append +mysql51
     55    }
     56
    5257    if {   ![variant_isset mysql4]
    53         && ![variant_isset mysql5]
    5458        && ![variant_isset mysql51]
    5559        && ![variant_isset mysql55]
    56         && ![variant_isset mariadb]
    57         && ![variant_isset percona]
     60        && ![variant_isset mysql56]
     61        && ![variant_isset mariadb55]
     62        && ![variant_isset percona55]
    5863    } {
    59         default_variants        +mysql5
     64        default_variants        +mariadb55
    6065    }
    6166}