pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/net/py-mimelib one Python file is not byte-compiled if...
details: https://anonhg.NetBSD.org/pkgsrc/rev/b7d544ddd845
branches: trunk
changeset: 462974:b7d544ddd845
user: drochner <drochner%pkgsrc.org@localhost>
date: Tue Oct 21 12:43:33 2003 +0000
description:
one Python file is not byte-compiled if Python-2.1(-pth) is used,
so comment out the result conditionally
diffstat:
net/py-mimelib/Makefile | 10 +++++++++-
net/py-mimelib/PLIST | 6 +++---
2 files changed, 12 insertions(+), 4 deletions(-)
diffs (41 lines):
diff -r e02d04c51268 -r b7d544ddd845 net/py-mimelib/Makefile
--- a/net/py-mimelib/Makefile Tue Oct 21 11:28:10 2003 +0000
+++ b/net/py-mimelib/Makefile Tue Oct 21 12:43:33 2003 +0000
@@ -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 @@
.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 -r e02d04c51268 -r b7d544ddd845 net/py-mimelib/PLIST
--- a/net/py-mimelib/PLIST Tue Oct 21 11:28:10 2003 +0000
+++ b/net/py-mimelib/PLIST Tue Oct 21 12:43:33 2003 +0000
@@ -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.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
Home |
Main Index |
Thread Index |
Old Index