Ticket #22388: Portfile

File Portfile, 1.2 KB (added by habnabit@…, 15 years ago)

New portfile for oursql 0.9.1

Line 
1# $Id$
2
3PortSystem 1.0
4PortGroup python26 1.0
5
6name                py26-oursql
7version             0.9.1
8categories          python devel databases
9description         Python driver for MySQL
10long_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.
13platforms           darwin
14homepage            https://launchpad.net/oursql
15master_sites        http://launchpad.net/oursql/trunk/${version}/+download/
16distname            oursql-${version}
17checksums           md5 7e3064e355b027c73ca0a313373f6fd9
18
19variant mysql4 conflicts mysql5 description {Build with MySQL 4} {
20    depends_lib-append  port:mysql4
21    build.env           MYSQL_CONFIG=mysql_config4
22}
23
24variant 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
29if {![variant_isset mysql4]} {
30    default_variants +mysql5
31}
32
33pre-fetch {
34    if {![variant_isset mysql4] && ![variant_isset mysql5]} {
35        return -code error "you must select either mysql4 or mysql5"
36    }
37}