diff options
author | wen <wen@FreeBSD.org> | 2010-12-21 09:22:30 +0800 |
---|---|---|
committer | wen <wen@FreeBSD.org> | 2010-12-21 09:22:30 +0800 |
commit | a8ca9eba6928e8d807a1a599957f410d57ab0888 (patch) | |
tree | a8f55877ade84970deb2f6ef46c097b0051b8a96 /science | |
parent | 9f6d4174129c7d02c35dc90eca1de4896ef6cc77 (diff) | |
download | freebsd-ports-gnome-a8ca9eba6928e8d807a1a599957f410d57ab0888.tar.gz freebsd-ports-gnome-a8ca9eba6928e8d807a1a599957f410d57ab0888.tar.zst freebsd-ports-gnome-a8ca9eba6928e8d807a1a599957f410d57ab0888.zip |
- Fix run error because of lacking cpow() function in FreeBSD.
- Remove MD5
PR: ports/153299
Submitted by: Kawaguti Ginga <ginga-freebsd@ginganet.org>
Diffstat (limited to 'science')
-rw-r--r-- | science/py-mlpy/Makefile | 1 | ||||
-rw-r--r-- | science/py-mlpy/distinfo | 1 | ||||
-rw-r--r-- | science/py-mlpy/files/patch-mlpy-cwt-cwb.c | 17 |
3 files changed, 18 insertions, 1 deletions
diff --git a/science/py-mlpy/Makefile b/science/py-mlpy/Makefile index 663e6d076722..fb18d6bd3c79 100644 --- a/science/py-mlpy/Makefile +++ b/science/py-mlpy/Makefile @@ -7,6 +7,7 @@ PORTNAME= mlpy PORTVERSION= 2.2.1 +PORTREVISION= 1 CATEGORIES= science python MASTER_SITES= https://mlpy.fbk.eu/download/src/ PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} diff --git a/science/py-mlpy/distinfo b/science/py-mlpy/distinfo index 6a21c68aba56..b6dfa6fa753c 100644 --- a/science/py-mlpy/distinfo +++ b/science/py-mlpy/distinfo @@ -1,3 +1,2 @@ -MD5 (MLPY-2.2.1.tar.gz) = 2c4e9b00031f98a1be9ac86e312ff0f8 SHA256 (MLPY-2.2.1.tar.gz) = aaf19b24a2f5a77809ca5239cc99b0724a972ac00530d510cca6568232e7b832 SIZE (MLPY-2.2.1.tar.gz) = 169313 diff --git a/science/py-mlpy/files/patch-mlpy-cwt-cwb.c b/science/py-mlpy/files/patch-mlpy-cwt-cwb.c new file mode 100644 index 000000000000..2d57adf4c507 --- /dev/null +++ b/science/py-mlpy/files/patch-mlpy-cwt-cwb.c @@ -0,0 +1,17 @@ +--- mlpy/cwt/cwb.c.orig 2010-12-21 09:10:04.000000000 +0800 ++++ mlpy/cwt/cwb.c 2010-12-21 09:12:05.000000000 +0800 +@@ -142,9 +142,12 @@ + complex double p = 0.0 + 0.0I; + double sw, norm = 1.0; + +- ++#ifndef __STD_IEC_559_COMPLEX__ /* FreeBSD lacks C99 cpow() */ ++ p = - gsl_complex_pow(0.0 + 1.0I, order) / sqrt(gsl_sf_gamma(order + 0.5)); ++#else + p = - cpow(0.0 + 1.0I, order) / sqrt(gsl_sf_gamma(order + 0.5)); +- ++#endif /* __STD_IEC_559_COMPLEX__ */ ++ + for (i=0; i<n; i++) + { + if (nm == 1) |