1 | PortSystem 1.0 |
---|
2 | PortGroup python27 1.0 |
---|
3 | |
---|
4 | name py27-oursql |
---|
5 | version 0.9.2 |
---|
6 | categories python devel databases |
---|
7 | maintainers |
---|
8 | description Python driver for MySQL |
---|
9 | long_description oursql is a set of MySQL bindings for python with a focus \ |
---|
10 | on wrapping the MYSQL_STMT API to provide real \ |
---|
11 | parameterization and real server-side cursors. |
---|
12 | platforms darwin |
---|
13 | homepage https://launchpad.net/oursql |
---|
14 | master_sites http://launchpad.net/oursql/trunk/${version}/+download/ |
---|
15 | distname oursql-${version} |
---|
16 | checksums md5 f0ecbdde6d4f6e45538a609292018665 \ |
---|
17 | sha1 d3d82bc5f6bf646f37853020171fed48e9920d9e \ |
---|
18 | rmd160 0f38d57b34ce5194c8ad5a9717e5cf3fe2dcd7af |
---|
19 | use_bzip2 yes |
---|
20 | |
---|
21 | variant mysql4 conflicts mysql5 description {Build with MySQL 4} { |
---|
22 | depends_lib-append port:mysql4 |
---|
23 | build.env MYSQL_CONFIG=mysql_config4 |
---|
24 | } |
---|
25 | |
---|
26 | variant mysql5 conflicts mysql4 description {Build with MySQL 5} { |
---|
27 | depends_lib-append path:bin/mysql_config5:mysql5 |
---|
28 | build.env MYSQL_CONFIG=mysql_config5 |
---|
29 | } |
---|
30 | |
---|
31 | if {![variant_isset mysql4]} { |
---|
32 | default_variants +mysql5 |
---|
33 | } |
---|
34 | |
---|
35 | pre-fetch { |
---|
36 | if {![variant_isset mysql4] && ![variant_isset mysql5]} { |
---|
37 | return -code error "you must select either mysql4 or mysql5" |
---|
38 | } |
---|
39 | } |
---|