diff --git a/databases/py-odbc/Makefile b/databases/py-odbc/Makefile new file mode 100644 index 00000000000..31e5d496752 --- /dev/null +++ b/databases/py-odbc/Makefile @@ -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 diff --git a/databases/py-odbc/distinfo b/databases/py-odbc/distinfo new file mode 100644 index 00000000000..65978e74ef0 --- /dev/null +++ b/databases/py-odbc/distinfo @@ -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 diff --git a/databases/py-odbc/patches/patch-setup_py b/databases/py-odbc/patches/patch-setup_py new file mode 100644 index 00000000000..80092a3ee8e --- /dev/null +++ b/databases/py-odbc/patches/patch-setup_py @@ -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)] + diff --git a/databases/py-odbc/pkg/DESCR b/databases/py-odbc/pkg/DESCR new file mode 100644 index 00000000000..d01f1f24270 --- /dev/null +++ b/databases/py-odbc/pkg/DESCR @@ -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. diff --git a/databases/py-odbc/pkg/PLIST b/databases/py-odbc/pkg/PLIST new file mode 100644 index 00000000000..08ff636273f --- /dev/null +++ b/databases/py-odbc/pkg/PLIST @@ -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