Thu Apr 17 12:22:00 2008 UTC ()
Use a conditional that is safe for scanning even if all versions
supported are disabled.


(joerg)
diff -r1.15 -r1.16 pkgsrc/net/py-mimelib/Makefile

cvs diff -r1.15 -r1.16 pkgsrc/net/py-mimelib/Attic/Makefile (expand / switch to unified diff)

--- pkgsrc/net/py-mimelib/Attic/Makefile 2008/04/12 22:43:08 1.15
+++ pkgsrc/net/py-mimelib/Attic/Makefile 2008/04/17 12:22:00 1.16
@@ -1,29 +1,27 @@ @@ -1,29 +1,27 @@
1# $NetBSD: Makefile,v 1.15 2008/04/12 22:43:08 jlam Exp $ 1# $NetBSD: Makefile,v 1.16 2008/04/17 12:22:00 joerg Exp $
2# 2#
3 3
4DISTNAME= email-2.5 4DISTNAME= email-2.5
5PKGNAME= ${PYPKGPREFIX}-mimelib-2.5 5PKGNAME= ${PYPKGPREFIX}-mimelib-2.5
6PKGREVISION= 2 6PKGREVISION= 2
7CATEGORIES= net python 7CATEGORIES= net python
8MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=/mimelib/} 8MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=/mimelib/}
9 9
10MAINTAINER= pkgsrc-users@NetBSD.org 10MAINTAINER= pkgsrc-users@NetBSD.org
11HOMEPAGE= http://mimelib.sourceforge.net/ 11HOMEPAGE= http://mimelib.sourceforge.net/
12COMMENT= Email package for Python 12COMMENT= Email package for Python
13 13
14PYDISTUTILSPKG= yes 14PYDISTUTILSPKG= yes
15# This pkg (or an older version of it) comes with 2.2 and later; 15# This pkg (or an older version of it) comes with 2.2 and later;
16# 2.1 is the primary target (particulary for Zope). 16# 2.1 is the primary target (particulary for Zope).
17PYTHON_VERSIONS_ACCEPTED= 21 22 23 17PYTHON_VERSIONS_ACCEPTED= 21 22 23
18 18
19.include "../../lang/python/extension.mk" 19.include "../../lang/python/extension.mk"
20 20
21# _compat22.py is not byte-compiled if built with 2.1(-) 21# _compat22.py is not byte-compiled if built with 2.1(-)
22PLIST_VARS+= compat22 22PLIST_VARS+= compat22
23.if !empty(PYPKGPREFIX:Mpy21*) 23.if ${_PYTHON_VERSION} != "21"
24# nothing 
25.else 
26PLIST.compat22= yes 24PLIST.compat22= yes
27.endif 25.endif
28 26
29.include "../../mk/bsd.pkg.mk" 27.include "../../mk/bsd.pkg.mk"