diff -u -r -N py-mysql.orig/Portfile py-mysql/Portfile
old
|
new
|
|
16 | 16 | distname MySQL-python-${version} |
17 | 17 | checksums md5 b0eb974cc3c917276e015275e1ec996f |
18 | 18 | |
19 | | depends_lib-append port:mysql4 |
| 19 | depends_lib-append port:mysql5 |
| 20 | patchfiles patch-setup.py |
| 21 | |
| 22 | variant use_mysql4 { |
| 23 | depends_lib-delete port:mysql5 |
| 24 | depends_lib-append port:mysql4 |
| 25 | patchfiles-delete patch-setup.py |
| 26 | } |
20 | 27 | |
21 | 28 | variant use_mysql3 { |
22 | | depends_lib-delete port:mysql4 |
| 29 | depends_lib-delete port:mysql5 |
23 | 30 | depends_lib-append port:mysql |
| 31 | patchfiles-delete patch-setup.py |
24 | 32 | } |
diff -u -r -N py-mysql.orig/files/patch-setup.py py-mysql/files/patch-setup.py
old
|
new
|
|
| 1 | --- setup.py.orig 2006-01-31 12:21:41.000000000 -0800 |
| 2 | +++ setup.py 2006-01-31 12:15:18.000000000 -0800 |
| 3 | @@ -62,7 +62,7 @@ |
| 4 | |
| 5 | def config(what): |
| 6 | from os import popen |
| 7 | - return popen("mysql_config --%s" % what).read().strip().split() |
| 8 | + return popen("mysql_config5 --%s" % what).read().strip().split() |
| 9 | |
| 10 | include_dirs = [ i[2:] for i in config('include') ] |
| 11 | |