aboutsummaryrefslogtreecommitdiffstats
path: root/databases
diff options
context:
space:
mode:
authorperky <perky@FreeBSD.org>2004-03-05 20:36:16 +0800
committerperky <perky@FreeBSD.org>2004-03-05 20:36:16 +0800
commit6021e9aed9474d458dc1cef41b115374a9c8e494 (patch)
treeeff889e704f1442e5b18fb34066159d8cbd16af1 /databases
parentd63348bdf05de84846f0ab8e7177771e8f7053a1 (diff)
downloadfreebsd-ports-gnome-6021e9aed9474d458dc1cef41b115374a9c8e494.tar.gz
freebsd-ports-gnome-6021e9aed9474d458dc1cef41b115374a9c8e494.tar.zst
freebsd-ports-gnome-6021e9aed9474d458dc1cef41b115374a9c8e494.zip
Add new port for py-mssql 0.5.1,
A simple database interface to MS-SQL for Python.
Diffstat (limited to 'databases')
-rw-r--r--databases/Makefile1
-rw-r--r--databases/py-mssql/Makefile30
-rw-r--r--databases/py-mssql/distinfo2
-rw-r--r--databases/py-mssql/pkg-descr4
-rw-r--r--databases/py-mssql/pkg-plist4
5 files changed, 41 insertions, 0 deletions
diff --git a/databases/Makefile b/databases/Makefile
index caaa43a2c7e9..96b817653d83 100644
--- a/databases/Makefile
+++ b/databases/Makefile
@@ -215,6 +215,7 @@
SUBDIR += py-bsddb3
SUBDIR += py-cdb
SUBDIR += py-gdbm
+ SUBDIR += py-mssql
SUBDIR += py-oops
SUBDIR += py-psycopg
SUBDIR += py-pyPgSQL
diff --git a/databases/py-mssql/Makefile b/databases/py-mssql/Makefile
new file mode 100644
index 000000000000..c03489b8e599
--- /dev/null
+++ b/databases/py-mssql/Makefile
@@ -0,0 +1,30 @@
+# New ports collection makefile for: py-mssql
+# Date created: 5 March 2004
+# Whom: Hye-Shik Chang <perky@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= mssql
+PORTVERSION= 0.5.1
+CATEGORIES= databases python
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
+MASTER_SITE_SUBDIR= pymssql
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+DISTNAME= pymssql-${PORTVERSION}
+
+MAINTAINER= perky@FreeBSD.org
+COMMENT= Python database interface for simple MS-SQL access
+
+LIB_DEPENDS= sybdb.4:${PORTSDIR}/databases/freetds-msdblib
+
+USE_PYTHON= yes
+USE_PYDISTUTILS=yes
+USE_REINPLACE= yes
+
+post-patch:
+ ${REINPLACE_CMD} -e 's,#include.*malloc\.h.*,,g' \
+ -e 's,/usr/local,${LOCALBASE},g' \
+ ${WRKSRC}/mssqldbmodule.c
+
+.include <bsd.port.mk>
diff --git a/databases/py-mssql/distinfo b/databases/py-mssql/distinfo
new file mode 100644
index 000000000000..7dedacf24fef
--- /dev/null
+++ b/databases/py-mssql/distinfo
@@ -0,0 +1,2 @@
+MD5 (pymssql-0.5.1.tar.gz) = d700a3b26a49f7168a9e2b01a7817efd
+SIZE (pymssql-0.5.1.tar.gz) = 8110
diff --git a/databases/py-mssql/pkg-descr b/databases/py-mssql/pkg-descr
new file mode 100644
index 000000000000..06e12884d159
--- /dev/null
+++ b/databases/py-mssql/pkg-descr
@@ -0,0 +1,4 @@
+PyMSSQL is a MS-SQL database adapter for the Python programming
+language. It was written from scratch using FreeTDS library.
+
+WWW: http://pymssql.sourceforge.net/
diff --git a/databases/py-mssql/pkg-plist b/databases/py-mssql/pkg-plist
new file mode 100644
index 000000000000..74f10ec2518e
--- /dev/null
+++ b/databases/py-mssql/pkg-plist
@@ -0,0 +1,4 @@
+%%PYTHON_SITELIBDIR%%/_mssql.so
+%%PYTHON_SITELIBDIR%%/pymssql.py
+%%PYTHON_SITELIBDIR%%/pymssql.pyc
+%%PYTHON_SITELIBDIR%%/pymssql.pyo