summaryrefslogtreecommitdiff
path: root/math/py-rpy/Makefile
diff options
context:
space:
mode:
authorwiz <wiz>2015-04-10 08:36:30 +0000
committerwiz <wiz>2015-04-10 08:36:30 +0000
commita0b553ad93e94131a503c08c2c09fc557f05766d (patch)
tree935b0433a7256c460cdfa58b80ad5609aa6147bf /math/py-rpy/Makefile
parent37cf80d106055ca69a46e86bc23362c1676ff586 (diff)
downloadpkgsrc-a0b553ad93e94131a503c08c2c09fc557f05766d.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"