[Pkg-octave-commit] r953 - in octave-epstk/trunk/debian: . patches

Rafael Laboissiere rafael at alioth.debian.org
Wed May 30 14:33:37 UTC 2007


Author: rafael
Date: 2007-05-30 14:33:37 +0000 (Wed, 30 May 2007)
New Revision: 953

Added:
   octave-epstk/trunk/debian/patches/05_faster-ebbox.patch
Modified:
   octave-epstk/trunk/debian/changelog
   octave-epstk/trunk/debian/patches/02_axis-value-labels.patch
   octave-epstk/trunk/debian/patches/03_psd-path.patch
   octave-epstk/trunk/debian/patches/04_source-etc-epstk-conf.patch
   octave-epstk/trunk/debian/patches/README
Log:
* debian/patches/05_faster-ebbox.patch: New patch.  Make ebbox 25%
  faster (according to the upstream author)
* debian/patches/README: Updated
* debian/patches/*.patch: Deleted svn:executable property


Modified: octave-epstk/trunk/debian/changelog
===================================================================
--- octave-epstk/trunk/debian/changelog	2007-05-30 14:21:13 UTC (rev 952)
+++ octave-epstk/trunk/debian/changelog	2007-05-30 14:33:37 UTC (rev 953)
@@ -1,3 +1,10 @@
+octave-epstk (2.2-5) unstable; urgency=low
+
+  * debian/patches/05_faster-ebbox.patch: New patch.  Make ebbox 25%
+    faster (according to the upstream author, thanks to Stefan Müller)
+
+ --
+
 octave-epstk (2.2-4) unstable; urgency=low
 
   * debian/install: Install m/*.inc files, such that edemo17 and edemo18


Property changes on: octave-epstk/trunk/debian/patches/02_axis-value-labels.patch
___________________________________________________________________
Name: svn:executable
   - *


Property changes on: octave-epstk/trunk/debian/patches/03_psd-path.patch
___________________________________________________________________
Name: svn:executable
   - *


Property changes on: octave-epstk/trunk/debian/patches/04_source-etc-epstk-conf.patch
___________________________________________________________________
Name: svn:executable
   - *

Added: octave-epstk/trunk/debian/patches/05_faster-ebbox.patch
===================================================================
--- octave-epstk/trunk/debian/patches/05_faster-ebbox.patch	                        (rev 0)
+++ octave-epstk/trunk/debian/patches/05_faster-ebbox.patch	2007-05-30 14:33:37 UTC (rev 953)
@@ -0,0 +1,35 @@
+diff -Nur epstk22/m/ebbox.m epstk22.new/m/ebbox.m
+--- epstk22/m/ebbox.m	2007-05-21 11:48:37.000000000 +0200
++++ epstk22.new/m/ebbox.m	2007-05-30 16:21:34.000000000 +0200
+@@ -37,12 +37,14 @@
+     epsFileName=eFileName;
+   end
+   headsize=500;
++  % read file
+   epsFile=fopen(epsFileName,'rb');
+-  data=fread(epsFile,headsize,'uchar');
++  [data n]=fread(epsFile,inf,'uchar');
+   fclose(epsFile);
+-  head=setstr(data');
+-  pos=findstr(head,'BoundingBox:')+12;
+-  currentBBox=sscanf(head(pos(1):pos(1)+40),'%f',4)';
++  % get head
++  head=setstr(data(1:headsize)');
++  pos=findstr(head,'BoundingBox:');
++  currentBBox=sscanf(head(pos(1)+12:pos(1)+40),'%f',4)';
+   if newBBox>=0
+     if size(newBBox,2)~=4
+       % autoresize
+@@ -65,12 +67,6 @@
+       newBBox=fix(newBBox);
+     end
+     % set new BBox
+-    epsFile=fopen(epsFileName,'rb');
+-    [data n]=fread(epsFile,inf,'uchar');
+-    fclose(epsFile);
+-    headsize=500;
+-    head=setstr(data(1:headsize)');
+-    pos=findstr(head,'BoundingBox:');
+     endpos=findstr(head(pos(1)+12:pos(1)+80),'%');
+     endpos=endpos+pos(1)+10;
+     epsFile=fopen(epsFileName,'wb');

Modified: octave-epstk/trunk/debian/patches/README
===================================================================
--- octave-epstk/trunk/debian/patches/README	2007-05-30 14:21:13 UTC (rev 952)
+++ octave-epstk/trunk/debian/patches/README	2007-05-30 14:33:37 UTC (rev 953)
@@ -16,3 +16,7 @@
 04_source-etc-epstk-conf
   author: Rafael Laboissiere <rafael at debian.org>
   description: Source /etc/epstk.conf in einit.m
+
+05_faster-ebbox
+  author: Rafael Laboissiere <rafael at debian.org>
+  description: Make ebbox 25% faster (according to the upstream author)




More information about the Pkg-octave-commit mailing list