2003-10-31 02:47:04 +01:00
|
|
|
# ex:ts=8
|
|
|
|
# Ports collection makefile for: rpy
|
|
|
|
# Date created: Jan 14, 2003
|
|
|
|
# Whom: ijliao
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= rpy
|
2008-06-19 02:03:01 +02:00
|
|
|
PORTVERSION= 1.0.3
|
2011-10-11 16:19:46 +02:00
|
|
|
PORTREVISION= 19
|
2003-10-31 02:47:04 +01:00
|
|
|
CATEGORIES= math
|
2008-06-19 02:03:01 +02:00
|
|
|
MASTER_SITES= SF
|
2003-10-31 02:47:04 +01:00
|
|
|
|
2010-08-03 12:59:16 +02:00
|
|
|
MAINTAINER= wen@FreeBSD.org
|
2003-10-31 02:47:04 +01:00
|
|
|
COMMENT= Python interface to the R Programming Language
|
|
|
|
|
2011-07-30 12:01:47 +02:00
|
|
|
LICENSE= GPLv2 LGPL21 MPL
|
|
|
|
LICENSE_COMB= dual
|
|
|
|
|
2008-06-19 02:03:01 +02:00
|
|
|
BUILD_DEPENDS= ${PYTHON_SITELIBDIR}/numpy:${PORTSDIR}/math/py-numpy \
|
2004-04-30 10:17:36 +02:00
|
|
|
R:${PORTSDIR}/math/R
|
2011-05-07 05:29:59 +02:00
|
|
|
RUN_DEPENDS= ${PYTHON_SITELIBDIR}/numpy:${PORTSDIR}/math/py-numpy \
|
|
|
|
R:${PORTSDIR}/math/R
|
2003-10-31 02:47:04 +01:00
|
|
|
|
|
|
|
USE_PYTHON= yes
|
|
|
|
USE_PYDISTUTILS= yes
|
2011-07-30 12:01:47 +02:00
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib/R/modules -L${LOCALBASE}/lib/R/lib
|
2003-10-31 02:47:04 +01:00
|
|
|
|
2007-06-13 17:03:43 +02:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's,^statichere ,,' ${WRKSRC}/src/rpymodule.c
|
2008-08-04 22:04:42 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' ${WRKSRC}/setup.py
|
2007-06-13 17:03:43 +02:00
|
|
|
|
2011-05-07 05:29:59 +02:00
|
|
|
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)
|
|
|
|
|
2003-10-31 02:47:04 +01:00
|
|
|
.include <bsd.port.mk>
|