Ticket #29416: Portfile

File Portfile, 1.4 KB (added by stevecheckoway (Stephen Checkoway), 13 years ago)
Line 
1PortSystem 1.0
2PortGroup python27 1.0
3
4name                py27-oursql
5version             0.9.2
6categories          python devel databases
7maintainers         
8description         Python driver for MySQL
9long_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.
12platforms           darwin
13homepage            https://launchpad.net/oursql
14master_sites        http://launchpad.net/oursql/trunk/${version}/+download/
15distname            oursql-${version}
16checksums           md5     f0ecbdde6d4f6e45538a609292018665 \
17                    sha1    d3d82bc5f6bf646f37853020171fed48e9920d9e \
18                    rmd160  0f38d57b34ce5194c8ad5a9717e5cf3fe2dcd7af
19use_bzip2           yes
20
21variant mysql4 conflicts mysql5 description {Build with MySQL 4} {
22    depends_lib-append  port:mysql4
23    build.env           MYSQL_CONFIG=mysql_config4
24}
25
26variant 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
31if {![variant_isset mysql4]} {
32    default_variants +mysql5
33}
34
35pre-fetch {
36    if {![variant_isset mysql4] && ![variant_isset mysql5]} {
37        return -code error "you must select either mysql4 or mysql5"
38    }
39}