diff options
author | drochner <drochner@pkgsrc.org> | 2002-01-29 14:39:38 +0000 |
---|---|---|
committer | drochner <drochner@pkgsrc.org> | 2002-01-29 14:39:38 +0000 |
commit | 81de140c4c8af66ee32d04fdb6908ac363e319ed (patch) | |
tree | 147a624a2ae8702ec6738d43f59b8d61e0e1988d /databases/py-mysqldb/Makefile | |
parent | 4c14ed7651fdd44ed8a31f77a75ac8e1b9de054f (diff) | |
download | pkgsrc-81de140c4c8af66ee32d04fdb6908ac363e319ed.tar.gz |
update to 0.9.1, in response to PR pkg/15054 by jgoerzen@complete.org
Diffstat (limited to 'databases/py-mysqldb/Makefile')
-rw-r--r-- | databases/py-mysqldb/Makefile | 39 |
1 files changed, 12 insertions, 27 deletions
diff --git a/databases/py-mysqldb/Makefile b/databases/py-mysqldb/Makefile index 89c1f23d74d..eb179498026 100644 --- a/databases/py-mysqldb/Makefile +++ b/databases/py-mysqldb/Makefile @@ -1,38 +1,23 @@ -# $NetBSD: Makefile,v 1.6 2002/01/19 17:06:23 drochner Exp $ +# $NetBSD: Makefile,v 1.7 2002/01/29 14:39:38 drochner Exp $ -DISTNAME= MySQLdb-0.1.3 -PKGNAME= ${PYPKGPREFIX}-mysqldb-0.1.3 +DISTNAME= MySQL-python-0.9.1 +PKGNAME= ${PYPKGPREFIX}-mysqldb-0.9.1 CATEGORIES= databases -MASTER_SITES= ftp://starship.python.net/pub/crew/adustman/ +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=mysql-python/} MAINTAINER= tsarna@netbsd.org -HOMEPAGE= http://starship.python.net/crew/adustman/MySQLdb.html +HOMEPAGE= http://sourceforge.net/projects/mysql-python COMMENT= MySQL interface for Python -DEPENDS+= mysql-client>=3.23.35:../../databases/mysql-client - -ALL_TARGET= default - -# this pkg uses Makefile.pre.in -PYTHON_VERSIONS_ACCEPTED= 20 21 -BUILDLINK_DEPENDS.python20= python20>=2.0.1nb1 -BUILDLINK_DEPENDS.python21= python21>=2.1.1nb1 - +PYDISTUTILSPKG= yes PY_PATCHPLIST= yes -do-configure: - ${SED} -e 's,@PREFIX@,${PREFIX},g' ${FILESDIR}/Setup.in \ - >${WRKSRC}/Setup.in - ${CP} ${PREFIX}/${PYLIB}/config/Makefile.pre.in ${WRKSRC} - (cd ${WRKSRC}; ${MAKE} -f Makefile.pre.in boot) - -post-build: - (cd ${WRKSRC}; ${PYTHONBIN} -c "import MySQLdb") - (cd ${WRKSRC}; ${PYTHONBIN} -O -c "import MySQLdb") - -post-install: - ${INSTALL_SCRIPT} ${WRKSRC}/MySQLdb.py ${WRKSRC}/MySQLdb.py[co] \ - ${PREFIX}/${PYSITELIB} +post-patch: + ${SED} -e "s|@MYSQLPREFIX@|${BUILDLINK_DIR}|" \ + -e "s|@MYSQLRTPREFIX@|${BUILDLINK_PREFIX.mysql-client}|" \ + <${WRKSRC}/setup.py >${WRKSRC}/setup.py.tmp + ${MV} ${WRKSRC}/setup.py.tmp ${WRKSRC}/setup.py +.include "../../databases/mysql-client/buildlink.mk" .include "../../lang/python/extension.buildlink.mk" .include "../../mk/bsd.pkg.mk" |