From 428c964d4eb60a728a822b52dd3674509dddc740 Mon Sep 17 00:00:00 2001 From: tron Date: Mon, 22 Jun 1998 21:53:09 +0000 Subject: New "py-mysql" package supplied by Ty Sarna in PR pkg/5602: MySQLmodule 1.1.0 for Python 1.5(.x) --- databases/py-mysql/Makefile | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 databases/py-mysql/Makefile (limited to 'databases/py-mysql/Makefile') 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" -- cgit v1.2.3