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
42 42 if {![variant_isset mysql4] && 43 43 ![variant_isset mysql5] && 44 44 ![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" 47 50 } 48 51 } 49 52 … … 56 59 57 60 set mysql_config {} 58 61 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} { 60 63 depends_lib-append port:mysql4 61 64 set mysql_config bin/mysql_config 62 65 } 63 66 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} { 65 68 depends_lib-append port:mysql5 66 69 set mysql_config lib/mysql5/bin/mysql_config 67 70 } 68 71 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} { 70 73 depends_lib-append port:mysql51 71 74 set mysql_config lib/mysql51/bin/mysql_config 72 75 } 73 76 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} { 75 78 depends_lib-append port:mysql55 76 79 set mysql_config lib/mysql55/bin/mysql_config 77 80 } 78 81 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 81 85 } 82 86 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 83 101 livecheck.type none 84 102 }