aboutsummaryrefslogtreecommitdiff
path: root/math/py-pygsl
diff options
context:
space:
mode:
authorSunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>2018-03-13 20:32:15 +0000
committerSunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>2018-03-13 20:32:15 +0000
commit5c18289b7ef1771ceed9a6b1f2995d216ab4404e (patch)
treeae87f80001275a9e161749ba7b9fa4c7472b9739 /math/py-pygsl
parent59cb500a2c486223eaa2913ba66e023dcc79597e (diff)
downloadports-5c18289b7ef1771ceed9a6b1f2995d216ab4404e.tar.gz
ports-5c18289b7ef1771ceed9a6b1f2995d216ab4404e.zip
Notes
Diffstat (limited to 'math/py-pygsl')
-rw-r--r--math/py-pygsl/Makefile27
-rw-r--r--math/py-pygsl/distinfo3
-rw-r--r--math/py-pygsl/files/patch-src_init_initmodule.c19
-rw-r--r--math/py-pygsl/files/patch-src_transform_wavelet.c34
-rw-r--r--math/py-pygsl/pkg-descr3
5 files changed, 86 insertions, 0 deletions
diff --git a/math/py-pygsl/Makefile b/math/py-pygsl/Makefile
new file mode 100644
index 000000000000..b4654f69fad2
--- /dev/null
+++ b/math/py-pygsl/Makefile
@@ -0,0 +1,27 @@
+# Created by: Hye-Shik Chang <perky@fallin.lv>
+# $FreeBSD$
+
+PORTNAME= pygsl
+PORTVERSION= 2.3.0
+PORTREVISION= 1
+CATEGORIES= math python
+MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= sunpoet@FreeBSD.org
+COMMENT= Python interface to GNU Scientific Library
+
+LICENSE= GPLv2
+LICENSE_FILE= ${WRKSRC}/COPYING
+
+BUILD_DEPENDS= ${PYNUMPY}
+LIB_DEPENDS= libgsl.so:math/gsl
+RUN_DEPENDS= ${PYNUMPY}
+
+USES= python
+USE_PYTHON= autoplist concurrent distutils
+
+post-install:
+ ${FIND} ${STAGEDIR}${PYTHON_SITELIBDIR} -name '*.so' -exec ${STRIP_CMD} {} +
+
+.include <bsd.port.mk>
diff --git a/math/py-pygsl/distinfo b/math/py-pygsl/distinfo
new file mode 100644
index 000000000000..3055a9721edb
--- /dev/null
+++ b/math/py-pygsl/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1514315689
+SHA256 (pygsl-2.3.0.tar.gz) = 26f79645bccef52a4f9f24c4307d9be954992ac008581750d4413e405404406a
+SIZE (pygsl-2.3.0.tar.gz) = 1096186
diff --git a/math/py-pygsl/files/patch-src_init_initmodule.c b/math/py-pygsl/files/patch-src_init_initmodule.c
new file mode 100644
index 000000000000..771ed15d3e3c
--- /dev/null
+++ b/math/py-pygsl/files/patch-src_init_initmodule.c
@@ -0,0 +1,19 @@
+--- src/init/initmodule.c.orig 2015-09-27 12:30:47 UTC
++++ src/init/initmodule.c
+@@ -111,7 +111,7 @@ PyGSL_set_debug_level(PyObject *self, Py
+
+ FUNC_MESS_BEGIN();
+ #if DEBUG == 1
+- PyObject *o;
++ { PyObject *o;
+ int tmp, i, max, *ptr;
+ if(!PyArg_ParseTuple(args, "i", &tmp))
+ return NULL;
+@@ -136,6 +136,7 @@ PyGSL_set_debug_level(PyObject *self, Py
+ Py_INCREF(Py_None);
+ FUNC_MESS_END();
+ return Py_None;
++ }
+ #else
+ PyGSL_ERROR_NULL("PyGSL was not compiled with DEBUG = 1; Can not set DEBUG level!", GSL_EUNIMPL);
+ #endif
diff --git a/math/py-pygsl/files/patch-src_transform_wavelet.c b/math/py-pygsl/files/patch-src_transform_wavelet.c
new file mode 100644
index 000000000000..72373da79a50
--- /dev/null
+++ b/math/py-pygsl/files/patch-src_transform_wavelet.c
@@ -0,0 +1,34 @@
+--- src/transform/wavelet.c.orig 2015-09-13 16:16:51 UTC
++++ src/transform/wavelet.c
+@@ -147,6 +147,7 @@ PyGSL_wavelet_ ## direction(PyGSL_wavele
+ { \
+ PyObject *tmp; \
+ FUNC_MESS_BEGIN(); \
++ { \
+ pygsl_transform_help_s helps;\
+ struct _pygsl_transform_help_rf_s s; \
+ helps.info = &wavelet_info; \
+@@ -156,6 +157,7 @@ PyGSL_wavelet_ ## direction(PyGSL_wavele
+ tmp = PyGSL_transform_((PyObject *) self, args, &helps); \
+ FUNC_MESS_END(); \
+ return tmp; \
++ } \
+ }
+ PYGSL_WAVLET(forward)
+ PYGSL_WAVLET(inverse)
+@@ -166,6 +168,7 @@ PyGSL_wavelet2d_ ## type ## direction(Py
+ { \
+ PyObject *tmp; \
+ FUNC_MESS_BEGIN(); \
++ { \
+ pygsl_transform_help_s helps;\
+ struct _pygsl_transform_help_rf_s s; \
+ helps.info = &wavelet_info; \
+@@ -175,6 +178,7 @@ PyGSL_wavelet2d_ ## type ## direction(Py
+ tmp = PyGSL_transform_2d_((PyObject *) self, args, &helps); \
+ FUNC_MESS_END(); \
+ return tmp; \
++ } \
+ }
+ PYGSL_WAVLET2D(,forward)
+ PYGSL_WAVLET2D(,inverse)
diff --git a/math/py-pygsl/pkg-descr b/math/py-pygsl/pkg-descr
new file mode 100644
index 000000000000..0738290a362c
--- /dev/null
+++ b/math/py-pygsl/pkg-descr
@@ -0,0 +1,3 @@
+Python interface to GNU Scientific Library
+
+WWW: https://sourceforge.net/projects/pygsl/