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