16 | | master_sites http://launchpad.net/oursql/trunk/${version}/+download/ |
17 | | distname oursql-${version} |
18 | | use_bzip2 yes |
19 | | checksums sha1 d3d82bc5f6bf646f37853020171fed48e9920d9e \ |
| 17 | if {${python.version} >= 30} { |
| 18 | master_sites http://launchpad.net/oursql/py3k/py3k-${version}/+download/ |
| 19 | checksums rmd160 96aa89ac52ec57ccfb11e0755b83f00260176450 \ |
| 20 | sha256 dd915676f48fa8d63cfc83ddbb68c7465057df5ec7c78e45214310b425db5c0f |
| 21 | dist_subdir ${name}-py3k |
| 22 | use_zip yes |
| 23 | } else { |
| 24 | master_sites http://launchpad.net/oursql/trunk/${version}/+download/ |
| 25 | checksums sha1 d3d82bc5f6bf646f37853020171fed48e9920d9e \ |
37 | | } |
38 | | |
39 | | if {![variant_isset mysql4]} { |
40 | | default_variants +mysql5 |
41 | | } |
42 | | |
43 | | pre-fetch { |
44 | | if {![variant_isset mysql4] && ![variant_isset mysql5]} { |
45 | | return -code error "you must select either mysql4 or mysql5" |
| 47 | |
| 48 | variant mysql51 conflicts mysql4 mysql5 mysql55 mysql56 description {Build with MySQL 5.1} { |
| 49 | depends_lib-append path:bin/mysql_config51:mysql51 |
| 50 | set mysql_config lib/mysql51/bin/mysql_config |
| 51 | } |
| 52 | |
| 53 | variant mysql55 conflicts mysql4 mysql5 mysql51 mysql56 description {Build with MySQL 5.5} { |
| 54 | depends_lib-append path:bin/mysql_config55:mysql55 |
| 55 | set mysql_config lib/mysql55/bin/mysql_config |
| 56 | } |
| 57 | |
| 58 | variant mysql56 conflicts mysql4 mysql5 mysql51 mysql55 description {Build with MySQL 5.6} { |
| 59 | depends_lib-append path:bin/mysql_config56:mysql56 |
| 60 | set mysql_config lib/mysql56/bin/mysql_config |
| 61 | } |
| 62 | |
| 63 | if {![variant_isset mysql4] && |
| 64 | ![variant_isset mysql5] && |
| 65 | ![variant_isset mysql51] && |
| 66 | ![variant_isset mysql55] && |
| 67 | ![variant_isset mysql56]} { |
| 68 | default_variants +mysql5 |
| 69 | } |
| 70 | |
| 71 | pre-fetch { |
| 72 | if {![variant_isset mysql4] && |
| 73 | ![variant_isset mysql5] && |
| 74 | ![variant_isset mysql51] && |
| 75 | ![variant_isset mysql55] && |
| 76 | ![variant_isset mysql56]} { |
| 77 | return -code error "you must select either mysql4, mysql5, mysql51, mysql55, mysql56" |
| 78 | } |