diff options
author | jmc <jmc@pkgsrc.org> | 2003-05-11 08:46:23 +0000 |
---|---|---|
committer | jmc <jmc@pkgsrc.org> | 2003-05-11 08:46:23 +0000 |
commit | befa6aa0c8fa8497ed5a3c4e21e1f8bf77a66444 (patch) | |
tree | 74e3debb558b38a95b5135e73d2f351cd937c316 /databases/py-mysqldb | |
parent | cce2ad67a900c4b03e262f7559595b9ff3b51d64 (diff) | |
download | pkgsrc-befa6aa0c8fa8497ed5a3c4e21e1f8bf77a66444.tar.gz |
Need to comment out the platforms line in setup.py if building under 2.0
Diffstat (limited to 'databases/py-mysqldb')
-rw-r--r-- | databases/py-mysqldb/Makefile | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/databases/py-mysqldb/Makefile b/databases/py-mysqldb/Makefile index bf2169df406..83d4fe402e8 100644 --- a/databases/py-mysqldb/Makefile +++ b/databases/py-mysqldb/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.10 2003/04/13 14:28:53 cjep Exp $ +# $NetBSD: Makefile,v 1.11 2003/05/11 08:46:23 jmc Exp $ DISTNAME= MySQL-python-0.9.2 PKGNAME= ${PYPKGPREFIX}-mysqldb-0.9.2 @@ -13,12 +13,18 @@ USE_BUILDLINK2= yes PYDISTUTILSPKG= yes PY_PATCHPLIST= yes +.include "../../databases/mysql-client/buildlink2.mk" +.include "../../lang/python/extension.mk" + +# To pickup python version info post-patch: ${SED} -e "s|@MYSQLPREFIX@|${BUILDLINK_PREFIX.mysql-client}|" \ -e "s|@MYSQLRTPREFIX@|${BUILDLINK_PREFIX.mysql-client}|" \ <${WRKSRC}/setup.py >${WRKSRC}/setup.py.tmp +.if ${PYPKGPREFIX:Mpy20} == "py20" + ${SED} -e "s|platforms = .ALL.|#platforms = \"ALL\"|" <${WRKSRC}/setup.py.tmp > ${WRKSRC}/setup.py.tmp2 + ${MV} ${WRKSRC}/setup.py.tmp2 ${WRKSRC}/setup.py.tmp +.endif ${MV} ${WRKSRC}/setup.py.tmp ${WRKSRC}/setup.py -.include "../../databases/mysql-client/buildlink2.mk" -.include "../../lang/python/extension.mk" .include "../../mk/bsd.pkg.mk" |