aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Montgomery-Smith <stephen@FreeBSD.org>2022-10-28 21:29:23 +0000
committerStephen Montgomery-Smith <stephen@FreeBSD.org>2022-10-28 21:29:23 +0000
commit21b6aaf8ecef9dd226df833590c9b6b940206913 (patch)
tree4fabd67c0a0831224d93d2d011843fd11de19203
parent44ad650ffecc4a7b638f2a9f56f17bbed940249c (diff)
downloadports-21b6aaf8ecef9dd226df833590c9b6b940206913.tar.gz
ports-21b6aaf8ecef9dd226df833590c9b6b940206913.zip
math/octave-forge-biosig: Update to 3.0.1.
-rw-r--r--math/octave-forge-biosig/Makefile2
-rw-r--r--math/octave-forge-biosig/distinfo6
-rw-r--r--math/octave-forge-biosig/files/patch-mexSSAVE.cpp11
3 files changed, 15 insertions, 4 deletions
diff --git a/math/octave-forge-biosig/Makefile b/math/octave-forge-biosig/Makefile
index cbf43cab3791..25dce241def1 100644
--- a/math/octave-forge-biosig/Makefile
+++ b/math/octave-forge-biosig/Makefile
@@ -1,5 +1,5 @@
PORTNAME= octave-forge-biosig
-DISTVERSION= 2.4.3
+DISTVERSION= 3.0.1
CATEGORIES= math
MASTER_SITES= https://pub.ist.ac.at/~schloegl/biosig/prereleases/
DISTNAME= biosig4octave-${DISTVERSION}.src
diff --git a/math/octave-forge-biosig/distinfo b/math/octave-forge-biosig/distinfo
index 3a007f3e6057..48b9252ea6f3 100644
--- a/math/octave-forge-biosig/distinfo
+++ b/math/octave-forge-biosig/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1666806158
-SHA256 (octave-forge/biosig4octave-2.4.3.src.tar.gz) = 4d415c6548dc600c525663f977e54d78207087406910091767903d91473b5fec
-SIZE (octave-forge/biosig4octave-2.4.3.src.tar.gz) = 1551350
+TIMESTAMP = 1666992049
+SHA256 (octave-forge/biosig4octave-3.0.1.src.tar.gz) = 0ad89f03fa7e63e1ee9449322c247b03b48a951e64e8c5df13f372e1afb8c8d9
+SIZE (octave-forge/biosig4octave-3.0.1.src.tar.gz) = 1403188
diff --git a/math/octave-forge-biosig/files/patch-mexSSAVE.cpp b/math/octave-forge-biosig/files/patch-mexSSAVE.cpp
new file mode 100644
index 000000000000..b7e987b7bb31
--- /dev/null
+++ b/math/octave-forge-biosig/files/patch-mexSSAVE.cpp
@@ -0,0 +1,11 @@
+--- mexSSAVE.cpp.orig 2022-10-28 21:23:00 UTC
++++ mexSSAVE.cpp
+@@ -202,7 +202,7 @@ void mexFunction(
+ if ( (p = mxGetField(prhs[0], 0, "tzmin") ) != NULL )
+ hdr->tzmin = (int16_t)getDouble(p, 0);
+ else
+- hdr->tzmin = -timezone/60;
++ hdr->tzmin = -localtime(0)->tm_gmtoff/60;
+ if ( (p = mxGetField(prhs[0], 0, "FileName") ) != NULL ) FileName = mxArrayToString(p);
+ if ( (p = mxGetField(prhs[0], 0, "SampleRate") ) != NULL ) hdr->SampleRate = getDouble(p, 0);
+ if ( (p = mxGetField(prhs[0], 0, "NS") ) != NULL ) hdr->NS = getDouble(p, 0);