[plplot] Re-enable octave

Orion Poplawski orion at fedoraproject.org
Sun Mar 2 03:27:18 UTC 2014


commit 4d26561e14d48bc1fa8833a33e3acb44e76801a3
Author: Orion Poplawski <orion at cora.nwra.com>
Date:   Sat Mar 1 20:28:12 2014 -0700

    Re-enable octave

 plplot-octave38.patch |  809 +++++++++++++++++++++++++++++++++++++++++++++++++
 plplot.spec           |   10 +-
 2 files changed, 817 insertions(+), 2 deletions(-)
---
diff --git a/plplot-octave38.patch b/plplot-octave38.patch
new file mode 100644
index 0000000..25b8b3e
--- /dev/null
+++ b/plplot-octave38.patch
@@ -0,0 +1,809 @@
+diff -up plplot-5.10.0/examples/octave/x23c.m.octave38 plplot-5.10.0/examples/octave/x23c.m
+--- plplot-5.10.0/examples/octave/x23c.m.octave38	2011-03-27 11:57:51.000000000 -0600
++++ plplot-5.10.0/examples/octave/x23c.m	2014-03-01 17:38:25.472830802 -0700
+@@ -34,186 +34,186 @@ function ix23c(strm)
+   endif
+ 
+ 
+-  Greek = [\
+-"#gA";"#gB";"#gG";"#gD";"#gE";"#gZ";"#gY";"#gH";"#gI";"#gK";"#gL";"#gM";\
+-"#gN";"#gC";"#gO";"#gP";"#gR";"#gS";"#gT";"#gU";"#gF";"#gX";"#gQ";"#gW";\
+-"#ga";"#gb";"#gg";"#gd";"#ge";"#gz";"#gy";"#gh";"#gi";"#gk";"#gl";"#gm";\
+-"#gn";"#gc";"#go";"#gp";"#gr";"#gs";"#gt";"#gu";"#gf";"#gx";"#gq";"#gw";\
++  Greek = [...
++"#gA";"#gB";"#gG";"#gD";"#gE";"#gZ";"#gY";"#gH";"#gI";"#gK";"#gL";"#gM";
++"#gN";"#gC";"#gO";"#gP";"#gR";"#gS";"#gT";"#gU";"#gF";"#gX";"#gQ";"#gW";
++"#ga";"#gb";"#gg";"#gd";"#ge";"#gz";"#gy";"#gh";"#gi";"#gk";"#gl";"#gm";
++"#gn";"#gc";"#go";"#gp";"#gr";"#gs";"#gt";"#gu";"#gf";"#gx";"#gq";"#gw";
+ 	   ];
+ 
+-  Type1 = [\
+-0x0020,0x0021,0x0023,0x0025,0x0026,\
+-0x0028,0x0029,0x002b,0x002c,0x002e,\
+-0x002f,0x0030,0x0031,0x0032,0x0033,\
+-0x0034,0x0035,0x0036,0x0037,0x0038,\
+-0x0039,0x003a,0x003b,0x003c,0x003d,\
+-0x003e,0x003f,0x005b,0x005d,0x005f,\
+-0x007b,0x007c,0x007d,0x00a9,0x00ac,\
+-0x00ae,0x00b0,0x00b1,0x00d7,0x00f7,\
+-0x0192,0x0391,0x0392,0x0393,0x0394,\
+-0x0395,0x0396,0x0397,0x0398,0x0399,\
+-0x039a,0x039b,0x039c,0x039d,0x039e,\
+-0x039f,0x03a0,0x03a1,0x03a3,0x03a4,\
+-0x03a5,0x03a6,0x03a7,0x03a8,0x03a9,\
+-0x03b1,0x03b2,0x03b3,0x03b4,0x03b5,\
+-0x03b6,0x03b7,0x03b8,0x03b9,0x03ba,\
+-0x03bb,0x03bc,0x03bd,0x03be,0x03bf,\
+-0x03c0,0x03c1,0x03c2,0x03c3,0x03c4,\
+-0x03c5,0x03c6,0x03c7,0x03c8,0x03c9,\
+-0x03d1,0x03d2,0x03d5,0x03d6,0x2022,\
+-0x2026,0x2032,0x2033,0x203e,0x2044,\
+-0x2111,0x2118,0x211c,0x2122,0x2126,\
+-0x2135,0x2190,0x2191,0x2192,0x2193,\
+-0x2194,0x21b5,0x21d0,0x21d1,0x21d2,\
+-0x21d3,0x21d4,0x2200,0x2202,0x2203,\
+-0x2205,0x2206,0x2207,0x2208,0x2209,\
+-0x220b,0x220f,0x2211,0x2212,0x2215,\
+-0x2217,0x221a,0x221d,0x221e,0x2220,\
+-0x2227,0x2228,0x2229,0x222a,0x222b,\
+-0x2234,0x223c,0x2245,0x2248,0x2260,\
+-0x2261,0x2264,0x2265,0x2282,0x2283,\
+-0x2284,0x2286,0x2287,0x2295,0x2297,\
+-0x22a5,0x22c5,0x2320,0x2321,0x2329,\
+-0x232a,0x25ca,0x2660,0x2663,0x2665,\
+-0x2666,\
+-];
+-
+- title = {\
+-"#<0x10>PLplot Example 23 - Greek Letters";\
+-"#<0x10>PLplot Example 23 - Type 1 Symbol Font Glyphs by Unicode (a)";\
+-"#<0x10>PLplot Example 23 - Type 1 Symbol Font Glyphs by Unicode (b)";\
+-"#<0x10>PLplot Example 23 - Type 1 Symbol Font Glyphs by Unicode (c)";\
+-"#<0x10>PLplot Example 23 - Number Forms Unicode Block";\
+-"#<0x10>PLplot Example 23 - Arrows Unicode Block (a)";\
+-"#<0x10>PLplot Example 23 - Arrows Unicode Block (b)";\
+-"#<0x10>PLplot Example 23 - Mathematical Operators Unicode Block (a)";\
+-"#<0x10>PLplot Example 23 - Mathematical Operators Unicode Block (b)";\
+-"#<0x10>PLplot Example 23 - Mathematical Operators Unicode Block (c)";\
+-"#<0x10>PLplot Example 23 - Mathematical Operators Unicode Block (d)"\
++  Type1 = [...
++0x0020,0x0021,0x0023,0x0025,0x0026,...
++0x0028,0x0029,0x002b,0x002c,0x002e,...
++0x002f,0x0030,0x0031,0x0032,0x0033,...
++0x0034,0x0035,0x0036,0x0037,0x0038,...
++0x0039,0x003a,0x003b,0x003c,0x003d,...
++0x003e,0x003f,0x005b,0x005d,0x005f,...
++0x007b,0x007c,0x007d,0x00a9,0x00ac,...
++0x00ae,0x00b0,0x00b1,0x00d7,0x00f7,...
++0x0192,0x0391,0x0392,0x0393,0x0394,...
++0x0395,0x0396,0x0397,0x0398,0x0399,...
++0x039a,0x039b,0x039c,0x039d,0x039e,...
++0x039f,0x03a0,0x03a1,0x03a3,0x03a4,...
++0x03a5,0x03a6,0x03a7,0x03a8,0x03a9,...
++0x03b1,0x03b2,0x03b3,0x03b4,0x03b5,...
++0x03b6,0x03b7,0x03b8,0x03b9,0x03ba,...
++0x03bb,0x03bc,0x03bd,0x03be,0x03bf,...
++0x03c0,0x03c1,0x03c2,0x03c3,0x03c4,...
++0x03c5,0x03c6,0x03c7,0x03c8,0x03c9,...
++0x03d1,0x03d2,0x03d5,0x03d6,0x2022,...
++0x2026,0x2032,0x2033,0x203e,0x2044,...
++0x2111,0x2118,0x211c,0x2122,0x2126,...
++0x2135,0x2190,0x2191,0x2192,0x2193,...
++0x2194,0x21b5,0x21d0,0x21d1,0x21d2,...
++0x21d3,0x21d4,0x2200,0x2202,0x2203,...
++0x2205,0x2206,0x2207,0x2208,0x2209,...
++0x220b,0x220f,0x2211,0x2212,0x2215,...
++0x2217,0x221a,0x221d,0x221e,0x2220,...
++0x2227,0x2228,0x2229,0x222a,0x222b,...
++0x2234,0x223c,0x2245,0x2248,0x2260,...
++0x2261,0x2264,0x2265,0x2282,0x2283,...
++0x2284,0x2286,0x2287,0x2295,0x2297,...
++0x22a5,0x22c5,0x2320,0x2321,0x2329,...
++0x232a,0x25ca,0x2660,0x2663,0x2665,...
++0x2666,...
++];
++
++ title = {
++"#<0x10>PLplot Example 23 - Greek Letters";
++"#<0x10>PLplot Example 23 - Type 1 Symbol Font Glyphs by Unicode (a)";
++"#<0x10>PLplot Example 23 - Type 1 Symbol Font Glyphs by Unicode (b)";
++"#<0x10>PLplot Example 23 - Type 1 Symbol Font Glyphs by Unicode (c)";
++"#<0x10>PLplot Example 23 - Number Forms Unicode Block";
++"#<0x10>PLplot Example 23 - Arrows Unicode Block (a)";
++"#<0x10>PLplot Example 23 - Arrows Unicode Block (b)";
++"#<0x10>PLplot Example 23 - Mathematical Operators Unicode Block (a)";
++"#<0x10>PLplot Example 23 - Mathematical Operators Unicode Block (b)";
++"#<0x10>PLplot Example 23 - Mathematical Operators Unicode Block (c)";
++"#<0x10>PLplot Example 23 - Mathematical Operators Unicode Block (d)"
+ };
+ 
+- lo = [\
+-0x0,\
+-0x0,\
+-0x40,\
+-0x80,\
+-0x2153,\
+-0x2190,\
+-0x21d0,\
+-0x2200,\
+-0x2240,\
+-0x2280,\
+-0x22c0,\
+-];
+-
+- hi = [\
+-0x30,\
+-0x40,\
+-0x80,\
+-0xA6,\
+-0x2184,\
+-0x21d0,\
+-0x2200,\
+-0x2240,\
+-0x2280,\
+-0x22c0,\
+-0x2300,\
+-];
+-
+- nxcells = [\
+-12,\
+-8,\
+-8,\
+-8,\
+-8,\
+-8,\
+-8,\
+-8,\
+-8,\
+-8,\
+-8,\
+-];
+-
+-nycells = [\
+-8,\
+-8,\
+-8,\
+-8,\
+-8,\
+-8,\
+-8,\
+-8,\
+-8,\
+-8,\
+-8,\
++ lo = [
++0x0,
++0x0,
++0x40,
++0x80,
++0x2153,
++0x2190,
++0x21d0,
++0x2200,
++0x2240,
++0x2280,
++0x22c0,
++];
++
++ hi = [
++0x30,
++0x40,
++0x80,
++0xA6,
++0x2184,
++0x21d0,
++0x2200,
++0x2240,
++0x2280,
++0x22c0,
++0x2300,
++];
++
++ nxcells = [
++12,
++8,
++8,
++8,
++8,
++8,
++8,
++8,
++8,
++8,
++8,
++];
++
++nycells = [
++8,
++8,
++8,
++8,
++8,
++8,
++8,
++8,
++8,
++8,
++8,
+ ];
+ 
+ ## non-zero values Must be consistent with nxcells and nycells.
+-offset = [\
+-0,\
+-0,\
+-64,\
+-128,\
+-0,\
+-0,\
+-0,\
+-0,\
+-0,\
+-0,\
+-0,\
++offset = [
++0,
++0,
++64,
++128,
++0,
++0,
++0,
++0,
++0,
++0,
++0,
+ ];
+ 
+ ## 30 possible FCI values.
+ FCI_COMBINATIONS = 30;
+ 
+-fci = [\
+-0x80000000,\
+-0x80000001,\
+-0x80000002,\
+-0x80000003,\
+-0x80000004,\
+-0x80000010,\
+-0x80000011,\
+-0x80000012,\
+-0x80000013,\
+-0x80000014,\
+-0x80000020,\
+-0x80000021,\
+-0x80000022,\
+-0x80000023,\
+-0x80000024,\
+-0x80000100,\
+-0x80000101,\
+-0x80000102,\
+-0x80000103,\
+-0x80000104,\
+-0x80000110,\
+-0x80000111,\
+-0x80000112,\
+-0x80000113,\
+-0x80000114,\
+-0x80000120,\
+-0x80000121,\
+-0x80000122,\
+-0x80000123,\
+-0x80000124,\
+-];
+-
+-family = [\
+-  "sans-serif";\
+-  "serif";\
+-  "monospace";\
+-  "script";\
+-  "symbol"\
+-];
+-style = [\
+-  "upright";\
+-  "italic";\
+-  "oblique"\
+-];
+-weight = [\
+-  "medium";\
+-  "bold"\
++fci = [
++0x80000000,
++0x80000001,
++0x80000002,
++0x80000003,
++0x80000004,
++0x80000010,
++0x80000011,
++0x80000012,
++0x80000013,
++0x80000014,
++0x80000020,
++0x80000021,
++0x80000022,
++0x80000023,
++0x80000024,
++0x80000100,
++0x80000101,
++0x80000102,
++0x80000103,
++0x80000104,
++0x80000110,
++0x80000111,
++0x80000112,
++0x80000113,
++0x80000114,
++0x80000120,
++0x80000121,
++0x80000122,
++0x80000123,
++0x80000124,
++];
++
++family = [
++  "sans-serif";
++  "serif";
++  "monospace";
++  "script";
++  "symbol"
++];
++style = [
++  "upright";
++  "italic";
++  "oblique"
++];
++weight = [
++  "medium";
++  "bold"
+ ];
+ 
+ 
+diff -up plplot-5.10.0/examples/octave/x28c.m.octave38 plplot-5.10.0/examples/octave/x28c.m
+--- plplot-5.10.0/examples/octave/x28c.m.octave38	2011-03-27 11:57:51.000000000 -0600
++++ plplot-5.10.0/examples/octave/x28c.m	2014-03-01 17:38:25.472830802 -0700
+@@ -86,8 +86,8 @@ function ix28c
+   plw3d(1.0, 1.0, 1.0, xmin, xmax, ymin, ymax, zmin, zmax, 20., 45.);
+    
+   plcol0(2);
+-  plbox3("b", "", xrange, 0, \
+-	 "b", "", yrange, 0, \
++  plbox3("b", "", xrange, 0, 
++	 "b", "", yrange, 0, 
+ 	 "bcd", "", zrange, 0);
+ 
+   ## z = zmin. 
+@@ -102,9 +102,9 @@ function ix28c
+     x_shear = -0.5*xrange*sin_omega;
+     y_shear = 0.5*yrange*cos_omega;
+     z_shear = 0.;
+-    plptex3(xmid, ymid, zmin, \
+-	    x_inclination, y_inclination, z_inclination, \
+-	    x_shear, y_shear, z_shear, \
++    plptex3(xmid, ymid, zmin, 
++	    x_inclination, y_inclination, z_inclination, 
++	    x_shear, y_shear, z_shear, 
+ 	    0.0, "  revolution");
+   endfor
+   ## x = xmax.
+@@ -119,9 +119,9 @@ function ix28c
+     x_shear = 0.;
+     y_shear = 0.5*yrange*sin_omega;
+     z_shear = 0.5*zrange*cos_omega;
+-    plptex3(xmax, ymid, zmid, \
+-	    x_inclination, y_inclination, z_inclination, \
+-	    x_shear, y_shear, z_shear, \
++    plptex3(xmax, ymid, zmid, 
++	    x_inclination, y_inclination, z_inclination, 
++	    x_shear, y_shear, z_shear, 
+ 	    0.0, "  revolution");
+   endfor
+ 
+@@ -137,10 +137,10 @@ function ix28c
+     x_shear = -0.5*xrange*sin_omega;
+     y_shear = 0.;
+     z_shear = 0.5*zrange*cos_omega;
+-    plptex3( \
+-	    xmid, ymax, zmid, \
+-	    x_inclination, y_inclination, z_inclination, \
+-	    x_shear, y_shear, z_shear, \
++    plptex3( 
++	    xmid, ymax, zmid, 
++	    x_inclination, y_inclination, z_inclination, 
++	    x_shear, y_shear, z_shear, 
+ 	    0.0, "  revolution");
+   endfor
+   ## Draw minimal 3D grid to finish defining the 3D box.
+@@ -153,8 +153,8 @@ function ix28c
+   plw3d(1.0, 1.0, 1.0, xmin, xmax, ymin, ymax, zmin, zmax, 20., 45.);
+    
+   plcol0(2);
+-  plbox3("b", "", xrange, 0, \
+-	 "b", "", yrange, 0, \
++  plbox3("b", "", xrange, 0, 
++	 "b", "", yrange, 0, 
+ 	 "bcd", "", zrange, 0);
+ 
+   ## y = ymax.
+@@ -170,10 +170,10 @@ function ix28c
+     y_shear = 0.5*yrange*sin_omega;
+     z_shear = 0.5*zrange*cos_omega;
+     zs = zsmax - dzsrot*i;
+-    plptex3( \
+-	    xmid, ymax, zs, \
+-	    x_inclination, y_inclination, z_inclination, \
+-	    x_shear, y_shear, z_shear, \
++    plptex3( 
++	    xmid, ymax, zs, 
++	    x_inclination, y_inclination, z_inclination, 
++	    x_shear, y_shear, z_shear, 
+ 	    0.5, "rotation for y = y#dmax#u");
+   endfor
+ 
+@@ -190,10 +190,10 @@ function ix28c
+     x_shear = 0.5*xrange*sin_omega;
+     z_shear = 0.5*zrange*cos_omega;
+     zs = zsmax - dzsrot*i;
+-    plptex3( \
+-	    xmax, ymid, zs, \
+-	    x_inclination, y_inclination, z_inclination, \
+-	    x_shear, y_shear, z_shear, \
++    plptex3( 
++	    xmax, ymid, zs, 
++	    x_inclination, y_inclination, z_inclination, 
++	    x_shear, y_shear, z_shear, 
+ 	    0.5, "rotation for x = x#dmax#u");
+   endfor
+ 
+@@ -210,10 +210,10 @@ function ix28c
+     y_shear = 0.5*yrange*cos_omega;
+     z_shear = 0.5*zrange*sin_omega;
+     ys = ysmax - dysrot*i;
+-    plptex3( \
+-	    xmid, ys, zmin, \
+-	    x_inclination, y_inclination, z_inclination, \
+-	    x_shear, y_shear, z_shear, \
++    plptex3( 
++	    xmid, ys, zmin, 
++	    x_inclination, y_inclination, z_inclination, 
++	    x_shear, y_shear, z_shear, 
+ 	    0.5, "rotation for z = z#dmin#u");
+   endfor
+   ## Draw minimal 3D grid to finish defining the 3D box.
+@@ -230,8 +230,8 @@ function ix28c
+   plw3d(1.0, 1.0, 1.0, xmin, xmax, ymin, ymax, zmin, zmax, 20., 45.);
+    
+   plcol0(2);
+-  plbox3("b", "", xrange, 0, \
+-	 "b", "", yrange, 0, \
++  plbox3("b", "", xrange, 0, 
++	 "b", "", yrange, 0, 
+ 	 "bcd", "", zrange, 0);
+ 
+   ## y = ymax.
+@@ -247,10 +247,10 @@ function ix28c
+     x_shear = 0.5*xrange*sin_omega;
+     z_shear = 0.5*zrange*cos_omega;
+     zs = zsmax-dzsshear*i;
+-    plptex3( \
+-	    xmid, ymax, zs, \
+-	    x_inclination, y_inclination, z_inclination, \
+-	    x_shear, y_shear, z_shear, \
++    plptex3( 
++	    xmid, ymax, zs, 
++	    x_inclination, y_inclination, z_inclination, 
++	    x_shear, y_shear, z_shear, 
+ 	    0.5, "shear for y = y#dmax#u");
+   endfor
+ 
+@@ -267,10 +267,10 @@ function ix28c
+     y_shear = -0.5*yrange*sin_omega;
+     z_shear = 0.5*zrange*cos_omega;
+     zs = zsmax-dzsshear*i;
+-    plptex3( \
+-	    xmax, ymid, zs, \
+-	    x_inclination, y_inclination, z_inclination, \
+-	    x_shear, y_shear, z_shear, \
++    plptex3( 
++	    xmax, ymid, zs, 
++	    x_inclination, y_inclination, z_inclination, 
++	    x_shear, y_shear, z_shear, 
+ 	    0.5, "shear for x = x#dmax#u");
+   endfor
+ 
+@@ -287,10 +287,10 @@ function ix28c
+     y_shear = 0.5*yrange*cos_omega;
+     x_shear = 0.5*xrange*sin_omega;
+     ys = ysmax-dysshear*i;
+-    plptex3( \
+-	    xmid, ys, zmin, \
+-	    x_inclination, y_inclination, z_inclination, \
+-	    x_shear, y_shear, z_shear, \
++    plptex3( 
++	    xmid, ys, zmin, 
++	    x_inclination, y_inclination, z_inclination, 
++	    x_shear, y_shear, z_shear, 
+ 	    0.5, "shear for z = z#dmin#u");
+   endfor
+   ## Draw minimal 3D grid to finish defining the 3D box.
+@@ -303,8 +303,8 @@ function ix28c
+   plw3d(1.0, 1.0, 1.0, xmin, xmax, ymin, ymax, zmin, zmax, 40., -30.);
+   
+   plcol0(2);
+-  plbox3("b", "", xrange, 0, \
+-	 "b", "", yrange, 0, \
++  plbox3("b", "", xrange, 0, 
++	 "b", "", yrange, 0, 
+ 	 "bcd", "", zrange, 0);
+ 
+   plschr(0., 1.2);
+@@ -334,10 +334,10 @@ function ix28c
+     y_shear = 0.;
+     z_shear = 1.;
+     p1string = pstring(i:i);
+-    plptex3( \
+-	    xpos, ypos, zpos, \
+-	    x_inclination, y_inclination, z_inclination, \
+-	    x_shear, y_shear, z_shear, \
++    plptex3( 
++	    xpos, ypos, zpos, 
++	    x_inclination, y_inclination, z_inclination, 
++	    x_shear, y_shear, z_shear, 
+ 	    0.5, p1string);
+     omega += domega;
+   endfor
+@@ -351,8 +351,8 @@ function ix28c
+   plw3d(1.0, 1.0, 1.0, xmin, xmax, ymin, ymax, zmin, zmax, 20., 45.);
+   
+   plcol0(2);
+-  plbox3("b", "", xrange, 0, \
+-	 "b", "", yrange, 0, \
++  plbox3("b", "", xrange, 0, 
++	 "b", "", yrange, 0, 
+ 	 "bcd", "", zrange, 0);
+ 
+   plschr(0., 1.0);
+diff -up plplot-5.10.0/examples/octave/x33c.m.octave38 plplot-5.10.0/examples/octave/x33c.m
+--- plplot-5.10.0/examples/octave/x33c.m.octave38	2013-06-02 14:07:07.000000000 -0600
++++ plplot-5.10.0/examples/octave/x33c.m	2014-03-01 17:38:25.474831018 -0700
+@@ -195,12 +195,12 @@ function plcolorbar_example_page( kind_i
+         plwind( 0.0, 1.0, 0.0, 1.0 );
+         # Set interesting background colour.
+         plscol0a( 15, 0, 0, 0, 0.20 );
+-        [colorbar_width, colorbar_height] = plcolorbar( \
+-            bitor(opt, bitor(PL_COLORBAR_BOUNDING_BOX, PL_COLORBAR_BACKGROUND)), \
+-            position, x, y, x_length, y_length, \
+-            15, 1, 1, low_cap_color, high_cap_color, \
+-            cont_color, cont_width, label_opts, label, \
+-            axis_opts, ticks, sub_ticks, \
++        [colorbar_width, colorbar_height] = plcolorbar( 
++            bitor(opt, bitor(PL_COLORBAR_BOUNDING_BOX, PL_COLORBAR_BACKGROUND)), 
++            position, x, y, x_length, y_length, 
++            15, 1, 1, low_cap_color, high_cap_color, 
++            cont_color, cont_width, label_opts, label, 
++            axis_opts, ticks, sub_ticks, 
+             n_values_array, values_array );
+ 
+         # Reset text and tick sizes
+@@ -313,7 +313,7 @@ function ix33c()
+     line_colors(1) = 1 + mod(k, 8);
+     symbol_colors(1) = 1 + mod(k, 8);
+ 
+-    [legend_width, legend_height] = \
++    [legend_width, legend_height] = ...
+ 	pllegend( opt, position, 0.05, 0.05,
+ 		 0.1, 15, 1, 1, 0, 0, opt_array, 1.0, 1.0, 2.0,
+ 		 1., text_colors, text,
+@@ -393,7 +393,7 @@ function ix33c()
+   y = 0.1;
+   nrow = 1;
+   ncolumn = nlegend;
+-  [legend_width, legend_height] = \
++  [legend_width, legend_height] = ...
+       pllegend( opt, position, x, y,
+ 	       0.05, 15, 1, 1, nrow, ncolumn, opt_array, 1.0, 1.0, 2.0,
+ 	       1., text_colors, text,
+@@ -407,7 +407,7 @@ function ix33c()
+   y = 0.1;
+   nrow = 1;
+   ncolumn = nlegend;
+-  [legend_width, legend_height] = \
++  [legend_width, legend_height] = ...
+       pllegend( opt, position, x, y,
+ 	       0.05, 15, 1, 1, nrow, ncolumn, opt_array, 1.0, 1.0, 2.0,
+ 	       1., text_colors, text,
+@@ -422,7 +422,7 @@ function ix33c()
+   y = 0.;
+   nrow = nlegend;
+   ncolumn = 1;
+-  [legend_width, legend_height] = \
++  [legend_width, legend_height] = ...
+       pllegend( opt, position, x, y,
+ 	       0.05, 15, 1, 1, nrow, ncolumn, opt_array, 1.0, 1.0, 2.0,
+ 	       1., text_colors, text,
+@@ -436,7 +436,7 @@ function ix33c()
+   y = 0.;
+   nrow = nlegend;
+   ncolumn = 1;
+-  [legend_width, legend_height] = \
++  [legend_width, legend_height] = ...
+       pllegend( opt, position, x, y,
+ 	       0.05, 15, 1, 1, nrow, ncolumn, opt_array, 1.0, 1.0, 2.0,
+ 	       1., text_colors, text,
+@@ -450,7 +450,7 @@ function ix33c()
+   y = 0.;
+   nrow = 6;
+   ncolumn = 2;
+-  [legend_width, legend_height] = \
++  [legend_width, legend_height] = ...
+       pllegend( opt, position, x, y,
+ 	       0.05, 15, 1, 1, nrow, ncolumn, opt_array, 1.0, 1.0, 2.0,
+ 	       1., text_colors, text,
+@@ -464,7 +464,7 @@ function ix33c()
+   y = 0.;
+   nrow = 6;
+   ncolumn = 2;
+-  [legend_width, legend_height] = \
++  [legend_width, legend_height] = ...
+       pllegend( opt, position, x, y,
+ 	       0.05, 15, 1, 1, nrow, ncolumn, opt_array, 1.0, 1.0, 2.0,
+ 	       1., text_colors, text,
+@@ -478,7 +478,7 @@ function ix33c()
+   y = 0.;
+   nrow = 3;
+   ncolumn = 3;
+-  [legend_width, legend_height] = \
++  [legend_width, legend_height] = ...
+       pllegend( opt, position, x, y,
+ 	       0.05, 15, 1, 1, nrow, ncolumn, opt_array, 1.0, 1.0, 2.0,
+ 	       1., text_colors, text,
+@@ -568,7 +568,7 @@ function ix33c()
+     nrow = min(3, nlegend);
+     ncolumn = 0;
+ 
+-    [legend_width, legend_height] = \
++    [legend_width, legend_height] = ...
+         pllegend( opt, position, x, y,
+                  0.025, 15, 1, 1, nrow, ncolumn, opt_array, 1.0, 1.0, 1.5,
+                  1., text_colors, text,
+@@ -685,7 +685,7 @@ function ix33c()
+ 
+   opt = opt_base;
+   plscol0a( 15, 32, 32, 32, 0.70 );
+-  [legend_width, legend_height] = \
++  [legend_width, legend_height] = ...
+       pllegend( opt, position, x, y,
+                0.1, 15, 1, 1, 0, 0, opt_array, 1.0, text_scale, 2.0,
+                0., text_colors, text,
+@@ -716,7 +716,7 @@ function ix33c()
+   opt = opt_base;
+   x += legend_width;
+   plscol0a( 15, 32, 32, 32, 0.70 );
+-  [legend_width, legend_height] = \
++  [legend_width, legend_height] = ...
+       pllegend( opt, position, x, y,
+ 	       0.1, 15, 1, 1, 0, 0, opt_array, 1.0, text_scale, 2.0,
+ 	       0., text_colors, text,
+@@ -747,7 +747,7 @@ function ix33c()
+   opt = opt_base;
+   x += legend_width;
+   plscol0a( 15, 32, 32, 32, 0.70 );
+-  [legend_width, legend_height] = \
++  [legend_width, legend_height] = ...
+       pllegend( opt, position, x, y,
+ 	       0.1, 15, 1, 1, 0, 0, opt_array, 1.0, text_scale, 2.0,
+ 	       0., text_colors, text,
+@@ -781,7 +781,7 @@ function ix33c()
+   y += max_height;
+   max_height = 0.;
+   plscol0a( 15, 32, 32, 32, 0.70 );
+-  [legend_width, legend_height] = \
++  [legend_width, legend_height] = ...
+       pllegend( opt, position, x, y,
+                0.1, 15, 1, 1, 0, 0, opt_array, 1.0, text_scale, 2.0,
+                0., text_colors, text,
+@@ -812,7 +812,7 @@ function ix33c()
+   opt = opt_base;
+   x += legend_width;
+   plscol0a( 15, 32, 32, 32, 0.70 );
+-  [legend_width, legend_height] = \
++  [legend_width, legend_height] = ...
+       pllegend( opt, position, x, y,
+                0.1, 15, 1, 1, 0, 0, opt_array, 1.0, text_scale, 2.0,
+                0., text_colors, text,
+@@ -843,7 +843,7 @@ function ix33c()
+   opt = opt_base;
+   x += legend_width;
+   plscol0a( 15, 32, 32, 32, 0.70 );
+-  [legend_width, legend_height] = \
++  [legend_width, legend_height] = ...
+       pllegend( opt, position, x, y,
+                0.1, 15, 1, 1, 0, 0, opt_array, 1.0, text_scale, 2.0,
+                0., text_colors, text,
+@@ -878,7 +878,7 @@ function ix33c()
+   y += max_height;
+   max_height = 0.;
+   plscol0a( 15, 32, 32, 32, 0.70 );
+-  [legend_width, legend_height] = \
++  [legend_width, legend_height] = ...
+       pllegend( opt, position, x, y,
+                0.1, 15, 1, 1, 0, 0, opt_array, 1.0, text_scale, 2.0,
+                0., text_colors, text',
+@@ -905,7 +905,7 @@ function ix33c()
+   opt = opt_base;
+   x += legend_width;
+   plscol0a( 15, 32, 32, 32, 0.70 );
+-  [legend_width, legend_height] = \
++  [legend_width, legend_height] = ...
+       pllegend( opt, position, x, y,
+                0.1, 15, 1, 1, 0, 0, opt_array, 1.0, text_scale, 2.0,
+                0., text_colors, text',
+@@ -933,7 +933,7 @@ function ix33c()
+   opt = opt_base;
+   x += legend_width;
+   plscol0a( 15, 32, 32, 32, 0.70 );
+-  [legend_width, legend_height] = \
++  [legend_width, legend_height] = ...
+       pllegend( opt, position, x, y,
+                0.1, 15, 1, 1, 0, 0, opt_array, 1.0, text_scale, 2.0,
+                0., text_colors, text',
+diff -up plplot-5.10.0/plplot_test/test_octave.sh.in.octave38 plplot-5.10.0/plplot_test/test_octave.sh.in
+--- plplot-5.10.0/plplot_test/test_octave.sh.in.octave38	2014-03-01 17:38:25.452828650 -0700
++++ plplot-5.10.0/plplot_test/test_octave.sh.in	2014-03-01 17:43:35.463845541 -0700
+@@ -35,7 +35,12 @@ echo "$TOPDIR"
+ export LD_LIBRARY_PATH="$TOPDIR"/src:"$TOPDIR"/lib/csa:"$TOPDIR"/lib/nn
+ 
+ # Launch an Octave script that exercises all the demos
+-$octave -f -q $octaveopts -p "$octavedir" <<EOF 2> test.error
++$octave -f -q  <<EOF 2> test.error
++
++# Disable warnings about shadowed functions - PLplot is _supposed_ to shadow the core functions
++warning("off","Octave:shadowed-function");
++
++addpath(getenv("octavedir"));
+ 
+ # Check verbose_test variable
+ if (strcmp(getenv("verbose_test"),"on") == 1)
+@@ -46,13 +51,15 @@ endif
+ 
+ plplot_stub;
+ t = char(strsplit("$options", "-")); 
+-if (t); t(1,:)=""; endif;
+-for i=1:rows(t)
+-    tt = deblank (t(i,:)); len = length(tt);
+-    ix = index(tt," ");
+-    if (ix == 0); ix = len; len = 0; endif
+-    plsetopt(tt(1:ix), tt(ix+1:len));
+-endfor
++if (t)
++    t(1,:)="";
++    for i=1:rows(t)
++        tt = deblank (t(i,:)); len = length(tt);
++        ix = index(tt," ");
++        if (ix == 0); ix = len; len = 0; endif
++        plsetopt(tt(1:ix), tt(ix+1:len));
++    endfor
++endif
+ 
+ # Subset of p examples selected that seem to work ok with noninteractive
+ # devices.
+@@ -80,13 +87,15 @@ for i=[0:18 19 20:31 33] ;
+ 	printf("%s\n",cmd);
+     endif
+     t = char(strsplit("$options", "-")); 
+-    if (t) ; t(1,:)=""; endif
+-    for j=1:rows(t)
+-        tt = deblank (t(j,:)); len = length(tt);
+-	ix = index(tt," ");
+-	if (ix == 0); ix = len; len = 0; endif
+-	plSetOpt(deblank(tt(1:ix)), tt(ix:len));
+-    endfor
++    if (t) 
++        t(1,:)="";
++        for j=1:rows(t)
++            tt = deblank (t(j,:)); len = length(tt);
++       	    ix = index(tt," ");
++	    if (ix == 0); ix = len; len = 0; endif
++	    plSetOpt(deblank(tt(1:ix)), tt(ix:len));
++        endfor
++    endif
+     device="$device";
+     plSetOpt("dev", device);
+ #o trailer on filename e.g., x01o.ps) to distinguish from other
diff --git a/plplot.spec b/plplot.spec
index ec142cf..c0bcc2f 100644
--- a/plplot.spec
+++ b/plplot.spec
@@ -3,7 +3,7 @@
 # Set to bcond_with or use --without doc to disable doc build
 %bcond_with doc
 # Set to bcond_with or use --without octave to disable octave support
-%bcond_with octave
+%bcond_without octave
 # Set to bcond_with or use --without pdl to disable pdl tests - needed to 
 # bootstrap or for soname bumps in a plplot dependency
 %bcond_with pdl
@@ -26,7 +26,7 @@
 
 Name:           plplot
 Version:        5.10.0
-Release:        2%{?dist}
+Release:        3%{?dist}
 Summary:        Library of functions for making scientific plots
 
 Group:          Applications/Engineering
@@ -43,6 +43,8 @@ Patch3:         plplot-lua52.patch
 # Fix pkgconfig libs
 # https://bugzilla.redhat.com/show_bug.cgi?id=998988
 Patch4:         plplot-pkgconfig.patch
+# Upstream patch for octave 3.8
+Patch5:         plplot-octave38.patch
 # Don't use -custom with ocamlc
 Patch7:         plplot-ocaml.patch
 
@@ -357,6 +359,7 @@ Requires:       %{name}-wxGTK%{?_isa} = %{version}-%{release}
 %patch3 -p1 -b .lua52
 %endif
 %patch4 -p1 -b .pkgconfig
+%patch5 -p1 -b .octave38
 %patch7 -p1 -b .ocaml
 # Emtpy file - fixed upstream
 sed -i -e '/plplotdoc-html.proc/d' doc/docbook/src/HTML-MANIFEST
@@ -722,6 +725,9 @@ fi
 
 
 %changelog
+* Sat Mar 1 2014 Orion Poplawski <orion at cora.nwra.com> - 5.10.0-3
+- Re-enable octave
+
 * Mon Feb 24 2014 Orion Poplawski <orion at cora.nwra.com> - 5.10.0-2
 - Requires java-headless (bug #1068488)
 


More information about the scm-commits mailing list