import databases/py-odbc:
pyodbc is a MIT-licensed 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 and additional features to simplify database programming.
This commit is contained in:
parent
eb8633b7f8
commit
8bde18c04d
31
databases/py-odbc/Makefile
Normal file
31
databases/py-odbc/Makefile
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
# $OpenBSD: Makefile,v 1.1.1.1 2009/07/31 10:21:04 sthen Exp $
|
||||||
|
|
||||||
|
SHARED_ONLY = Yes
|
||||||
|
|
||||||
|
COMMENT = ODBC bindings for Python
|
||||||
|
|
||||||
|
MODPY_EGG_VERSION=2.1.6
|
||||||
|
DISTNAME = pyodbc-${MODPY_EGG_VERSION}
|
||||||
|
PKGNAME = ${DISTNAME:S/py/py-/}
|
||||||
|
|
||||||
|
CATEGORIES = databases
|
||||||
|
|
||||||
|
HOMEPAGE = http://pyodbc.googlecode.com/
|
||||||
|
|
||||||
|
# MIT
|
||||||
|
PERMIT_PACKAGE_CDROM = Yes
|
||||||
|
PERMIT_PACKAGE_FTP = Yes
|
||||||
|
PERMIT_DISTFILES_CDROM =Yes
|
||||||
|
PERMIT_DISTFILES_FTP = Yes
|
||||||
|
|
||||||
|
MASTER_SITES = ${HOMEPAGE}files/
|
||||||
|
EXTRACT_SUFX = .zip
|
||||||
|
|
||||||
|
MODULES = lang/python
|
||||||
|
LIB_DEPENDS = iodbc::databases/iodbc
|
||||||
|
|
||||||
|
CFLAGS += -fPIC -I${LOCALBASE}/include -L${LOCALBASE}/lib
|
||||||
|
|
||||||
|
NO_REGRESS = Yes
|
||||||
|
|
||||||
|
.include <bsd.port.mk>
|
5
databases/py-odbc/distinfo
Normal file
5
databases/py-odbc/distinfo
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
MD5 (pyodbc-2.1.6.zip) = qYO+hrYQSFiO/jB5tXDySQ==
|
||||||
|
RMD160 (pyodbc-2.1.6.zip) = batk2YekjUINaTb4NJ6KpDYm0jQ=
|
||||||
|
SHA1 (pyodbc-2.1.6.zip) = OKOXIgRYQMaHydvJPTojV7HZI58=
|
||||||
|
SHA256 (pyodbc-2.1.6.zip) = Ckt463KUxSmZbtUsZdVpaCOuCQRrU5e8KSflesQ47gg=
|
||||||
|
SIZE (pyodbc-2.1.6.zip) = 150127
|
12
databases/py-odbc/patches/patch-setup_py
Normal file
12
databases/py-odbc/patches/patch-setup_py
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
$OpenBSD: patch-setup_py,v 1.1.1.1 2009/07/31 10:21:04 sthen Exp $
|
||||||
|
--- setup.py.orig Fri Jul 17 23:37:31 2009
|
||||||
|
+++ setup.py Fri Jul 17 23:37:40 2009
|
||||||
|
@@ -58,7 +58,7 @@ def main():
|
||||||
|
extra_compile_args = ['-Wno-write-strings']
|
||||||
|
|
||||||
|
# What is the proper way to detect iODBC, MyODBC, unixODBC, etc.?
|
||||||
|
- libraries.append('odbc')
|
||||||
|
+ libraries.append('iodbc')
|
||||||
|
|
||||||
|
macros = [('PYODBC_%s' % name, value) for name,value in zip(['MAJOR', 'MINOR', 'MICRO', 'BUILD'], version)]
|
||||||
|
|
4
databases/py-odbc/pkg/DESCR
Normal file
4
databases/py-odbc/pkg/DESCR
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
pyodbc is a MIT-licensed 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 and
|
||||||
|
additional features to simplify database programming.
|
3
databases/py-odbc/pkg/PLIST
Normal file
3
databases/py-odbc/pkg/PLIST
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
@comment $OpenBSD: PLIST,v 1.1.1.1 2009/07/31 10:21:04 sthen Exp $
|
||||||
|
lib/python${MODPY_VERSION}/site-packages/pyodbc-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info
|
||||||
|
lib/python${MODPY_VERSION}/site-packages/pyodbc.so
|
Loading…
Reference in New Issue
Block a user