summaryrefslogtreecommitdiff
path: root/math/py-rpy/Makefile
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/py-rpy/Makefile
parent98b99c4748d70ddd8c0942fef1764f0c86207f6c (diff)
downloadpkgsrc-378d0efed303838329bddf35fa6cd9b1bd1f28a9.tar.gz
Fix packaging with py33. Disable for py26.
Diffstat (limited to 'math/py-rpy/Makefile')
-rw-r--r--math/py-rpy/Makefile15
1 files changed, 14 insertions, 1 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"