Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F108317106
D11587.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
5 KB
Referenced Files
None
Subscribers
None
D11587.diff
View Options
Index: head/MOVED
===================================================================
--- head/MOVED
+++ head/MOVED
@@ -9465,3 +9465,4 @@
dns/opendnssec13|dns/opendnssec14|2017-07-13|Has expired: Approaching EOL, upgrade to opendnssec 1.4 or 2
multimedia/banshee||2017-07-13|Has expired: Project is not being actively maintained upstream anymore
www/libhtp-suricata||2017-07-16|No longer required. security/suricata now uses official (not forked) libhtp
+databases/py-odbc|databases/py-pyodbc|2017-07-18|Rename to comply with PyPI scheme
Index: head/databases/Makefile
===================================================================
--- head/databases/Makefile
+++ head/databases/Makefile
@@ -768,7 +768,6 @@
SUBDIR += py-mysql-connector-python2
SUBDIR += py-mysql2pgsql
SUBDIR += py-mysqlclient
- SUBDIR += py-odbc
SUBDIR += py-oops
SUBDIR += py-oursql
SUBDIR += py-peewee
@@ -788,6 +787,7 @@
SUBDIR += py-pylibmc
SUBDIR += py-pymssql
SUBDIR += py-pymysql
+ SUBDIR += py-pyodbc
SUBDIR += py-pypuppetdb
SUBDIR += py-pypuppetdb03
SUBDIR += py-pytc
Index: head/databases/py-odbc/Makefile
===================================================================
--- head/databases/py-odbc/Makefile
+++ head/databases/py-odbc/Makefile
@@ -1,22 +0,0 @@
-# Created by: Robert Kruus <rob.kruus@gmail.com>
-# $FreeBSD$
-
-PORTNAME= pyodbc
-PORTVERSION= 4.0.1
-CATEGORIES= databases python
-MASTER_SITES= CHEESESHOP/source/p/${PORTNAME}
-PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
-
-MAINTAINER= rob.kruus@gmail.com
-COMMENT= ODBC connections for python
-
-LICENSE= MIT
-LICENSE_FILE= ${WRKSRC}/LICENSE.txt
-
-LIB_DEPENDS= libodbc.so:databases/unixODBC
-BUILD_DEPENDS= unixODBC>=2.2.14:databases/unixODBC
-
-USES= python
-USE_PYTHON= autoplist distutils
-
-.include <bsd.port.mk>
Index: head/databases/py-odbc/distinfo
===================================================================
--- head/databases/py-odbc/distinfo
+++ head/databases/py-odbc/distinfo
@@ -1,3 +0,0 @@
-TIMESTAMP = 1484673680
-SHA256 (pyodbc-4.0.1.tar.gz) = ddd8d14f2206c790e583cdc4a09f934f0d2e12e56f3bc8d5e90b0960d1c96f8c
-SIZE (pyodbc-4.0.1.tar.gz) = 190668
Index: head/databases/py-odbc/files/patch-setup.py
===================================================================
--- head/databases/py-odbc/files/patch-setup.py
+++ head/databases/py-odbc/files/patch-setup.py
@@ -1,18 +0,0 @@
---- 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
-
-
Index: head/databases/py-odbc/pkg-descr
===================================================================
--- head/databases/py-odbc/pkg-descr
+++ head/databases/py-odbc/pkg-descr
@@ -1,8 +0,0 @@
-pyodbc is a Python module that allows you to use ODBC to connect to
-almost any database from Windows, Linux, OS/X, and more.
-
-It implements the Python Database API Specification v2.0, but
-additional features have been added to simplify database
-programming even more.
-
-WWW: https://github.com/mkleehammer/pyodbc
Index: head/databases/py-pyodbc/Makefile
===================================================================
--- head/databases/py-pyodbc/Makefile
+++ head/databases/py-pyodbc/Makefile
@@ -0,0 +1,25 @@
+# Created by: Robert Kruus <rob.kruus@gmail.com>
+# $FreeBSD$
+
+PORTNAME= pyodbc
+PORTVERSION= 4.0.17
+CATEGORIES= databases python
+MASTER_SITES= CHEESESHOP
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= rob.kruus@gmail.com
+COMMENT= ODBC connections for python
+
+LICENSE= MIT
+LICENSE_FILE= ${WRKSRC}/LICENSE.txt
+
+LIB_DEPENDS= libodbc.so:databases/unixODBC
+BUILD_DEPENDS= unixODBC>=2.2.14:databases/unixODBC
+
+USES= localbase python
+USE_PYTHON= autoplist distutils
+
+post-install:
+ @${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/pyodbc.so
+
+.include <bsd.port.mk>
Index: head/databases/py-pyodbc/distinfo
===================================================================
--- head/databases/py-pyodbc/distinfo
+++ head/databases/py-pyodbc/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1500420030
+SHA256 (pyodbc-4.0.17.tar.gz) = a82892ba8d74318524efaaccaf8351d3a3b4079a07e1a758902a2b9e84529c9d
+SIZE (pyodbc-4.0.17.tar.gz) = 196514
Index: head/databases/py-pyodbc/pkg-descr
===================================================================
--- head/databases/py-pyodbc/pkg-descr
+++ head/databases/py-pyodbc/pkg-descr
@@ -0,0 +1,8 @@
+pyodbc is a Python module that allows you to use ODBC to connect to
+almost any database from Windows, Linux, OS/X, and more.
+
+It implements the Python Database API Specification v2.0, but
+additional features have been added to simplify database
+programming even more.
+
+WWW: https://github.com/mkleehammer/pyodbc
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Jan 24, 7:46 PM (21 h, 22 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16069376
Default Alt Text
D11587.diff (5 KB)
Attached To
Mode
D11587: databases/py-odbc: Update to 4.0.17, Rename to databases/py-pyodbc
Attached
Detach File
Event Timeline
Log In to Comment