aboutsummaryrefslogtreecommitdiffstats
path: root/databases
diff options
context:
space:
mode:
authorrm <rm@FreeBSD.org>2015-09-29 02:36:10 +0800
committerrm <rm@FreeBSD.org>2015-09-29 02:36:10 +0800
commit13ebfe2ba63b62a3adb2749a8c2e526cd6b12550 (patch)
treee606736c079f7dd6a4997823117c65968a24c63f /databases
parent57fb1dc0aa073ef7ccdba271d818a9044077eabe (diff)
downloadfreebsd-ports-gnome-13ebfe2ba63b62a3adb2749a8c2e526cd6b12550.tar.gz
freebsd-ports-gnome-13ebfe2ba63b62a3adb2749a8c2e526cd6b12550.tar.zst
freebsd-ports-gnome-13ebfe2ba63b62a3adb2749a8c2e526cd6b12550.zip
PyMSSQL is a MS-SQL database adapter for the Python programming
language. It was written from scratch using FreeTDS library. This is the version 2 release branch. WWW: http://www.pymssql.org/ WWW: https://github.com/pymssql/pymssql PR: 198694 Submitted by: ports@thelanman.net (based on)
Diffstat (limited to 'databases')
-rw-r--r--databases/Makefile1
-rw-r--r--databases/py-pymssql/Makefile26
-rw-r--r--databases/py-pymssql/distinfo2
-rw-r--r--databases/py-pymssql/files/patch-__mssql.pxd11
-rw-r--r--databases/py-pymssql/pkg-descr7
5 files changed, 47 insertions, 0 deletions
diff --git a/databases/Makefile b/databases/Makefile
index bffc7b42adf7..9a8b9b7173f6 100644
--- a/databases/Makefile
+++ b/databases/Makefile
@@ -754,6 +754,7 @@
SUBDIR += py-pyPgSQL
SUBDIR += py-pyhs
SUBDIR += py-pylibmc
+ SUBDIR += py-pymssql
SUBDIR += py-pymysql
SUBDIR += py-pypuppetdb
SUBDIR += py-pytc
diff --git a/databases/py-pymssql/Makefile b/databases/py-pymssql/Makefile
new file mode 100644
index 000000000000..b982694a5c06
--- /dev/null
+++ b/databases/py-pymssql/Makefile
@@ -0,0 +1,26 @@
+# $FreeBSD$
+
+PORTNAME= pymssql
+PORTVERSION= 2.1.1
+CATEGORIES= databases python
+MASTER_SITES= CHEESESHOP
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= ports@thelanman.net
+COMMENT= Python database interface for MS-SQL. Version 2
+
+LICENSE= LGPL21
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+BUILD_DEPENDS= cython:${PORTSDIR}/lang/cython \
+ ${PYTHON_PKGNAMEPREFIX}setuptools-git>0:${PORTSDIR}/devel/py-setuptools-git
+LIB_DEPENDS= libsybdb.so:${PORTSDIR}/databases/freetds
+
+USES= python
+USE_PYTHON= autoplist distutils
+
+post-install:
+ ${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/_mssql.so \
+ ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/pymssql.so
+
+.include <bsd.port.mk>
diff --git a/databases/py-pymssql/distinfo b/databases/py-pymssql/distinfo
new file mode 100644
index 000000000000..95e6d73c835f
--- /dev/null
+++ b/databases/py-pymssql/distinfo
@@ -0,0 +1,2 @@
+SHA256 (pymssql-2.1.1.tar.gz) = f1a1601dc3322c785733c84639d8d640c7204f9db4eab5f2a5cc908fb157140f
+SIZE (pymssql-2.1.1.tar.gz) = 2436094
diff --git a/databases/py-pymssql/files/patch-__mssql.pxd b/databases/py-pymssql/files/patch-__mssql.pxd
new file mode 100644
index 000000000000..8aca6024b559
--- /dev/null
+++ b/databases/py-pymssql/files/patch-__mssql.pxd
@@ -0,0 +1,11 @@
+--- _mssql.pxd.orig 2014-08-29 22:32:10 UTC
++++ _mssql.pxd
+@@ -35,7 +35,7 @@ cdef class MSSQLConnection:
+ cpdef cancel(self)
+ cdef void clear_metadata(self)
+ cdef object convert_db_value(self, BYTE *, int, int)
+- cdef int convert_python_value(self, object value, BYTE **, int*, int*) except -1
++ cdef int convert_python_value(self, object value, BYTE **dbValue, int *dbtype, int *length) except 1
+ cpdef execute_query(self, query, params=?)
+ cpdef execute_non_query(self, query, params=?)
+ cpdef execute_row(self, query, params=?)
diff --git a/databases/py-pymssql/pkg-descr b/databases/py-pymssql/pkg-descr
new file mode 100644
index 000000000000..d640b407beec
--- /dev/null
+++ b/databases/py-pymssql/pkg-descr
@@ -0,0 +1,7 @@
+PyMSSQL is a MS-SQL database adapter for the Python programming
+language. It was written from scratch using FreeTDS library.
+
+This is the version 2 release branch.
+
+WWW: http://www.pymssql.org/
+WWW: https://github.com/pymssql/pymssql