diff options
author | tron <tron@pkgsrc.org> | 1998-06-22 21:53:09 +0000 |
---|---|---|
committer | tron <tron@pkgsrc.org> | 1998-06-22 21:53:09 +0000 |
commit | 428c964d4eb60a728a822b52dd3674509dddc740 (patch) | |
tree | 58f6c21d149a1b0dd49cf14521c5d851b32349ef /databases/py-mysql | |
parent | fa9d3d91e29f82e8256823f0a33b7ca2bddd59ea (diff) | |
download | pkgsrc-428c964d4eb60a728a822b52dd3674509dddc740.tar.gz |
New "py-mysql" package supplied by Ty Sarna in PR pkg/5602:
MySQLmodule 1.1.0 for Python 1.5(.x)
Diffstat (limited to 'databases/py-mysql')
-rw-r--r-- | databases/py-mysql/Makefile | 33 | ||||
-rw-r--r-- | databases/py-mysql/files/Setup.in | 3 | ||||
-rw-r--r-- | databases/py-mysql/files/md5 | 3 | ||||
-rw-r--r-- | databases/py-mysql/pkg/COMMENT | 1 | ||||
-rw-r--r-- | databases/py-mysql/pkg/DESCR | 2 | ||||
-rw-r--r-- | databases/py-mysql/pkg/PLIST | 8 |
6 files changed, 50 insertions, 0 deletions
diff --git a/databases/py-mysql/Makefile b/databases/py-mysql/Makefile new file mode 100644 index 00000000000..b805c1d25c1 --- /dev/null +++ b/databases/py-mysql/Makefile @@ -0,0 +1,33 @@ +# $NetBSD: Makefile,v 1.1 1998/06/22 21:53:09 tron Exp $ + +DISTNAME= MySQLmodule-1.1 +PKGNAME= py-mysql-1.1 +CATEGORIES= databases +MASTER_SITES= http://snail.earthlight.co.nz/mysql/ +DISTFILES= MySQLmodule-1.1${EXTRACT_SUFX} \ + Mysqldb.py mysqlshelve.py + +MAINTAINER= tsarna@endicor.com + +DEPENDS+= python-1.5.1:../../lang/python \ + mysql-3.21.31:../mysql + +EXTRACT_ONLY= MySQLmodule-1.1${EXTRACT_SUFX} +ALL_TARGET= default + +do-configure: + ${SED} -e 's,@PREFIX@,${PREFIX},' ${FILESDIR}/Setup.in \ + >${WRKSRC}/Setup.in + ${CP} ${PREFIX}/lib/python1.5/config/Makefile.pre.in ${WRKSRC} + (cd ${WRKSRC}; make -f Makefile.pre.in boot) + ${CP} ${DISTDIR}/Mysqldb.py ${DISTDIR}/mysqlshelve.py ${WRKSRC} + +post-build: + (cd ${WRKSRC}; python ${PREFIX}/lib/python1.5/compileall.py .) + (cd ${WRKSRC}; python -O ${PREFIX}/lib/python1.5/compileall.py .) + +post-install: + ${INSTALL_SCRIPT} ${WRKSRC}/*.py ${WRKSRC}/*.py[co] \ + ${PREFIX}/lib/python1.5/site-packages + +.include "../../mk/bsd.pkg.mk" diff --git a/databases/py-mysql/files/Setup.in b/databases/py-mysql/files/Setup.in new file mode 100644 index 00000000000..21cf64c9ac2 --- /dev/null +++ b/databases/py-mysql/files/Setup.in @@ -0,0 +1,3 @@ +*shared* +MySQL MySQLmodule.c -L@PREFIX@/lib -lmysqlclient \ + -I@PREFIX@/include/mysql diff --git a/databases/py-mysql/files/md5 b/databases/py-mysql/files/md5 new file mode 100644 index 00000000000..8ef8fee65ba --- /dev/null +++ b/databases/py-mysql/files/md5 @@ -0,0 +1,3 @@ +MD5 (MySQLmodule-1.1.tar.gz) = fe2759c6770cdfd7386bee22011dbcd8 +MD5 (Mysqldb.py) = d95698475a55a27555f2261d9eac4373 +MD5 (mysqlshelve.py) = 4b96e4b84468994fbecef03737e1daee diff --git a/databases/py-mysql/pkg/COMMENT b/databases/py-mysql/pkg/COMMENT new file mode 100644 index 00000000000..5825e87673d --- /dev/null +++ b/databases/py-mysql/pkg/COMMENT @@ -0,0 +1 @@ +MySQLmodule 1.1.0 for Python 1.5(.x) diff --git a/databases/py-mysql/pkg/DESCR b/databases/py-mysql/pkg/DESCR new file mode 100644 index 00000000000..28bb3b87d47 --- /dev/null +++ b/databases/py-mysql/pkg/DESCR @@ -0,0 +1,2 @@ +MySQLmodule 1.1.0 is a Python interace to the MySQL client library, +allowing Python programs to access MySQL databases. diff --git a/databases/py-mysql/pkg/PLIST b/databases/py-mysql/pkg/PLIST new file mode 100644 index 00000000000..75928545c18 --- /dev/null +++ b/databases/py-mysql/pkg/PLIST @@ -0,0 +1,8 @@ +@comment $NetBSD: PLIST,v 1.1 1998/06/22 21:53:10 tron 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 +lib/python1.5/site-packages/mysqlshelve.py +lib/python1.5/site-packages/mysqlshelve.pyc +lib/python1.5/site-packages/mysqlshelve.pyo |