diff options
author | drochner <drochner@pkgsrc.org> | 2002-01-19 17:06:23 +0000 |
---|---|---|
committer | drochner <drochner@pkgsrc.org> | 2002-01-19 17:06:23 +0000 |
commit | c6413ba88c8934329c6c1e5d806dd0757d8a0052 (patch) | |
tree | ac139e9d0d12df5bc89e9d6b112b5a8a35799af9 /databases/py-mysqldb/Makefile | |
parent | 4089e0891ef8a9e4ae384dadfa572d05ca0ac9be (diff) | |
download | pkgsrc-c6413ba88c8934329c6c1e5d806dd0757d8a0052.tar.gz |
use python buildlink file
Diffstat (limited to 'databases/py-mysqldb/Makefile')
-rw-r--r-- | databases/py-mysqldb/Makefile | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/databases/py-mysqldb/Makefile b/databases/py-mysqldb/Makefile index 14fd1e8303c..89c1f23d74d 100644 --- a/databases/py-mysqldb/Makefile +++ b/databases/py-mysqldb/Makefile @@ -1,7 +1,7 @@ -# $NetBSD: Makefile,v 1.5 2001/03/26 14:54:19 bad Exp $ +# $NetBSD: Makefile,v 1.6 2002/01/19 17:06:23 drochner Exp $ DISTNAME= MySQLdb-0.1.3 -PKGNAME= py-mysqldb-0.1.3 +PKGNAME= ${PYPKGPREFIX}-mysqldb-0.1.3 CATEGORIES= databases MASTER_SITES= ftp://starship.python.net/pub/crew/adustman/ @@ -9,23 +9,30 @@ MAINTAINER= tsarna@netbsd.org HOMEPAGE= http://starship.python.net/crew/adustman/MySQLdb.html COMMENT= MySQL interface for Python -DEPENDS+= python>=2.0:../../lang/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 + +PY_PATCHPLIST= yes + do-configure: ${SED} -e 's,@PREFIX@,${PREFIX},g' ${FILESDIR}/Setup.in \ >${WRKSRC}/Setup.in - ${CP} ${PREFIX}/lib/python2.0/config/Makefile.pre.in ${WRKSRC} + ${CP} ${PREFIX}/${PYLIB}/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") + (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}/lib/python2.0/site-packages + ${PREFIX}/${PYSITELIB} +.include "../../lang/python/extension.buildlink.mk" .include "../../mk/bsd.pkg.mk" |