svn commit: r398133 - in head/databases: . py-pymssql py-pymssql/files
Ruslan Makhmatkhanov
rm at FreeBSD.org
Mon Sep 28 18:36:13 UTC 2015
Author: rm
Date: Mon Sep 28 18:36:10 2015
New Revision: 398133
URL: https://svnweb.freebsd.org/changeset/ports/398133
Log:
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 at thelanman.net (based on)
Added:
head/databases/py-pymssql/
head/databases/py-pymssql/Makefile (contents, props changed)
head/databases/py-pymssql/distinfo (contents, props changed)
head/databases/py-pymssql/files/
head/databases/py-pymssql/files/patch-__mssql.pxd (contents, props changed)
head/databases/py-pymssql/pkg-descr (contents, props changed)
Modified:
head/databases/Makefile
Modified: head/databases/Makefile
==============================================================================
--- head/databases/Makefile Mon Sep 28 18:33:46 2015 (r398132)
+++ head/databases/Makefile Mon Sep 28 18:36:10 2015 (r398133)
@@ -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
Added: head/databases/py-pymssql/Makefile
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/databases/py-pymssql/Makefile Mon Sep 28 18:36:10 2015 (r398133)
@@ -0,0 +1,26 @@
+# $FreeBSD$
+
+PORTNAME= pymssql
+PORTVERSION= 2.1.1
+CATEGORIES= databases python
+MASTER_SITES= CHEESESHOP
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= ports at 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>
Added: head/databases/py-pymssql/distinfo
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/databases/py-pymssql/distinfo Mon Sep 28 18:36:10 2015 (r398133)
@@ -0,0 +1,2 @@
+SHA256 (pymssql-2.1.1.tar.gz) = f1a1601dc3322c785733c84639d8d640c7204f9db4eab5f2a5cc908fb157140f
+SIZE (pymssql-2.1.1.tar.gz) = 2436094
Added: head/databases/py-pymssql/files/patch-__mssql.pxd
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/databases/py-pymssql/files/patch-__mssql.pxd Mon Sep 28 18:36:10 2015 (r398133)
@@ -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=?)
Added: head/databases/py-pymssql/pkg-descr
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/databases/py-pymssql/pkg-descr Mon Sep 28 18:36:10 2015 (r398133)
@@ -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
More information about the svn-ports-head
mailing list