2013-01-04 17:51:39 +00:00
|
|
|
# Created by: ijliao
|
2003-10-31 01:47:04 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= rpy
|
2008-06-19 00:03:01 +00:00
|
|
|
PORTVERSION= 1.0.3
|
2015-11-01 14:00:30 +00:00
|
|
|
PORTREVISION= 35
|
2003-10-31 01:47:04 +00:00
|
|
|
CATEGORIES= math
|
2008-06-19 00:03:01 +00:00
|
|
|
MASTER_SITES= SF
|
2003-10-31 01:47:04 +00:00
|
|
|
|
2014-05-31 05:20:15 +00:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-10-31 01:47:04 +00:00
|
|
|
COMMENT= Python interface to the R Programming Language
|
|
|
|
|
2011-07-30 10:01:47 +00:00
|
|
|
LICENSE= GPLv2 LGPL21 MPL
|
|
|
|
LICENSE_COMB= dual
|
|
|
|
|
2015-01-23 15:21:52 +00:00
|
|
|
BUILD_DEPENDS= ${PYNUMPY} \
|
2004-04-30 08:17:36 +00:00
|
|
|
R:${PORTSDIR}/math/R
|
2015-01-23 15:21:52 +00:00
|
|
|
RUN_DEPENDS= ${PYNUMPY} \
|
2011-05-07 03:29:59 +00:00
|
|
|
R:${PORTSDIR}/math/R
|
2003-10-31 01:47:04 +00:00
|
|
|
|
2014-10-21 16:54:54 +00:00
|
|
|
USES= python
|
|
|
|
USE_PYTHON= distutils autoplist
|
2011-07-30 10:01:47 +00:00
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib/R/modules -L${LOCALBASE}/lib/R/lib
|
2003-10-31 01:47:04 +00:00
|
|
|
|
2007-06-13 15:03:43 +00:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's,^statichere ,,' ${WRKSRC}/src/rpymodule.c
|
2013-05-28 15:15:05 +00:00
|
|
|
@${REINPLACE_CMD} -e 's|/usr/share|${LOCALBASE}/lib|' ${WRKSRC}/setup.py
|
2007-06-13 15:03:43 +00:00
|
|
|
|
2011-05-07 03:29:59 +00: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)
|
|
|
|
|
2015-06-03 16:13:33 +00:00
|
|
|
post-install:
|
2015-11-01 14:00:30 +00:00
|
|
|
${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/_rpy3022.so
|
2015-06-03 16:13:33 +00:00
|
|
|
|
2003-10-31 01:47:04 +00:00
|
|
|
.include <bsd.port.mk>
|