diff options
author | drochner <drochner@pkgsrc.org> | 2003-10-21 12:43:33 +0000 |
---|---|---|
committer | drochner <drochner@pkgsrc.org> | 2003-10-21 12:43:33 +0000 |
commit | 1fc823c325e635ba545ed82337716dabc16b82d1 (patch) | |
tree | 64a32f8a74ba40b9f38ed3d39aac983cd759820c /net | |
parent | fbffb569b08c90a8d0d365c4335bf147001538dd (diff) | |
download | pkgsrc-1fc823c325e635ba545ed82337716dabc16b82d1.tar.gz |
one Python file is not byte-compiled if Python-2.1(-pth) is used,
so comment out the result conditionally
Diffstat (limited to 'net')
-rw-r--r-- | net/py-mimelib/Makefile | 10 | ||||
-rw-r--r-- | net/py-mimelib/PLIST | 6 |
2 files changed, 12 insertions, 4 deletions
diff --git a/net/py-mimelib/Makefile b/net/py-mimelib/Makefile index 1d938a25112..7b933db1eb9 100644 --- a/net/py-mimelib/Makefile +++ b/net/py-mimelib/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.1.1.1 2003/08/11 14:56:54 drochner Exp $ +# $NetBSD: Makefile,v 1.2 2003/10/21 12:43:33 drochner Exp $ # DISTNAME= email-2.5 @@ -18,3 +18,11 @@ PYTHON_VERSIONS_ACCEPTED= 21pth 21 22 22pth 23 23pth .include "../../lang/python/extension.mk" .include "../../mk/bsd.pkg.mk" + +# _compat22.py is not byte-compiled if built with 2.1(-pth) +.if !empty(PYPKGPREFIX:Mpy21*) +NOT21= "@comment " +.else +NOT21= #empty +.endif +PLIST_SUBST+= NOT21=${NOT21} diff --git a/net/py-mimelib/PLIST b/net/py-mimelib/PLIST index 4deee93d516..1e0f29c9ab0 100644 --- a/net/py-mimelib/PLIST +++ b/net/py-mimelib/PLIST @@ -1,4 +1,4 @@ -@comment $NetBSD: PLIST,v 1.2 2003/09/14 16:43:53 recht Exp $ +@comment $NetBSD: PLIST,v 1.3 2003/10/21 12:43:33 drochner Exp $ ${PYSITELIB}/email/Charset.py ${PYSITELIB}/email/Charset.pyc ${PYSITELIB}/email/Charset.pyo @@ -54,8 +54,8 @@ ${PYSITELIB}/email/_compat21.py ${PYSITELIB}/email/_compat21.pyc ${PYSITELIB}/email/_compat21.pyo ${PYSITELIB}/email/_compat22.py -${PYSITELIB}/email/_compat22.pyc -${PYSITELIB}/email/_compat22.pyo +${NOT21}${PYSITELIB}/email/_compat22.pyc +${NOT21}${PYSITELIB}/email/_compat22.pyo ${PYSITELIB}/email/_parseaddr.py ${PYSITELIB}/email/_parseaddr.pyc ${PYSITELIB}/email/_parseaddr.pyo |