aboutsummaryrefslogtreecommitdiffstats
path: root/databases/py-odbc
diff options
context:
space:
mode:
authorpi <pi@FreeBSD.org>2016-05-24 13:23:25 +0800
committerpi <pi@FreeBSD.org>2016-05-24 13:23:25 +0800
commit674186f53e5d4265e2c686b9ea55f7b2c4601b95 (patch)
tree13ae0465595ea83955eb56e2d3a538c07fcad9d6 /databases/py-odbc
parenta7fb58d831964a2178c61b298afb596fcfe1942f (diff)
downloadfreebsd-ports-gnome-674186f53e5d4265e2c686b9ea55f7b2c4601b95.tar.gz
freebsd-ports-gnome-674186f53e5d4265e2c686b9ea55f7b2c4601b95.tar.zst
freebsd-ports-gnome-674186f53e5d4265e2c686b9ea55f7b2c4601b95.zip
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)
Diffstat (limited to 'databases/py-odbc')
-rw-r--r--databases/py-odbc/Makefile10
-rw-r--r--databases/py-odbc/distinfo5
-rw-r--r--databases/py-odbc/files/patch-setup-libs18
-rw-r--r--databases/py-odbc/files/patch-setup.py18
-rw-r--r--databases/py-odbc/pkg-descr2
5 files changed, 27 insertions, 26 deletions
diff --git a/databases/py-odbc/Makefile b/databases/py-odbc/Makefile
index 2961a5652565..d0279334a454 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 cb94e356c15a..ceca691f8623 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 43eafe7e8c83..000000000000
--- 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 000000000000..023bd0a155a2
--- /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 820f6a6afe75..97a4279bf0f1 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