math/octave-forge-biosig: Update to 3.0.1.

This commit is contained in:
Stephen Montgomery-Smith 2022-10-28 16:29:23 -05:00
parent 44ad650ffe
commit 21b6aaf8ec
3 changed files with 15 additions and 4 deletions

View File

@ -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

View File

@ -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

View File

@ -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);