summaryrefslogtreecommitdiff
path: root/math
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2015-04-10 08:36:30 +0000
committerwiz <wiz@pkgsrc.org>2015-04-10 08:36:30 +0000
commit378d0efed303838329bddf35fa6cd9b1bd1f28a9 (patch)
tree935b0433a7256c460cdfa58b80ad5609aa6147bf /math
parent98b99c4748d70ddd8c0942fef1764f0c86207f6c (diff)
downloadpkgsrc-378d0efed303838329bddf35fa6cd9b1bd1f28a9.tar.gz
Fix packaging with py33. Disable for py26.
Diffstat (limited to 'math')
-rw-r--r--math/py-rpy/Makefile15
-rw-r--r--math/py-rpy/PLIST4
2 files changed, 16 insertions, 3 deletions
diff --git a/math/py-rpy/Makefile b/math/py-rpy/Makefile
index c940ffc95cd..c7d63f104a4 100644
--- a/math/py-rpy/Makefile
+++ b/math/py-rpy/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.34 2015/04/07 22:14:18 wiz Exp $
+# $NetBSD: Makefile,v 1.35 2015/04/10 08:36:30 wiz Exp $
DISTNAME= rpy2-2.5.6
PKGNAME= ${PYPKGPREFIX}-${DISTNAME:S/rpy2/rpy/}
@@ -16,6 +16,19 @@ BUILDLINK_API_DEPENDS.R+= R>=2.11.0
LDFLAGS.SunOS+= -mimpure-text
+PYTHON_VERSIONS_INCOMPATIBLE= 26 # doesn't find R
+
+.include "../../lang/python/pyversion.mk"
+
+PLIST_VARS= sd
+.if ${PYPKGPREFIX} == "py26" || ${PYPKGPREFIX} == "py27" || ${PYPKGPREFIX} == "py33"
+PLIST.sd= yes
+DEPENDS+= ${PYPKGPREFIX}-singledispatch-[0-9]*:../../devel/py-singledispatch
+.endif
+.if ${PYPKGPREFIX} == "py26"
+DEPENDS+= ${PYPKGPREFIX}-argparse-[0-9]*:../../devel/py-argparse
+.endif
+
.include "../../devel/pcre/buildlink3.mk"
.include "../../mk/readline.buildlink3.mk"
.include "../../lang/python/egg.mk"
diff --git a/math/py-rpy/PLIST b/math/py-rpy/PLIST
index fa28a37b6d4..68a63962f1f 100644
--- a/math/py-rpy/PLIST
+++ b/math/py-rpy/PLIST
@@ -1,8 +1,8 @@
-@comment $NetBSD: PLIST,v 1.15 2015/04/10 06:17:19 wiz Exp $
+@comment $NetBSD: PLIST,v 1.16 2015/04/10 08:36:30 wiz Exp $
${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
-${PLIST.py2x}${PYSITELIB}/${EGG_INFODIR}/requires.txt
+${PLIST.sd}${PYSITELIB}/${EGG_INFODIR}/requires.txt
${PYSITELIB}/${EGG_INFODIR}/top_level.txt
${PYSITELIB}/rpy2/__init__.py
${PYSITELIB}/rpy2/__init__.pyc