View | Details | Raw Unified | Return to bug 220305
Collapse All | Expand All

(-)py-odbc/Makefile (-1 / +1 lines)
Lines 2-8 Link Here
2
# $FreeBSD: head/databases/py-odbc/Makefile 431764 2017-01-17 17:29:32Z amdmi3 $
2
# $FreeBSD: head/databases/py-odbc/Makefile 431764 2017-01-17 17:29:32Z amdmi3 $
3
3
4
PORTNAME=	pyodbc
4
PORTNAME=	pyodbc
5
PORTVERSION=	4.0.1
5
PORTVERSION=	4.0.17
6
CATEGORIES=	databases python
6
CATEGORIES=	databases python
7
MASTER_SITES=	CHEESESHOP/source/p/${PORTNAME}
7
MASTER_SITES=	CHEESESHOP/source/p/${PORTNAME}
8
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
8
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
(-)py-odbc/distinfo (-3 / +3 lines)
Lines 1-3 Link Here
1
TIMESTAMP = 1484673680
1
TIMESTAMP = 1498574156
2
SHA256 (pyodbc-4.0.1.tar.gz) = ddd8d14f2206c790e583cdc4a09f934f0d2e12e56f3bc8d5e90b0960d1c96f8c
2
SHA256 (pyodbc-4.0.17.tar.gz) = a82892ba8d74318524efaaccaf8351d3a3b4079a07e1a758902a2b9e84529c9d
3
SIZE (pyodbc-4.0.1.tar.gz) = 190668
3
SIZE (pyodbc-4.0.17.tar.gz) = 196514
(-)files/patch-setup.py (-10 / +10 lines)
Lines 1-17 Link Here
1
--- setup.py.orig	2015-04-29 16:10:15 UTC
1
--- setup.py.orig	2017-03-01 17:28:07 UTC
2
+++ setup.py
2
+++ setup.py
3
@@ -187,6 +187,15 @@ def get_compiler_settings(version_str):
3
@@ -189,6 +189,15 @@ def get_compiler_settings(version_str):
4
         # What is the proper way to detect iODBC, MyODBC, unixODBC, etc.?
4
         # What is the proper way to detect iODBC, MyODBC, unixODBC, etc.?
5
         settings['libraries'].append('odbc')
5
         settings['libraries'].append('odbc')
6
 
6
 
7
+	if sys.platform.startswith('freebsd'):
7
+        if sys.platform.startswith('freebsd'):
8
+	    settings['library_dirs'] = ['/usr/local/lib/']
8
+            settings['library_dirs'] = ['/usr/local/lib/']
9
+	    settings['include_dirs'] = ['/usr/local/include/']
9
+            settings['include_dirs'] = ['/usr/local/include/']
10
+	    freebsd_prefix = '/usr/local'
10
+            freebsd_prefix = '/usr/local'
11
+	    if 'PREFIX' in os.environ:
11
+            if 'PREFIX' in os.environ:
12
+		freebsd_prefix = os.environ['PREFIX']
12
+                freebsd_prefix = os.environ['PREFIX']
13
+	    if 'PYTHONPREFIX_SITELIBDIR' in os.environ:
13
+            if 'PYTHONPREFIX_SITELIBDIR' in os.environ:
14
+		sys.path.append('/'.join(freebsd_prefix, os.environ['PYTHONPREFIX_SITELIBDIR']))
14
+                sys.path.append('/'.join(freebsd_prefix, os.environ['PYTHONPREFIX_SITELIBDIR']))
15
+
15
+
16
     return settings
16
     return settings
17
 
17
 

Return to bug 220305