From 0bda7f4a9bd09ccb7dcff7a20aa6ec1b71cc33fb Mon Sep 17 00:00:00 2001 From: Yuri Victorovich Date: Sat, 1 Sep 2018 14:55:42 +0000 Subject: [PATCH] math/rpy2: Update 2.7.8 -> 2.9.4; Move to math/py-rpy2 Port changes: * Add LICENSE_FILE * Update dependencies * Support for python-2 is dropped * Update WWW to https --- MOVED | 1 + math/Makefile | 2 +- math/py-rpy2/Makefile | 31 +++++++++++++++++++++++++++++++ math/py-rpy2/distinfo | 3 +++ math/{rpy2 => py-rpy2}/pkg-descr | 2 +- math/rpy2/Makefile | 32 -------------------------------- math/rpy2/distinfo | 2 -- 7 files changed, 37 insertions(+), 36 deletions(-) create mode 100644 math/py-rpy2/Makefile create mode 100644 math/py-rpy2/distinfo rename math/{rpy2 => py-rpy2}/pkg-descr (94%) delete mode 100644 math/rpy2/Makefile delete mode 100644 math/rpy2/distinfo diff --git a/MOVED b/MOVED index 9f6d09b599ae..6cec37546c22 100644 --- a/MOVED +++ b/MOVED @@ -10498,3 +10498,4 @@ x11-themes/qt5-style-Kvantum|x11-themes/Kvantum@qt5|2018-08-26|Moved to flavored devel/gps||2018-08-28|Has expired: Depends on obsolete LLVM 3.8. net-mgmt/ocsinventory-ng|net-mgmt/ocsinventory-server|2018-08-26|split port www/py-buku|www/buku|2018-09-01|Moved to correct directory, port is not a python library +math/rpy2|math/py-rpy2|2018-09-01|Moved to correct directory, this is a python library diff --git a/math/Makefile b/math/Makefile index f6c4dbb9a288..9ca59d455941 100644 --- a/math/Makefile +++ b/math/Makefile @@ -723,6 +723,7 @@ SUBDIR += py-pyvtk SUBDIR += py-random2 SUBDIR += py-roman + SUBDIR += py-rpy2 SUBDIR += py-scientific SUBDIR += py-scikit-umfpack SUBDIR += py-seaborn @@ -764,7 +765,6 @@ SUBDIR += rocs-kde4 SUBDIR += rpcalc SUBDIR += rpy - SUBDIR += rpy2 SUBDIR += rubygem-algebra SUBDIR += rubygem-expression_parser SUBDIR += rubygem-fftw3 diff --git a/math/py-rpy2/Makefile b/math/py-rpy2/Makefile new file mode 100644 index 000000000000..e64234843625 --- /dev/null +++ b/math/py-rpy2/Makefile @@ -0,0 +1,31 @@ +# Created by: ijliao +# $FreeBSD$ + +PORTNAME= rpy2 +DISTVERSION= 2.9.4 +CATEGORIES= math +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= ports@FreeBSD.org +COMMENT= Python interface to the R Programming Language + +LICENSE= GPLv2+ +LICENSE_FILE= ${WRKSRC}/gpl-2.0.txt + +BUILD_DEPENDS= ${PYNUMPY} +LIB_DEPENDS= libR.so:math/R \ + libicui18n.so:devel/icu \ + libomp.so:devel/openmp \ + libpcre.so:devel/pcre +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}Jinja2>0:devel/py-Jinja2@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}six>0:devel/py-six@${PY_FLAVOR} \ + ${PYNUMPY} + +USES= fortran python:3.4+ readline +USE_PYTHON= distutils autoplist + +post-install: + @${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/rpy2/rinterface/*.so + +.include diff --git a/math/py-rpy2/distinfo b/math/py-rpy2/distinfo new file mode 100644 index 000000000000..6e16cfdce727 --- /dev/null +++ b/math/py-rpy2/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1535812255 +SHA256 (rpy2-2.9.4.tar.gz) = be57f741d0c284b5d8785ab03dff0e829303e5ac30e548d5ceb46e05b168812e +SIZE (rpy2-2.9.4.tar.gz) = 194620 diff --git a/math/rpy2/pkg-descr b/math/py-rpy2/pkg-descr similarity index 94% rename from math/rpy2/pkg-descr rename to math/py-rpy2/pkg-descr index c4d09d35f58c..cddcf34e16ad 100644 --- a/math/rpy2/pkg-descr +++ b/math/py-rpy2/pkg-descr @@ -9,4 +9,4 @@ rpy2 is a redesign and rewrite of rpy. It is providing a low-level interface to R, a proposed high-level interface, including wrappers to graphical libraries, as well as R-like structures and functions. -WWW: http://rpy2.bitbucket.org/ +WWW: https://rpy2.bitbucket.org/ diff --git a/math/rpy2/Makefile b/math/rpy2/Makefile deleted file mode 100644 index 6f9027fa2970..000000000000 --- a/math/rpy2/Makefile +++ /dev/null @@ -1,32 +0,0 @@ -# Created by: ijliao -# $FreeBSD$ - -PORTNAME= rpy2 -PORTVERSION= 2.7.8 -PORTREVISION= 8 -CATEGORIES= math -MASTER_SITES= CHEESESHOP - -MAINTAINER= ports@FreeBSD.org -COMMENT= Python interface to the R Programming Language - -LICENSE= GPLv2+ - -BUILD_DEPENDS= ${PYNUMPY} -LIB_DEPENDS= libR.so:math/R -RUN_DEPENDS= ${PYNUMPY} - -USES= fortran python readline -USE_PYTHON= distutils autoplist concurrent optsuffix -LDFLAGS+= -Wl,--as-needed - -pre-configure: - @(if [ ! -e ${LOCALBASE}/lib/R/lib/libR.so ] ; then \ - ${ECHO_MSG} "==> ${PKGNAME} requires math/R to be built with the" ; \ - ${ECHO_MSG} "==> LIBR option enabled." ; \ - exit 1; fi) - -post-install: - ${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/rpy2/rinterface/*.so - -.include diff --git a/math/rpy2/distinfo b/math/rpy2/distinfo deleted file mode 100644 index cbba0fc8a993..000000000000 --- a/math/rpy2/distinfo +++ /dev/null @@ -1,2 +0,0 @@ -SHA256 (rpy2-2.7.8.tar.gz) = 4f51bcdddea01a63e624f4b38de4f6b10a2466d82fd7e890791a07b06e51781d -SIZE (rpy2-2.7.8.tar.gz) = 178334