1 | # $Id: Portfile 65908 2010-04-02 22:28:17Z jmr@macports.org $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | PortGroup python27 1.0 |
---|
5 | |
---|
6 | name py27-mysql |
---|
7 | version 1.2.2 |
---|
8 | categories python devel databases |
---|
9 | maintainers nomaintainer |
---|
10 | description Python interface to mysql |
---|
11 | long_description A package containing a Python module that allows you to \ |
---|
12 | connect to MySQL databases |
---|
13 | platforms darwin |
---|
14 | homepage http://sourceforge.net/projects/mysql-python/ |
---|
15 | master_sites sourceforge:mysql-python |
---|
16 | distname MySQL-python-${version} |
---|
17 | checksums md5 532268f02870bea18c1d465e88afff30 |
---|
18 | patchfiles patch-_mysql.c.diff |
---|
19 | |
---|
20 | depends_lib-append port:py27-distribute |
---|
21 | |
---|
22 | variant mysql4 conflicts mysql5 description {Build with MySQL 4} { |
---|
23 | depends_lib-append port:mysql4 |
---|
24 | } |
---|
25 | |
---|
26 | variant mysql5 conflicts mysql4 description {Build with MySQL 5} { |
---|
27 | patchfiles-append patch-setup_posix.py.diff |
---|
28 | depends_lib-append path:bin/mysql_config5:mysql5 |
---|
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 | } |
---|