aboutsummaryrefslogtreecommitdiff
path: root/math/rpy
diff options
context:
space:
mode:
authorBrendan Fabeny <bf@FreeBSD.org>2011-05-07 03:29:59 +0000
committerBrendan Fabeny <bf@FreeBSD.org>2011-05-07 03:29:59 +0000
commitf08fd58316b82fa2a71f4f60235324ec73fd239d (patch)
tree20e4e7386cab19fe15c0d95d4dd1c5bfa6d076e1 /math/rpy
parent0446896d04d241cd9b649a02b5858713327e62c6 (diff)
downloadports-f08fd58316b82fa2a71f4f60235324ec73fd239d.tar.gz
ports-f08fd58316b82fa2a71f4f60235324ec73fd239d.zip
Notes
Diffstat (limited to 'math/rpy')
-rw-r--r--math/rpy/Makefile10
-rw-r--r--math/rpy/pkg-plist2
2 files changed, 9 insertions, 3 deletions
diff --git a/math/rpy/Makefile b/math/rpy/Makefile
index de7e2d5b8f1f..4922e11f5a16 100644
--- a/math/rpy/Makefile
+++ b/math/rpy/Makefile
@@ -8,7 +8,7 @@
PORTNAME= rpy
PORTVERSION= 1.0.3
-PORTREVISION= 16
+PORTREVISION= 17
CATEGORIES= math
MASTER_SITES= SF
@@ -17,7 +17,8 @@ COMMENT= Python interface to the R Programming Language
BUILD_DEPENDS= ${PYTHON_SITELIBDIR}/numpy:${PORTSDIR}/math/py-numpy \
R:${PORTSDIR}/math/R
-RUN_DEPENDS= ${BUILD_DEPENDS}
+RUN_DEPENDS= ${PYTHON_SITELIBDIR}/numpy:${PORTSDIR}/math/py-numpy \
+ R:${PORTSDIR}/math/R
USE_PYTHON= yes
USE_PYDISTUTILS= yes
@@ -27,4 +28,9 @@ post-patch:
@${REINPLACE_CMD} -e 's,^statichere ,,' ${WRKSRC}/src/rpymodule.c
@${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' ${WRKSRC}/setup.py
+pre-configure:
+ @(if [ ! -e ${LOCALBASE}/lib/R/lib/libR.so ] ; then \
+ ${ECHO_MSG} "==> ${PKGNAME} requires math/R to be built WITH_LIBR" ; \
+ exit 1; fi)
+
.include <bsd.port.mk>
diff --git a/math/rpy/pkg-plist b/math/rpy/pkg-plist
index 0db2a8caaa68..ba1e10aa6eba 100644
--- a/math/rpy/pkg-plist
+++ b/math/rpy/pkg-plist
@@ -1,4 +1,4 @@
-%%PYTHON_SITELIBDIR%%/_rpy2122.so
+%%PYTHON_SITELIBDIR%%/_rpy2130.so
%%PYTHON_SITELIBDIR%%/rpy.py
%%PYTHON_SITELIBDIR%%/rpy.pyc
%%PYTHON_SITELIBDIR%%/rpy.pyo