diff options
author | tsarna <tsarna@pkgsrc.org> | 2000-02-26 18:45:48 +0000 |
---|---|---|
committer | tsarna <tsarna@pkgsrc.org> | 2000-02-26 18:45:48 +0000 |
commit | dfb5bc9c2ae365f20b27f9c3b1945055b32bb012 (patch) | |
tree | ab7aa281dc662ef5644d99d16447a34dd2746061 /databases | |
parent | f0d2e413bd6a9c504a6951eed58c91a27ddcd25a (diff) | |
download | pkgsrc-dfb5bc9c2ae365f20b27f9c3b1945055b32bb012.tar.gz |
MySQLdb, a new, improved MySQL interface for Python. Features:
- Compatibility with MySQL 3.22
- Compliance with Python database API version 2.0
- Thread-safety
- Thread-friendliness (threads will not block each other)
Diffstat (limited to 'databases')
-rw-r--r-- | databases/py-mysqldb/Makefile | 30 | ||||
-rw-r--r-- | databases/py-mysqldb/files/Setup.in | 5 | ||||
-rw-r--r-- | databases/py-mysqldb/files/md5 | 3 | ||||
-rw-r--r-- | databases/py-mysqldb/pkg/COMMENT | 1 | ||||
-rw-r--r-- | databases/py-mysqldb/pkg/DESCR | 2 | ||||
-rw-r--r-- | databases/py-mysqldb/pkg/PLIST | 5 |
6 files changed, 46 insertions, 0 deletions
diff --git a/databases/py-mysqldb/Makefile b/databases/py-mysqldb/Makefile new file mode 100644 index 00000000000..e9fbc522734 --- /dev/null +++ b/databases/py-mysqldb/Makefile @@ -0,0 +1,30 @@ +# $NetBSD: Makefile,v 1.1.1.1 2000/02/26 18:45:48 tsarna Exp $ + +DISTNAME= MySQLdb-0.1.2 +PKGNAME= py-mysqldb-0.1.2 +CATEGORIES= databases +MASTER_SITES= http://starship.python.net/crew/adustman/ + +MAINTAINER= tsarna@netbsd.org +HOMEPAGE= http://starship.python.net/crew/adustman/MySQLdb.html + +DEPENDS+= python-1.5.2:../../lang/python +DEPENDS+= mysql-client-3.22.32:../../databases/mysql-client + +ALL_TARGET= default + +do-configure: + ${SED} -e 's,@PREFIX@,${PREFIX},g' ${FILESDIR}/Setup.in \ + >${WRKSRC}/Setup.in + ${CP} ${PREFIX}/lib/python1.5/config/Makefile.pre.in ${WRKSRC} + (cd ${WRKSRC}; ${MAKE} -f Makefile.pre.in boot) + +post-build: + (cd ${WRKSRC}; ${PREFIX}/bin/python -c "import MySQLdb") + (cd ${WRKSRC}; ${PREFIX}/bin/python -O -c "import MySQLdb") + +post-install: + ${INSTALL_SCRIPT} ${WRKSRC}/MySQLdb.py ${WRKSRC}/MySQLdb.py[co] \ + ${PREFIX}/lib/python1.5/site-packages + +.include "../../mk/bsd.pkg.mk" diff --git a/databases/py-mysqldb/files/Setup.in b/databases/py-mysqldb/files/Setup.in new file mode 100644 index 00000000000..6000c0ce6b0 --- /dev/null +++ b/databases/py-mysqldb/files/Setup.in @@ -0,0 +1,5 @@ +# $NetBSD: Setup.in,v 1.1.1.1 2000/02/26 18:45:48 tsarna Exp $ +*shared* +_mysql _mysqlmodule.c -L@PREFIX@/lib/mysql -R@PREFIX@/lib/mysql \ + -I@PREFIX@/include/mysql -lmysqlclient + diff --git a/databases/py-mysqldb/files/md5 b/databases/py-mysqldb/files/md5 new file mode 100644 index 00000000000..e1baa662ebe --- /dev/null +++ b/databases/py-mysqldb/files/md5 @@ -0,0 +1,3 @@ +$NetBSD: md5,v 1.1.1.1 2000/02/26 18:45:48 tsarna Exp $ + +MD5 (MySQLdb-0.1.2.tar.gz) = 06e699df74f03cf3b7230d5b8348f105 diff --git a/databases/py-mysqldb/pkg/COMMENT b/databases/py-mysqldb/pkg/COMMENT new file mode 100644 index 00000000000..4f701048e9b --- /dev/null +++ b/databases/py-mysqldb/pkg/COMMENT @@ -0,0 +1 @@ +MySQL interface for Python diff --git a/databases/py-mysqldb/pkg/DESCR b/databases/py-mysqldb/pkg/DESCR new file mode 100644 index 00000000000..7e0dd10d3f3 --- /dev/null +++ b/databases/py-mysqldb/pkg/DESCR @@ -0,0 +1,2 @@ +MySQLdb is a Python interace to the MySQL client library, +allowing Python programs to access MySQL databases. diff --git a/databases/py-mysqldb/pkg/PLIST b/databases/py-mysqldb/pkg/PLIST new file mode 100644 index 00000000000..86a3da55618 --- /dev/null +++ b/databases/py-mysqldb/pkg/PLIST @@ -0,0 +1,5 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2000/02/26 18:45:48 tsarna Exp $ +lib/python1.5/site-packages/_mysqlmodule.so +lib/python1.5/site-packages/MySQLdb.py +lib/python1.5/site-packages/MySQLdb.pyc +lib/python1.5/site-packages/MySQLdb.pyo |