aboutsummaryrefslogtreecommitdiffstats
path: root/math/rpy2/Makefile
blob: 34784f36263d44bc8933186d4d8276ca6cab7eda (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# Created by: ijliao
# $FreeBSD$

PORTNAME=   rpy2
PORTVERSION=    2.3.6
CATEGORIES= math
MASTER_SITES=   CHEESESHOP

MAINTAINER= wen@FreeBSD.org
COMMENT=    Python interface to the R Programming Language

BUILD_DEPENDS=  ${PYTHON_SITELIBDIR}/numpy:${PORTSDIR}/math/py-numpy \
        R:${PORTSDIR}/math/R
RUN_DEPENDS=    ${PYTHON_SITELIBDIR}/numpy:${PORTSDIR}/math/py-numpy \
        R:${PORTSDIR}/math/R

USE_PYTHON= yes
USE_PYDISTUTILS=    yes

post-patch:
    @${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>