From b5e24003736f0598bcbf4b8ecc3819897b105e95 Mon Sep 17 00:00:00 2001 From: Maxim Sobolev Date: Fri, 26 May 2000 07:05:20 +0000 Subject: Initial import of py-MySQLdb. py-MySQLdb is a Python module to access MySQL databases, very similar to the one in ports/databases/py-MySQL, but unlike the latter it is actively maintained and conform to the DB-API v2.0. Therefore it should be used instead of the oldest one by all who want retain maintainability of their Python DB applications in the future. PR: 18383 Submitted by: sobomax --- databases/py-MySQLdb-devel/Makefile | 42 ++++++++++++++++++++++++++++++++++ databases/py-MySQLdb-devel/distinfo | 1 + databases/py-MySQLdb-devel/pkg-comment | 1 + databases/py-MySQLdb-devel/pkg-descr | 15 ++++++++++++ databases/py-MySQLdb-devel/pkg-plist | 22 ++++++++++++++++++ databases/py-MySQLdb/Makefile | 42 ++++++++++++++++++++++++++++++++++ databases/py-MySQLdb/distinfo | 1 + databases/py-MySQLdb/pkg-comment | 1 + databases/py-MySQLdb/pkg-descr | 15 ++++++++++++ databases/py-MySQLdb/pkg-plist | 22 ++++++++++++++++++ 10 files changed, 162 insertions(+) create mode 100644 databases/py-MySQLdb-devel/Makefile create mode 100644 databases/py-MySQLdb-devel/distinfo create mode 100644 databases/py-MySQLdb-devel/pkg-comment create mode 100644 databases/py-MySQLdb-devel/pkg-descr create mode 100644 databases/py-MySQLdb-devel/pkg-plist create mode 100644 databases/py-MySQLdb/Makefile create mode 100644 databases/py-MySQLdb/distinfo create mode 100644 databases/py-MySQLdb/pkg-comment create mode 100644 databases/py-MySQLdb/pkg-descr create mode 100644 databases/py-MySQLdb/pkg-plist diff --git a/databases/py-MySQLdb-devel/Makefile b/databases/py-MySQLdb-devel/Makefile new file mode 100644 index 000000000000..95c8c05db1e5 --- /dev/null +++ b/databases/py-MySQLdb-devel/Makefile @@ -0,0 +1,42 @@ +# New ports collection makefile for: py-MySQLdb +# Date created: 04 April 2000 +# Whom: Maxim Sobolev +# +# $FreeBSD$ +# + +PORTNAME= py-MySQLdb +PORTVERSION= 0.2.1 +CATEGORIES= databases python +MASTER_SITES= http://dustman.net/andy/python/MySQLdb/${PORTVERSION}/ +DISTNAME= MySQLdb-${PORTVERSION} + +MAINTAINER= sobomax@FreeBSD.org + +BUILD_DEPENDS= python:${PORTSDIR}/lang/python +LIB_DEPENDS= mysqlclient.6:${PORTSDIR}/databases/mysql322-client +RUN_DEPENDS= python:${PORTSDIR}/lang/python + +ALL_TARGET= _mysqlmodule.o + +pre-configure: + @${LN} -s ${LOCALBASE}/lib/python1.5/config/Makefile.pre.in ${WRKSRC}/ + +do-configure: + @cd ${WRKSRC} && ${MAKE} -f Makefile.pre.in boot + +post-build: + @-${LOCALBASE}/bin/python \ + ${LOCALBASE}/lib/python1.5/compileall.py ${WRKSRC} 2>/dev/null + +post-install: + @${INSTALL_DATA} \ + ${WRKSRC}/MySQLdb.pyc ${PREFIX}/lib/python1.5/site-packages +.if !defined(NOPORTDOCS) + @${MKDIR} ${PREFIX}/share/doc/py-MySQLdb/examples + @${INSTALL_MAN} ${WRKSRC}/doc/* ${PREFIX}/share/doc/py-MySQLdb + @${INSTALL_MAN} \ + ${WRKSRC}/examples/* ${PREFIX}/share/doc/py-MySQLdb/examples +.endif + +.include diff --git a/databases/py-MySQLdb-devel/distinfo b/databases/py-MySQLdb-devel/distinfo new file mode 100644 index 000000000000..4944374a593b --- /dev/null +++ b/databases/py-MySQLdb-devel/distinfo @@ -0,0 +1 @@ +MD5 (MySQLdb-0.2.1.tar.gz) = 6679f18a8d0e0ba56090796b258f17cb diff --git a/databases/py-MySQLdb-devel/pkg-comment b/databases/py-MySQLdb-devel/pkg-comment new file mode 100644 index 000000000000..f3e147950f10 --- /dev/null +++ b/databases/py-MySQLdb-devel/pkg-comment @@ -0,0 +1 @@ +Access a MySQL database through Python diff --git a/databases/py-MySQLdb-devel/pkg-descr b/databases/py-MySQLdb-devel/pkg-descr new file mode 100644 index 000000000000..5c4095d67f35 --- /dev/null +++ b/databases/py-MySQLdb-devel/pkg-descr @@ -0,0 +1,15 @@ +You can easily access a MySQL database through the Python MySQL module. + +This module should be mostly compatible with an older interface written by +Joe Skinner and others. However, the older version is + + a) not thread-friendly (database operations could cause all other threads to + block), + b) written for MySQL 3.21 (does not compile against newer versions without + patches), + c) apparently not actively maintained. + +MySQLdb is a completely new module, distributed free of charge under a license +derived from the Python license. + +WWW: http://dustman.net/andy/python/ diff --git a/databases/py-MySQLdb-devel/pkg-plist b/databases/py-MySQLdb-devel/pkg-plist new file mode 100644 index 000000000000..59b457a4f20c --- /dev/null +++ b/databases/py-MySQLdb-devel/pkg-plist @@ -0,0 +1,22 @@ +lib/python1.5/site-packages/MySQLdb.pyc +lib/python1.5/site-packages/_mysqlmodule.so +share/doc/py-MySQLdb/MySQLdb-1.html +share/doc/py-MySQLdb/MySQLdb-2.html +share/doc/py-MySQLdb/MySQLdb-3.html +share/doc/py-MySQLdb/MySQLdb-4.html +share/doc/py-MySQLdb/MySQLdb-FAQ-1.html +share/doc/py-MySQLdb/MySQLdb-FAQ-2.html +share/doc/py-MySQLdb/MySQLdb-FAQ-3.html +share/doc/py-MySQLdb/MySQLdb-FAQ.html +share/doc/py-MySQLdb/MySQLdb-FAQ.sgml +share/doc/py-MySQLdb/MySQLdb.html +share/doc/py-MySQLdb/MySQLdb.sgml +share/doc/py-MySQLdb/examples/README +share/doc/py-MySQLdb/examples/dbtrainer0 +share/doc/py-MySQLdb/examples/dbtrainer1 +share/doc/py-MySQLdb/examples/dbtrainer2 +share/doc/py-MySQLdb/examples/dbtrainer3 +share/doc/py-MySQLdb/examples/dbtrainer4 +share/doc/py-MySQLdb/examples/test.sql +@dirrm share/doc/py-MySQLdb/examples +@dirrm share/doc/py-MySQLdb diff --git a/databases/py-MySQLdb/Makefile b/databases/py-MySQLdb/Makefile new file mode 100644 index 000000000000..95c8c05db1e5 --- /dev/null +++ b/databases/py-MySQLdb/Makefile @@ -0,0 +1,42 @@ +# New ports collection makefile for: py-MySQLdb +# Date created: 04 April 2000 +# Whom: Maxim Sobolev +# +# $FreeBSD$ +# + +PORTNAME= py-MySQLdb +PORTVERSION= 0.2.1 +CATEGORIES= databases python +MASTER_SITES= http://dustman.net/andy/python/MySQLdb/${PORTVERSION}/ +DISTNAME= MySQLdb-${PORTVERSION} + +MAINTAINER= sobomax@FreeBSD.org + +BUILD_DEPENDS= python:${PORTSDIR}/lang/python +LIB_DEPENDS= mysqlclient.6:${PORTSDIR}/databases/mysql322-client +RUN_DEPENDS= python:${PORTSDIR}/lang/python + +ALL_TARGET= _mysqlmodule.o + +pre-configure: + @${LN} -s ${LOCALBASE}/lib/python1.5/config/Makefile.pre.in ${WRKSRC}/ + +do-configure: + @cd ${WRKSRC} && ${MAKE} -f Makefile.pre.in boot + +post-build: + @-${LOCALBASE}/bin/python \ + ${LOCALBASE}/lib/python1.5/compileall.py ${WRKSRC} 2>/dev/null + +post-install: + @${INSTALL_DATA} \ + ${WRKSRC}/MySQLdb.pyc ${PREFIX}/lib/python1.5/site-packages +.if !defined(NOPORTDOCS) + @${MKDIR} ${PREFIX}/share/doc/py-MySQLdb/examples + @${INSTALL_MAN} ${WRKSRC}/doc/* ${PREFIX}/share/doc/py-MySQLdb + @${INSTALL_MAN} \ + ${WRKSRC}/examples/* ${PREFIX}/share/doc/py-MySQLdb/examples +.endif + +.include diff --git a/databases/py-MySQLdb/distinfo b/databases/py-MySQLdb/distinfo new file mode 100644 index 000000000000..4944374a593b --- /dev/null +++ b/databases/py-MySQLdb/distinfo @@ -0,0 +1 @@ +MD5 (MySQLdb-0.2.1.tar.gz) = 6679f18a8d0e0ba56090796b258f17cb diff --git a/databases/py-MySQLdb/pkg-comment b/databases/py-MySQLdb/pkg-comment new file mode 100644 index 000000000000..f3e147950f10 --- /dev/null +++ b/databases/py-MySQLdb/pkg-comment @@ -0,0 +1 @@ +Access a MySQL database through Python diff --git a/databases/py-MySQLdb/pkg-descr b/databases/py-MySQLdb/pkg-descr new file mode 100644 index 000000000000..5c4095d67f35 --- /dev/null +++ b/databases/py-MySQLdb/pkg-descr @@ -0,0 +1,15 @@ +You can easily access a MySQL database through the Python MySQL module. + +This module should be mostly compatible with an older interface written by +Joe Skinner and others. However, the older version is + + a) not thread-friendly (database operations could cause all other threads to + block), + b) written for MySQL 3.21 (does not compile against newer versions without + patches), + c) apparently not actively maintained. + +MySQLdb is a completely new module, distributed free of charge under a license +derived from the Python license. + +WWW: http://dustman.net/andy/python/ diff --git a/databases/py-MySQLdb/pkg-plist b/databases/py-MySQLdb/pkg-plist new file mode 100644 index 000000000000..59b457a4f20c --- /dev/null +++ b/databases/py-MySQLdb/pkg-plist @@ -0,0 +1,22 @@ +lib/python1.5/site-packages/MySQLdb.pyc +lib/python1.5/site-packages/_mysqlmodule.so +share/doc/py-MySQLdb/MySQLdb-1.html +share/doc/py-MySQLdb/MySQLdb-2.html +share/doc/py-MySQLdb/MySQLdb-3.html +share/doc/py-MySQLdb/MySQLdb-4.html +share/doc/py-MySQLdb/MySQLdb-FAQ-1.html +share/doc/py-MySQLdb/MySQLdb-FAQ-2.html +share/doc/py-MySQLdb/MySQLdb-FAQ-3.html +share/doc/py-MySQLdb/MySQLdb-FAQ.html +share/doc/py-MySQLdb/MySQLdb-FAQ.sgml +share/doc/py-MySQLdb/MySQLdb.html +share/doc/py-MySQLdb/MySQLdb.sgml +share/doc/py-MySQLdb/examples/README +share/doc/py-MySQLdb/examples/dbtrainer0 +share/doc/py-MySQLdb/examples/dbtrainer1 +share/doc/py-MySQLdb/examples/dbtrainer2 +share/doc/py-MySQLdb/examples/dbtrainer3 +share/doc/py-MySQLdb/examples/dbtrainer4 +share/doc/py-MySQLdb/examples/test.sql +@dirrm share/doc/py-MySQLdb/examples +@dirrm share/doc/py-MySQLdb -- cgit v1.2.3