summaryrefslogtreecommitdiff
path: root/net/py-mimelib/Makefile
diff options
context:
space:
mode:
authordrochner <drochner>2003-10-21 12:43:33 +0000
committerdrochner <drochner>2003-10-21 12:43:33 +0000
commit06b02ff9723480b4cdef03acef218c66be218a9d (patch)
tree64a32f8a74ba40b9f38ed3d39aac983cd759820c /net/py-mimelib/Makefile
parentc47e5e652a23198b11ba86278f7004ac97457c6b (diff)
downloadpkgsrc-06b02ff9723480b4cdef03acef218c66be218a9d.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/py-mimelib/Makefile')
-rw-r--r--net/py-mimelib/Makefile10
1 files changed, 9 insertions, 1 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}