Ticket #39068: patch-py-mysql-variants.diff

File patch-py-mysql-variants.diff, 3.3 KB (added by pixilla (Bradley Giesbrecht), 10 years ago)
  • opt/local/var/macports/sources/svn.macports.org/trunk/dports/python/py-mysql/Portfile

     
    4242        if {![variant_isset mysql4] &&
    4343            ![variant_isset mysql5] &&
    4444            ![variant_isset mysql51] &&
    45             ![variant_isset mysql55]} {
    46             return -code error "you must select either mysql4, mysql5, mysql51 or mysql55"
     45            ![variant_isset mysql55] &&
     46            ![variant_isset mysql56] &&
     47            ![variant_isset mariadb55] &&
     48            ![variant_isset percona55]} {
     49            return -code error "you must select either mysql4, mysql5, mysql51, mysql55, mysql55, mysql56, mariadb55 or percona55"
    4750        }
    4851    }
    4952
     
    5659
    5760    set mysql_config {}
    5861
    59     variant mysql4 conflicts mysql5 mysql51 mysql55 description {Build with mysql4} {
     62    variant mysql4 conflicts mysql5 mysql51 mysql55 mysql56 mariadb55 percona55 description {Build with mysql4} {
    6063        depends_lib-append  port:mysql4
    6164        set mysql_config bin/mysql_config
    6265    }
    6366
    64     variant mysql5 conflicts mysql4 mysql51 mysql55 description {Build with mysql5} {
     67    variant mysql5 conflicts mysql4 mysql51 mysql55 mysql56 mariadb55 percona55 description {Build with mysql5} {
    6568        depends_lib-append  port:mysql5
    6669        set mysql_config lib/mysql5/bin/mysql_config
    6770    }
    6871
    69     variant mysql51 conflicts mysql4 mysql5 mysql55 description {Build with mysql51} {
     72    variant mysql51 conflicts mysql4 mysql5 mysql55 mysql56 mariadb55 percona55 description {Build with mysql51} {
    7073        depends_lib-append  port:mysql51
    7174        set mysql_config lib/mysql51/bin/mysql_config
    7275    }
    7376
    74     variant mysql55 conflicts mysql4 mysql5 mysql51 description {Build with mysql55} {
     77    variant mysql55 conflicts mysql4 mysql5 mysql51 mysql56 mariadb55 percona55 description {Build with mysql55} {
    7578        depends_lib-append  port:mysql55
    7679        set mysql_config lib/mysql55/bin/mysql_config
    7780    }
    7881
    79     if {![variant_isset mysql4] && ![variant_isset mysql5] && ![variant_isset mysql51] && ![variant_isset mysql55]} {
    80         default_variants +mysql5
     82    variant mysql56 conflicts mysql4 mysql5 mysql51 mysql55 mariadb55 percona55 description {Build with mysql56} {
     83        depends_lib-append  port:mysql56
     84        set mysql_config lib/mysql56/bin/mysql_config
    8185    }
    8286
     87    variant mariadb55 conflicts mysql4 mysql5 mysql51 mysql55 mysql56 percona55 description {Build with mariadb55} {
     88        depends_lib-append  port:mariadb
     89        set mysql_config lib/mariadb/bin/mysql_config
     90    }
     91
     92    variant percona55 conflicts mysql4 mysql5 mysql51 mysql55 mysql56 mariadb55 description {Build with percona55} {
     93        depends_lib-append  port:percona
     94        set mysql_config lib/percona/bin/mysql_config
     95    }
     96
     97    if {![variant_isset mysql4] && ![variant_isset mysql5] && ![variant_isset mysql51] && ![variant_isset mysql55] && ![variant_isset mysql56] && ![variant_isset mariadb55] && ![variant_isset percona55]} {
     98        default_variants +mariadb55
     99    }
     100
    83101    livecheck.type      none
    84102}