aboutsummaryrefslogtreecommitdiffstats
path: root/science/py-mlpy
diff options
context:
space:
mode:
authorwen <wen@FreeBSD.org>2010-12-23 16:22:39 +0800
committerwen <wen@FreeBSD.org>2010-12-23 16:22:39 +0800
commit36f734a53d707efe1fa09e80e37cf03ed6c3752a (patch)
tree4015bb2b876ccdc6b54eec57bdee7e5496725f8a /science/py-mlpy
parent26766756b685519f862eba6953b49e4fe07b94a8 (diff)
downloadfreebsd-ports-gnome-36f734a53d707efe1fa09e80e37cf03ed6c3752a.tar.gz
freebsd-ports-gnome-36f734a53d707efe1fa09e80e37cf03ed6c3752a.tar.zst
freebsd-ports-gnome-36f734a53d707efe1fa09e80e37cf03ed6c3752a.zip
- Update to 2.2.2
Diffstat (limited to 'science/py-mlpy')
-rw-r--r--science/py-mlpy/Makefile8
-rw-r--r--science/py-mlpy/distinfo4
-rw-r--r--science/py-mlpy/files/patch-setup.py17
-rw-r--r--science/py-mlpy/pkg-plist6
4 files changed, 29 insertions, 6 deletions
diff --git a/science/py-mlpy/Makefile b/science/py-mlpy/Makefile
index fb18d6bd3c79..12f0bc1fad8c 100644
--- a/science/py-mlpy/Makefile
+++ b/science/py-mlpy/Makefile
@@ -6,8 +6,7 @@
#
PORTNAME= mlpy
-PORTVERSION= 2.2.1
-PORTREVISION= 1
+PORTVERSION= 2.2.2
CATEGORIES= science python
MASTER_SITES= https://mlpy.fbk.eu/download/src/
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -16,11 +15,12 @@ DISTNAME= MLPY-${PORTVERSION}
MAINTAINER= wen@FreeBSD.org
COMMENT= High performance Python package for predictive modeling
-BUILD_DEPENDS= ${PYTHON_SITELIBDIR}/numpy:${PORTSDIR}/math/py-numpy
+BUILD_DEPENDS= ${PYTHON_SITELIBDIR}/numpy:${PORTSDIR}/math/py-numpy \
+ cython>0:${PORTSDIR}/lang/cython
RUN_DEPENDS= ${BUILD_DEPENDS}
LIB_DEPENDS= gsl.15:${PORTSDIR}/math/gsl
-CFLAGS+= -I${LOCALBASE}/include
+CFLAGS+= -I${LOCALBASE}/include -I${PYTHON_SITELIBDIR}/numpy/core
LDFLAGS+= -L${LOCALBASE}/lib
MAKE_ENV+= CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}"
USE_PYTHON= yes
diff --git a/science/py-mlpy/distinfo b/science/py-mlpy/distinfo
index b6dfa6fa753c..4e6aef4a6707 100644
--- a/science/py-mlpy/distinfo
+++ b/science/py-mlpy/distinfo
@@ -1,2 +1,2 @@
-SHA256 (MLPY-2.2.1.tar.gz) = aaf19b24a2f5a77809ca5239cc99b0724a972ac00530d510cca6568232e7b832
-SIZE (MLPY-2.2.1.tar.gz) = 169313
+SHA256 (MLPY-2.2.2.tar.gz) = 2c2864834ced9caddea83bc05ffc7526325cf5bffcfd6c3c4cf13097312b0057
+SIZE (MLPY-2.2.2.tar.gz) = 235665
diff --git a/science/py-mlpy/files/patch-setup.py b/science/py-mlpy/files/patch-setup.py
new file mode 100644
index 000000000000..0aa0368edf6f
--- /dev/null
+++ b/science/py-mlpy/files/patch-setup.py
@@ -0,0 +1,17 @@
+--- setup.py.orig 2010-10-18 20:08:13.000000000 +0800
++++ setup.py 2010-12-23 15:19:09.000000000 +0800
+@@ -158,11 +158,13 @@
+ "mlpy/liblinear/liblinear/blas/daxpy.c",
+ "mlpy/liblinear/liblinear/blas/ddot.c",
+ "mlpy/liblinear/liblinear/blas/dnrm2.c",
+- "mlpy/liblinear/liblinear/blas/dscal.c"],
++ "mlpy/liblinear/liblinear/blas/dscal.c"],
++ include_dirs=base_include,
+ extra_compile_args=extra_compile_args),
+ Extension("mlpy.libsvm",
+ ["mlpy/libsvm/libsvm/svm.cpp",
+ "mlpy/libsvm/libsvm.pyx"],
++ include_dirs=base_include,
+ extra_compile_args=extra_compile_args)
+ ],
+ scripts=["mlpy/tools/mlpy-test"],
diff --git a/science/py-mlpy/pkg-plist b/science/py-mlpy/pkg-plist
index 189886471226..9b44ed417698 100644
--- a/science/py-mlpy/pkg-plist
+++ b/science/py-mlpy/pkg-plist
@@ -50,6 +50,9 @@ bin/mlpy-test
%%PYTHON_SITELIBDIR%%/mlpy/_irelief.py
%%PYTHON_SITELIBDIR%%/mlpy/_irelief.pyc
%%PYTHON_SITELIBDIR%%/mlpy/_irelief.pyo
+%%PYTHON_SITELIBDIR%%/mlpy/_iuwt.py
+%%PYTHON_SITELIBDIR%%/mlpy/_iuwt.pyc
+%%PYTHON_SITELIBDIR%%/mlpy/_iuwt.pyo
%%PYTHON_SITELIBDIR%%/mlpy/_kernel.py
%%PYTHON_SITELIBDIR%%/mlpy/_kernel.pyc
%%PYTHON_SITELIBDIR%%/mlpy/_kernel.pyo
@@ -102,10 +105,13 @@ bin/mlpy-test
%%PYTHON_SITELIBDIR%%/mlpy/elasticnet.so
%%PYTHON_SITELIBDIR%%/mlpy/fssun.so
%%PYTHON_SITELIBDIR%%/mlpy/hc.so
+%%PYTHON_SITELIBDIR%%/mlpy/irregularuwt.so
%%PYTHON_SITELIBDIR%%/mlpy/gslpy.so
%%PYTHON_SITELIBDIR%%/mlpy/kmeans.so
%%PYTHON_SITELIBDIR%%/mlpy/kernel.so
%%PYTHON_SITELIBDIR%%/mlpy/knn.so
+%%PYTHON_SITELIBDIR%%/mlpy/liblinear.so
+%%PYTHON_SITELIBDIR%%/mlpy/libsvm.so
%%PYTHON_SITELIBDIR%%/mlpy/misc.so
%%PYTHON_SITELIBDIR%%/mlpy/peaksd.so
%%PYTHON_SITELIBDIR%%/mlpy/spectralreg.so