[Pkg-octave-commit] [octave-tsa] 02/02: d/p/ignore-matlab-version.patch: New patch

Rafael Laboissière rlaboiss-guest at moszumanska.debian.org
Fri May 1 23:18:58 UTC 2015


This is an automated email from the git hooks/post-receive script.

rlaboiss-guest pushed a commit to branch master
in repository octave-tsa.

commit e2bb89aaa933947f653d0b7d83896f3d37cb4292
Author: Rafael Laboissiere <rafael at laboissiere.net>
Date:   Fri May 1 19:46:38 2015 -0300

    d/p/ignore-matlab-version.patch: New patch
---
 debian/patches/ignore-matlab-version.patch | 27 +++++++++++++++++++++++++++
 debian/patches/series                      |  1 +
 2 files changed, 28 insertions(+)

diff --git a/debian/patches/ignore-matlab-version.patch b/debian/patches/ignore-matlab-version.patch
new file mode 100644
index 0000000..f3521c8
--- /dev/null
+++ b/debian/patches/ignore-matlab-version.patch
@@ -0,0 +1,27 @@
+Description: Ignore tests of Matlab version
+Author: Rafael Laboissiere <rafael at laboissiere.net>
+Forwarded: https://savannah.gnu.org/bugs/index.php?44989
+Last-Update: 2015-05-01
+
+--- octave-tsa-4.2.9.orig/inst/sinvest1.m
++++ octave-tsa-4.2.9/inst/sinvest1.m
+@@ -211,14 +211,14 @@ while 1,
+                 ylabel('imag(z)');
+                 
+                 MATLAB_VERSION = version;
+-                if MATLAB_VERSION(1)=='4'
+-                        ax = gca;
+-                        tmp = get(ax,'Aspect');
+-                        set(ax,'Aspect',[tmp(1),1]);
+-                elseif MATLAB_VERSION(1)=='5'
++                if exist ("OCTAVE_VERSION", "builtin") || MATLAB_VERSION(1)=='5'
+                         ax = gca;
+                         tmp = get(ax,'DataAspectRatio');
+                         set(ax,'PlotBoxAspectRatio',tmp);
++                elseif MATLAB_VERSION(1)=='4'
++                        ax = gca;
++                        tmp = get(ax,'Aspect');
++                        set(ax,'Aspect',[tmp(1),1]);
+                 end;
+         elseif K==11
+                 plot([Y(:) filter([1 -ARPMX(:,oo/2*(oo-1)+(1:oo))],1,Y(:))-max(Y)+min(Y)]);
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..99dfd12
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+ignore-matlab-version.patch

-- 
Alioth's /home/groups/pkg-octave/bin/git-commit-notice on /srv/git.debian.org/git/pkg-octave/octave-tsa.git



More information about the Pkg-octave-commit mailing list