summaryrefslogtreecommitdiff
path: root/graphics/py-matplotlib
diff options
context:
space:
mode:
authorjoerg <joerg>2006-04-30 22:30:43 +0000
committerjoerg <joerg>2006-04-30 22:30:43 +0000
commitba2cc62e0a58c59d17b12a70711908476c877227 (patch)
tree40aee11ce896c23ccd38a22492687d25773b0ea9 /graphics/py-matplotlib
parent422c5bbb9363304afa6a79f2951fd875cbfbedcf (diff)
downloadpkgsrc-ba2cc62e0a58c59d17b12a70711908476c877227.tar.gz
subprocess is only installed on Python <= 2.3. Conditionalize PLIST
accordingly. Bump revision.
Diffstat (limited to 'graphics/py-matplotlib')
-rw-r--r--graphics/py-matplotlib/Makefile13
-rw-r--r--graphics/py-matplotlib/PLIST12
2 files changed, 17 insertions, 8 deletions
diff --git a/graphics/py-matplotlib/Makefile b/graphics/py-matplotlib/Makefile
index c52ab9ebcfc..a04fa862262 100644
--- a/graphics/py-matplotlib/Makefile
+++ b/graphics/py-matplotlib/Makefile
@@ -1,9 +1,9 @@
-# $NetBSD: Makefile,v 1.13 2006/04/17 13:46:35 wiz Exp $
+# $NetBSD: Makefile,v 1.14 2006/04/30 22:30:43 joerg Exp $
#
DISTNAME= matplotlib-0.87.2
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
-PKGREVISION= 2
+PKGREVISION= 3
CATEGORIES= graphics python
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=matplotlib/}
@@ -16,6 +16,15 @@ PY_PATCHPLIST= yes
PYDISTUTILSPKG= yes
.include "../../lang/python/extension.mk"
+
+.if ${PYPACKAGE} == "python15" || ${PYPACKAGE} == "python20" || \
+ ${PYPACKAGE} == "python21" || ${PYPACKAGE} == "python22" || \
+ ${PYPACKAGE} == "python23"
+PLIST_SUBST+= COND_SUBPROCESS=""
+.else
+PLIST_SUBST+= COND_SUBPROCESS="@comment "
+.endif
+
.include "../../devel/zlib/buildlink3.mk"
.include "../../graphics/freetype2/buildlink3.mk"
.include "../../graphics/png/buildlink3.mk"
diff --git a/graphics/py-matplotlib/PLIST b/graphics/py-matplotlib/PLIST
index 9ba3e57a4c2..a96d572c406 100644
--- a/graphics/py-matplotlib/PLIST
+++ b/graphics/py-matplotlib/PLIST
@@ -1,5 +1,5 @@
-@comment $NetBSD: PLIST,v 1.6 2006/04/12 22:57:59 joerg Exp $
-@comment $NetBSD: PLIST,v 1.6 2006/04/12 22:57:59 joerg Exp $
+@comment $NetBSD: PLIST,v 1.7 2006/04/30 22:30:43 joerg Exp $
+@comment $NetBSD: PLIST,v 1.7 2006/04/30 22:30:43 joerg Exp $
${PYSITELIB}/matplotlib/__init__.py
${PYSITELIB}/matplotlib/__init__.pyc
${PYSITELIB}/matplotlib/__init__.pyo
@@ -474,9 +474,9 @@ ${PYSITELIB}/matplotlib/widgets.pyo
${PYSITELIB}/matplotlib/windowing.py
${PYSITELIB}/matplotlib/windowing.pyc
${PYSITELIB}/matplotlib/windowing.pyo
-${PYSITELIB}/subprocess/__init__.py
-${PYSITELIB}/subprocess/__init__.pyc
-${PYSITELIB}/subprocess/__init__.pyo
+${COND_SUBPROCESS}${PYSITELIB}/subprocess/__init__.py
+${COND_SUBPROCESS}${PYSITELIB}/subprocess/__init__.pyc
+${COND_SUBPROCESS}${PYSITELIB}/subprocess/__init__.pyo
${PYSITELIB}/pylab.py
${PYSITELIB}/pylab.pyc
${PYSITELIB}/pylab.pyo
@@ -497,4 +497,4 @@ ${PYSITELIB}/pylab.pyo
@dirrm ${PYSITELIB}/matplotlib/enthought
@dirrm ${PYSITELIB}/matplotlib/backends
@dirrm ${PYSITELIB}/matplotlib
-@dirrm ${PYSITELIB}/subprocess
+${COND_SUBPROCESS}@dirrm ${PYSITELIB}/subprocess