Code

patches: Added octave-signal.dpatch.
[pkg-pfstools.git] / debian / patches / octave-signal.dpatch
diff --git a/debian/patches/octave-signal.dpatch b/debian/patches/octave-signal.dpatch
new file mode 100755 (executable)
index 0000000..e3f612c
--- /dev/null
@@ -0,0 +1,21 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## octave-signal.dpatch by Sebastian Harl <tokkee@debian.org>
+##
+## DP: pfsstat: Bail out with an error if octave-signal is not available.
+
+@DPATCH@
+
+--- a/src/octave/pfsstat
++++ b/src/octave/pfsstat
+@@ -33,6 +33,11 @@
+   error( "Expecting no parameters" ); 
+ endif
++if( 2 != exist( 'gausswin' ) )
++  error( "%s requires the 'signal' package - please install octave-signal\n", \
++      program_name () );
++endif
++
+ firstFrame = true;
+ while( true )
+   pin = pfsget( pin );