# HG changeset patch
# User bpanulla@eebc5948-5d07-4822-aef8-632c6929fb8b
# Date 2011-12-30 12:09:36 -0800
# Node ID 0d0361871a2de590fd2631b1cc6cf19afc750a9e
# Parent b63347da9f9d1eb3d543c4c42b4928292ac704f9
Upgraded to pyodbc 2.1.11 and fixed library path issues on OS X 10.7.
diff --git a/home/macports/python/py27-odbc/Portfile b/home/macports/python/py27-odbc/Portfile
a
|
b
|
|
4 | 4 | PortGroup python27 1.0 |
5 | 5 | |
6 | 6 | name py27-odbc |
7 | | revision 1 |
8 | 7 | set real_name pyodbc |
9 | | version 2.1.8 |
| 8 | version 2.1.11 |
10 | 9 | categories-append databases devel |
11 | 10 | platforms darwin |
12 | 11 | license MIT |
… |
… |
|
20 | 19 | master_sites http://${real_name}.googlecode.com/files/ |
21 | 20 | distname ${real_name}-${version} |
22 | 21 | use_zip yes |
23 | | checksums md5 7c9cfbb21afd65fb20bab127dc579c93 \ |
24 | | sha1 3b2a066a609f920225987ed18dfcbed95704a4bf \ |
25 | | rmd160 7bca24bf603f840c2f3253909254bc46a1fd3c92 |
| 22 | checksums md5 f8f62b725fbd88f4ba5bca288ae7d697 \ |
| 23 | sha1 df7c4aeca8e0ef96af83c51c7ff8c44ef361cc67 \ |
| 24 | rmd160 3d8a78ff4a9a24cb2810dbb24f41c04e07bf0b1c |
26 | 25 | patchfiles setup.py.patch |
27 | 26 | depends_lib-append port:unixODBC |
diff --git a/home/macports/python/py27-odbc/files/setup.py.patch b/home/macports/python/py27-odbc/files/setup.py.patch
a
|
b
|
|
1 | | --- setup.py.orig 2011-02-10 11:56:51.000000000 -0500 |
2 | | +++ setup.py 2011-02-10 11:57:32.000000000 -0500 |
3 | | @@ -52,10 +52,6 @@ |
4 | | # OS name not windows, but still on Windows |
5 | | libraries.append('odbc32') |
| 1 | --- setup.py.orig Fri Dec 30 11:04:36 2011 -0800 |
| 2 | +++ setup.py Fri Dec 30 11:06:45 2011 -0800 |
| 3 | @@ -132,8 +132,9 @@ |
| 4 | settings['libraries'].append('odbc32') |
6 | 5 | |
7 | | - elif sys.platform == 'darwin': |
| 6 | elif sys.platform == 'darwin': |
8 | 7 | - # OS/X now ships with iODBC. |
9 | | - libraries.append('iodbc') |
10 | | - |
| 8 | - settings['libraries'].append('iodbc') |
| 9 | + settings['libraries'].append('odbc') |
| 10 | + settings['include_dirs'] = ['/opt/local/include'] |
| 11 | + settings['library_dirs'] = ['/opt/local/lib'] |
| 12 | |
11 | 13 | else: |
12 | 14 | # Other posix-like: Linux, Solaris, etc. |
13 | | |