diff options
author | pi <pi@FreeBSD.org> | 2016-05-24 05:23:25 +0000 |
---|---|---|
committer | pi <pi@FreeBSD.org> | 2016-05-24 05:23:25 +0000 |
commit | 22a34e3fb1dc2f2a7d0c70dc6b47a9c546222375 (patch) | |
tree | 13ae0465595ea83955eb56e2d3a538c07fcad9d6 | |
parent | 21191e3cff9d44b35c26dd447c7423ed09ccf021 (diff) | |
download | FreeBSD-ports-22a34e3fb1dc2f2a7d0c70dc6b47a9c546222375.zip FreeBSD-ports-22a34e3fb1dc2f2a7d0c70dc6b47a9c546222375.tar.gz |
databases/py-odbc: 3.0.7 -> 3.0.10
- Fix for 64-bit int problems and decimal problems.
PR: 209668
Submitted by: rob.kruus@gmail.com (maintainer)
-rw-r--r-- | databases/py-odbc/Makefile | 10 | ||||
-rw-r--r-- | databases/py-odbc/distinfo | 5 | ||||
-rw-r--r-- | databases/py-odbc/files/patch-setup-libs | 18 | ||||
-rw-r--r-- | databases/py-odbc/files/patch-setup.py | 18 | ||||
-rw-r--r-- | databases/py-odbc/pkg-descr | 2 |
5 files changed, 27 insertions, 26 deletions
diff --git a/databases/py-odbc/Makefile b/databases/py-odbc/Makefile index 2961a56..d027933 100644 --- a/databases/py-odbc/Makefile +++ b/databases/py-odbc/Makefile @@ -2,10 +2,10 @@ # $FreeBSD$ PORTNAME= pyodbc -PORTVERSION= 3.0.7 -PORTREVISION= 1 +PORTVERSION= 3.0.10 CATEGORIES= databases python -MASTER_SITES= GOOGLE_CODE +MASTER_SITES= CHEESESHOP +MASTER_SITE_SUBDIR= source/p/${PORTNAME} PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= rob.kruus@gmail.com @@ -13,8 +13,8 @@ COMMENT= ODBC connections for python LICENSE= MIT -USES= python zip -USE_PYTHON= distutils autoplist +USES= python +USE_PYTHON= autoplist distutils LIB_DEPENDS+= libodbc.so:databases/unixODBC BUILD_DEPENDS+= unixODBC>=2.2.14_1:databases/unixODBC diff --git a/databases/py-odbc/distinfo b/databases/py-odbc/distinfo index cb94e35..ceca691 100644 --- a/databases/py-odbc/distinfo +++ b/databases/py-odbc/distinfo @@ -1,2 +1,3 @@ -SHA256 (pyodbc-3.0.7.zip) = d8355f2d43b10386070e8564aa973119fdb6e10864e1bbd73f3224cd3baab351 -SIZE (pyodbc-3.0.7.zip) = 85722 +TIMESTAMP = 1463952270 +SHA256 (pyodbc-3.0.10.tar.gz) = a66d4f347f036df49a00addf38ca6769ad52f61acdb931c95bc3a9245d8f2b58 +SIZE (pyodbc-3.0.10.tar.gz) = 68798 diff --git a/databases/py-odbc/files/patch-setup-libs b/databases/py-odbc/files/patch-setup-libs deleted file mode 100644 index 43eafe7..0000000 --- a/databases/py-odbc/files/patch-setup-libs +++ /dev/null @@ -1,18 +0,0 @@ ---- setup.py.orig 2012-06-24 17:49:34.000000000 -0600 -+++ setup.py 2012-12-06 11:47:02.121782861 -0600 -@@ -156,6 +156,15 @@ - # What is the proper way to detect iODBC, MyODBC, unixODBC, etc.? - settings['libraries'].append('odbc') - -+ if sys.platform.startswith('freebsd'): -+ settings['library_dirs'] = ['/usr/local/lib/'] -+ settings['include_dirs'] = ['/usr/local/include/'] -+ freebsd_prefix = '/usr/local' -+ if 'PREFIX' in os.environ: -+ freebsd_prefix = os.environ['PREFIX'] -+ if 'PYTHONPREFIX_SITELIBDIR' in os.environ: -+ sys.path.append('/'.join(freebsd_prefix, os.environ['PYTHONPREFIX_SITELIBDIR'])) -+ - return settings - - diff --git a/databases/py-odbc/files/patch-setup.py b/databases/py-odbc/files/patch-setup.py new file mode 100644 index 0000000..023bd0a --- /dev/null +++ b/databases/py-odbc/files/patch-setup.py @@ -0,0 +1,18 @@ +--- setup.py.orig 2015-04-29 16:10:15 UTC ++++ setup.py +@@ -187,6 +187,15 @@ def get_compiler_settings(version_str): + # What is the proper way to detect iODBC, MyODBC, unixODBC, etc.? + settings['libraries'].append('odbc') + ++ if sys.platform.startswith('freebsd'): ++ settings['library_dirs'] = ['/usr/local/lib/'] ++ settings['include_dirs'] = ['/usr/local/include/'] ++ freebsd_prefix = '/usr/local' ++ if 'PREFIX' in os.environ: ++ freebsd_prefix = os.environ['PREFIX'] ++ if 'PYTHONPREFIX_SITELIBDIR' in os.environ: ++ sys.path.append('/'.join(freebsd_prefix, os.environ['PYTHONPREFIX_SITELIBDIR'])) ++ + return settings + + diff --git a/databases/py-odbc/pkg-descr b/databases/py-odbc/pkg-descr index 820f6a6..97a4279 100644 --- a/databases/py-odbc/pkg-descr +++ b/databases/py-odbc/pkg-descr @@ -5,4 +5,4 @@ It implements the Python Database API Specification v2.0, but additional features have been added to simplify database programming even more. -WWW: http://code.google.com/p/pyodbc/ +WWW: https://github.com/mkleehammer/pyodbc |