[gnuplot5] 01/01: Initial commit.

Anton Gladky gladk at moszumanska.debian.org
Fri Jul 11 21:44:03 UTC 2014


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

gladk pushed a commit to branch master
in repository gnuplot5.

commit e2f5e4f3efd9f62d8851e8195b10e16119ddf2fe
Author: Anton Gladky <gladk at debian.org>
Date:   Fri Jul 11 23:42:43 2014 +0200

    Initial commit.
---
 debian/README.Debian                         |  68 +++
 debian/TODO                                  |  16 +
 debian/changelog                             |   5 +
 debian/compat                                |   1 +
 debian/control                               | 153 ++++++
 debian/copyright                             |  93 ++++
 debian/fix_examples/fix_examples.diff        | 747 +++++++++++++++++++++++++++
 debian/fix_examples/replace_gz.py            |  55 ++
 debian/gnuplot5-doc.doc-base.gnuplot-pdf     |   8 +
 debian/gnuplot5-doc.docs                     |  13 +
 debian/gnuplot5-doc.examples                 |   2 +
 debian/gnuplot5-nox.install                  |   2 +
 debian/gnuplot5-nox.manpages                 |   1 +
 debian/gnuplot5-nox.menu                     |  11 +
 debian/gnuplot5-nox.postinst                 |  13 +
 debian/gnuplot5-nox.prerm                    |   9 +
 debian/gnuplot5-qt.install                   |   3 +
 debian/gnuplot5-qt.manpages                  |   1 +
 debian/gnuplot5-qt.menu                      |  11 +
 debian/gnuplot5-qt.postinst                  |  13 +
 debian/gnuplot5-qt.prerm                     |   9 +
 debian/gnuplot5-x11.install                  |   3 +
 debian/gnuplot5-x11.manpages                 |   1 +
 debian/gnuplot5-x11.menu                     |  11 +
 debian/gnuplot5-x11.postinst                 |  13 +
 debian/gnuplot5-x11.prerm                    |   9 +
 debian/gnuplot5.install                      |   2 +
 debian/gnuplot5.links                        |   1 +
 debian/patches/04_fix_libexecdir.diff        |  15 +
 debian/patches/05_default_gd_font.diff       |  15 +
 debian/patches/08_disable_demo_plugin.patch  |  40 ++
 debian/patches/08_disable_demo_plugin.patch~ |  25 +
 debian/patches/doc.patch                     |  38 ++
 debian/patches/series                        |   4 +
 debian/rules                                 |  79 +++
 debian/source/format                         |   1 +
 debian/tests/arrowstyle                      | 302 +++++++++++
 debian/tests/control                         |   2 +
 debian/tests/epslatex                        |  81 +++
 debian/tests/fillstyle                       |  79 +++
 debian/tests/test                            |  17 +
 debian/watch                                 |   2 +
 42 files changed, 1974 insertions(+)

diff --git a/debian/README.Debian b/debian/README.Debian
new file mode 100644
index 0000000..089f22d
--- /dev/null
+++ b/debian/README.Debian
@@ -0,0 +1,68 @@
+gnuplot for Debian
+==================
+
+Documentation
+-------------
+
+The full documentation including all examples, the info-pages and a
+tutorial has been split off to a separate gnuplot-doc package.
+
+You can also find useful information on the following websites:
+
+- the original FAQ:
+
+    http://gnuplot.sourceforge.net/faq/faq.html
+
+- not so Frequently Asked Questions:
+
+    http://t16web.lanl.gov/Kawano/gnuplot/index-e.html
+
+- Tutorial (in german)
+
+    http://www.we.fh-osnabrueck.de/fbwe/vorlesung/edv2/gplot/gplot.html
+
+- collection of websites with gnuplot-help/more tutorials
+
+    http://gnuplot.sourceforge.net/help.html
+
+
+SVGAlib
+-------
+
+I've dropped the svgalib-support for the following reasons:
+
+a) the SUID-bit has to be set which is a security risk
+b) the dependency on both svgalib and svgalib-dummy has to be crudely
+   hacked into the package
+c) all these tricks only have to be done to support graphics no one
+   uses on only one architecture :-(
+d) even upstream decided to disable svgalib by default
+
+
+libreadline
+-----------
+
+Yes, the built in readline of gnuplot is bad. However, libreadline
+cannot be used instead because it is licensed under the GPL, whereas
+gnuplot has special licenses (patches only). Distribution of those
+programs linked together is legally impossible but you may rebuild
+your own custom package with readline. Please don't file bugs telling
+me to use libreadline in gnuplot...
+
+Interfaces to other languages
+-----------------------------
+
+If you want to send gnuplot commands from inside your program, the
+following packages may help you (Beware: I haven't tested them!):
+
+Available as Debian package:
+
+  python-gnuplot
+
+Not available as Debian package:
+
+  interface to ANSI C: http://ndevilla.free.fr/gnuplot/
+
+Feel free to send me more information to be included in this place!
+
+ -- Cyril Bouthors <cyril at bouthors.org>, Fri, 31 Mar 2006 18:48:52 +0200
diff --git a/debian/TODO b/debian/TODO
new file mode 100644
index 0000000..21ada30
--- /dev/null
+++ b/debian/TODO
@@ -0,0 +1,16 @@
+ecrire aux mainteneurs pour le problème de license
+tagger le bug forwarded upstream
+retitle 75403 Unable to link gnuplot with libreadline because of
+   licensing issues
+
+faire un wget -m de http://gnuplot.info/ et le mettre ds debian
+
+- regression testing
+
+- use libeditline for commandline editing
+
+- write better documentation about "binary"-format, remove reference
+  to source-files... or tell upstream to do this :)
+
+- maybe move menu-entry to apps/Science (well, it's kinda both math
+  and science...)
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..304b392
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+gnuplot5 (5.0.0~rc+dfsg-1) unstable; urgency=medium
+
+  * Initial packaging. (Closes: #754506)
+
+ -- Anton Gladky <gladk at debian.org>  Fri, 11 Jul 2014 23:36:40 +0200
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..ec63514
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+9
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..34c5f8c
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,153 @@
+Source: gnuplot5
+Section: math
+Priority: optional
+Maintainer: Debian Science Team <debian-science-maintainers at lists.alioth.debian.org>
+Uploaders:
+ Anton Gladky <gladk at debian.org>
+Standards-Version: 3.9.5
+Build-Depends:
+ autoconf,
+ automake,
+ debhelper (>= 9),
+ dh-autoreconf,
+ libcairo2-dev,
+ libedit-dev,
+ libgd2-dev,
+ liblua5.1-dev,
+ libpango1.0-dev,
+ libpng-dev,
+ qt5-default,
+ qtbase5-dev-tools,
+ qttools5-dev-tools,
+ libqt5svg5-dev,
+ libx11-dev,
+ libxt-dev,
+ pkg-config,
+ texinfo,
+ texlive-fonts-recommended,
+ texlive-latex-base,
+ texlive-latex-extra,
+ texlive-latex-recommended,
+ zlib1g-dev
+Homepage: http://gnuplot.sourceforge.net/
+Vcs-Git: git://anonscm.debian.org/debian-science/packages/gnuplot5.git
+Vcs-Browser: http://anonscm.debian.org/gitweb/?p=debian-science/packages/gnuplot5.git
+XS-Testsuite: autopkgtest
+
+Package: gnuplot5
+Architecture: all
+Depends:
+ aglfn,
+ gnuplot5-qt | gnuplot5-x11 | gnuplot5-nox,
+ gnuplot-tex,
+ ${misc:Depends}
+Suggests:
+ gnuplot5-doc
+Description: Command-line driven interactive plotting program, version 5
+ Gnuplot is a portable command-line driven interactive data and function
+ plotting utility that supports lots of output formats, including drivers
+ for many printers, (La)TeX, (x)fig, Postscript, and so on. The X11-output
+ is packaged in gnuplot-x11.
+ .
+ Data files and self-defined functions can be manipulated by the internal
+ C-like language. Can perform smoothing, spline-fitting, or nonlinear fits,
+ and can work with complex numbers.
+ .
+ This package is for transition and to install a full-featured gnuplot
+ supporting the X11-output.
+
+Package: gnuplot5-doc
+Architecture: all
+Section: doc
+Depends:
+ ${misc:Depends}
+Description: Command-line driven interactive plotting program. Doc-package
+ Gnuplot is a portable command-line driven interactive data and function
+ plotting utility that supports lots of output formats, including drivers
+ for many printers, (La)TeX, (x)fig, Postscript, and so on. The X11-output
+ is packaged in gnuplot5-x11.
+ .
+ Data files and self-defined functions can be manipulated by the internal
+ C-like language. Can perform smoothing, spline-fitting, or nonlinear fits,
+ and can work with complex numbers.
+ .
+ This package contains the additional documentation.
+
+Package: gnuplot5-nox
+Architecture: any
+Depends:
+ gnuplot5,
+ ${misc:Depends},
+ ${shlibs:Depends}
+Recommends:
+ fonts-liberation,
+ groff
+Suggests:
+ gnuplot5-doc
+Description: Command-line driven interactive plotting program. No-X package
+ Gnuplot is a portable command-line driven interactive data and function
+ plotting utility that supports lots of output formats, including drivers
+ for many printers, (La)TeX, (x)fig, Postscript, and so on. The X11-output
+ is packaged in gnuplot5-x11. The QT-output is packaged in gnuplot5-qt.
+ .
+ Data files and self-defined functions can be manipulated by the internal
+ C-like language. Can perform smoothing, spline-fitting, or nonlinear fits,
+ and can work with complex numbers.
+ .
+ This package is for working without an X server.
+
+Package: gnuplot5-qt
+Architecture: any
+Depends:
+ gnuplot5,
+ ${misc:Depends},
+ ${shlibs:Depends}
+Suggests:
+ gnuplot5-doc
+Conflicts:
+ gnuplot5-x11
+Replaces:
+ gnuplot5-x11
+Description: Command-line driven interactive plotting program. QT-package
+ Gnuplot is a portable command-line driven interactive data and function
+ plotting utility that supports lots of output formats, including drivers
+ for many printers, (La)TeX, (x)fig, Postscript, and so on.
+ .
+ Data files and self-defined functions can be manipulated by the internal
+ C-like language. Can perform smoothing, spline-fitting, or nonlinear fits,
+ and can work with complex numbers.
+ .
+ This package contains the terminal driver that enables gnuplot to plot
+ images interactively under X11. Most users will want this, it is however
+ packaged separately so that low-end systems don't need X installed to use
+ gnuplot.
+ .
+ The package provides gnuplot5-x11 and gnuplot5-nox terminals plus an
+ additional QT-terminal for output (not default one).
+
+Package: gnuplot5-x11
+Architecture: any
+Depends:
+ gnuplot5,
+ ${misc:Depends},
+ ${shlibs:Depends}
+Conflicts:
+ gnuplot5-qt
+Replaces:
+ gnuplot5-qt
+Suggests:
+ gnuplot5-doc
+Description: Command-line driven interactive plotting program. X-package
+ Gnuplot is a portable command-line driven interactive data and function
+ plotting utility that supports lots of output formats, including drivers
+ for many printers, (La)TeX, (x)fig, Postscript, and so on. The X11-output
+ is packaged in gnuplot5-x11.
+ .
+ Data files and self-defined functions can be manipulated by the internal
+ C-like language. Can perform smoothing, spline-fitting, or nonlinear fits,
+ and can work with complex numbers.
+ .
+ This package contains the terminal driver that enables gnuplot to plot
+ images interactively under X11. Most users will want this, it is however
+ packaged separately so that low-end systems don't need X installed to use
+ gnuplot.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..ab1fdca
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,93 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Source: http://gnuplot.sourceforge.net/
+
+Files: *
+Copyright: Copyright 1986-1993, 1998, 2004 Thomas Williams, Colin Kelley
+License: other
+ Permission to use, copy, and distribute this software and its
+ documentation for any purpose with or without fee is hereby granted,
+ .
+ provided that the above copyright notice appear in all copies and that
+ both that copyright notice and this permission notice appear in supporting
+ documentation.
+ .
+ Permission to modify the software is granted, but not the right to
+ distribute the complete modified source code.  Modifications are to be
+ distributed as patches to the released version.  Permission to distribute
+ binaries produced by compiling modified sources is granted, provided you
+   1. distribute the corresponding source modifications from the released
+      version in the form of a patch file along with the binaries,
+   2. add special version identification to distinguish your version in
+      addition to the base release version number,
+   3. provide your name and address as the primary contact for the support
+      of your modified version, and
+   4. retain our contact information in regard to use of the base software.
+ Permission to distribute the released version of the source code along
+ with corresponding source modifications in the form of a patch file is
+ granted with same provisions 2 through 4 for binary distributions.
+ .
+ This software is provided "as is" without express or implied warranty to
+ the extent permitted by applicable law.
+
+Files: src/wxterminal/*
+Copyright: Copyright 2005,2006   Timothee Lecomte
+License: other
+ Permission to use, copy, and distribute this software and its
+ documentation for any purpose with or without fee is hereby granted,
+ .
+ provided that the above copyright notice appear in all copies and that
+ both that copyright notice and this permission notice appear in supporting
+ documentation.
+ .
+ Permission to modify the software is granted, but not the right to
+ distribute the complete modified source code.  Modifications are to be
+ distributed as patches to the released version.  Permission to distribute
+ binaries produced by compiling modified sources is granted, provided you
+   1. distribute the corresponding source modifications from the released
+      version in the form of a patch file along with the binaries,
+   2. add special version identification to distinguish your version in
+      addition to the base release version number,
+   3. provide your name and address as the primary contact for the support
+      of your modified version, and
+   4. retain our contact information in regard to use of the base software.
+ Permission to distribute the released version of the source code along
+ with corresponding source modifications in the form of a patch file is
+ granted with same provisions 2 through 4 for binary distributions.
+ .
+ This software is provided "as is" without express or implied warranty to
+ the extent permitted by applicable law.
+ .
+ Alternatively, the contents of this file may be used under the terms of
+ the GNU General Public License Version 2 or later (the "GPL"), in which
+ case the provisions of GPL are applicable instead of those above. If you
+ wish to allow use of your version of this file only under the terms of the
+ GPL and not to allow others to use your version of this file under the
+ above gnuplot license, indicate your decision by deleting the provisions
+ above and replace them with the notice and other provisions required by
+ the GPL. If you do not delete the provisions above, a recipient may use
+ your version of this file under either the GPL or the gnuplot license.
+ .
+ On Debian systems, the full text of the GNU General Public
+ License version 2 can be found in the file
+ `/usr/share/common-licenses/GPL-2'.
+
+Files: lisp/*
+Copyright:
+ gnuplot.el: (C) 1998 Phil Type and Bruce Ravel, 1999-2002 Bruce Ravel
+ gnuplot-gui.el: (C) 1998-2000 Bruce Ravel
+ info-look.20.2.el: (C) 1995,1996,1997 Ralph Schleicher.
+ info-look.20.3.el: (C) 1995,1996,1997, 1998 Free Software Foundation, Inc.
+License: GPL-2+.
+ This program is free software; you can redistribute it and/or modify it
+ under the terms of the GNU General Public License as published by the Free
+ Software Foundation; either version 2 of the License, or (at your option)
+ any later version.
+ .
+ This program is distributed in the hope that it will be useful, but
+ WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
+ or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
+ for more details.
+ .
+ On Debian systems, the full text of the GNU General Public
+ License version 2 can be found in the file
+ `/usr/share/common-licenses/GPL-2'.
diff --git a/debian/fix_examples/fix_examples.diff b/debian/fix_examples/fix_examples.diff
new file mode 100644
index 0000000..a17f88c
--- /dev/null
+++ b/debian/fix_examples/fix_examples.diff
@@ -0,0 +1,747 @@
+diff --git a/all.dem b/all.dem
+index 863a6c8..050cebf 100644
+--- a/all.dem
++++ b/all.dem
+@@ -41,8 +41,8 @@ print "******************** file mgr.dem ********************"
+ load "mgr.dem"
+ reset
+ 
+-print "******************** file fit.dem ********************"
+-load "fit.dem"
++print "******************** file <zcat fit.dem.gz ********************"
++load "<zcat fit.dem.gz"
+ reset
+ 
+ print "******************** file param.dem ********************"
+@@ -53,8 +53,8 @@ print "******************** file polar.dem ********************"
+ load "polar.dem"
+ reset
+ 
+-print "******************** file poldat.dem ********************"
+-load "poldat.dem"
++print "******************** file <zcat poldat.dem.gz ********************"
++load "<zcat poldat.dem.gz"
+ reset
+ 
+ print "******************** file multiplt.dem ********************"
+@@ -62,8 +62,8 @@ load "multiplt.dem"
+ load "layout.dem"
+ reset
+ 
+-print "******************** file surface1.dem ********************"
+-load "surface1.dem"
++print "******************** file <zcat surface1.dem.gz ********************"
++load "<zcat surface1.dem.gz"
+ reset
+ 
+ print "******************** file discrete.dem ********************"
+@@ -83,16 +83,16 @@ load "world.dem"
+ load "world2.dem"
+ reset
+ 
+-print "******************** file prob.dem ********************"
+-load "prob.dem"
++print "******************** file <zcat prob.dem.gz ********************"
++load "<zcat prob.dem.gz"
+ reset
+ 
+-print "******************** file prob2.dem ********************"
+-load "prob2.dem"
++print "******************** file <zcat prob2.dem.gz ********************"
++load "<zcat prob2.dem.gz"
+ reset
+ 
+-print "******************** file random.dem ********************"
+-load "random.dem"
++print "******************** file <zcat random.dem.gz ********************"
++load "<zcat random.dem.gz"
+ reset
+ 
+ print "******************** file smooth.dem ********************"
+@@ -119,16 +119,16 @@ print "******************** file singulr.dem ********************"
+ load "singulr.dem"
+ reset
+ 
+-print "******************** file airfoil.dem ********************"
+-load "airfoil.dem"
++print "******************** file <zcat airfoil.dem.gz ********************"
++load "<zcat airfoil.dem.gz"
+ reset
+ 
+ print "******************** file surface2.dem ********************"
+ load "surface2.dem"
+ reset
+ 
+-print "******************** file contours.dem ********************"
+-load "contours.dem"
++print "******************** file <zcat contours.dem.gz ********************"
++load "<zcat contours.dem.gz"
+ reset
+ 
+ print "******************** file multimsh.dem ********************"
+@@ -155,12 +155,12 @@ print "********************** file rgb_variable.dem *********************"
+ load "rgb_variable.dem"
+ reset
+ 
+-print "********************** file pm3d.dem *********************"
+-load "pm3d.dem"
++print "********************** file <zcat pm3d.dem.gz *********************"
++load "<zcat pm3d.dem.gz"
+ reset
+ 
+-print "********************** file pm3dcolors.dem *********************"
+-load "pm3dcolors.dem"
++print "********************** file <zcat pm3dcolors.dem.gz *********************"
++load "<zcat pm3dcolors.dem.gz"
+ reset
+ 
+ print "********************** file heatmaps.dem *********************"
+@@ -217,8 +217,8 @@ load "histograms2.dem"
+ reset
+ 
+ print "**********************    Image formats    *********************"
+-load "image.dem"
+-load "image2.dem"
++load "<zcat image.dem.gz"
++load "<zcat image2.dem.gz"
+ load "rgbalpha.dem"
+ reset
+ 
+@@ -242,8 +242,8 @@ print "********************** file ellipses_style.dem *********************"
+ load "ellipses_style.dem"
+ reset
+ 
+-print "********************** file key.dem *********************"
+-load "key.dem"
++print "********************** file <zcat key.dem.gz *********************"
++load "<zcat key.dem.gz"
+ reset
+ 
+ print "********************** file borders.dem *********************"
+diff --git a/animate.dem b/animate.dem
+index 9a1f031..db669f0 100644
+--- a/animate.dem
++++ b/animate.dem
+@@ -1,7 +1,7 @@
+ #
+ # $Id: animate.dem,v 1.7 2006/01/07 23:21:02 sfeam Exp $
+ #
+-# Demo animation, tumbling around 'glass.dat'.
++# Demo animation, tumbling around '<zcat glass.dat.gz'.
+ #
+ # History:
+ #   - 1. 1. 2006 Dan Sebald:  Defined variables for more generic rotate
+@@ -20,7 +20,7 @@ zrot_delta = 10
+ xview(xrot)=(50.+30.*sin((xrot%180)/180.*pi))
+ zview(zrot)=(60.+45.*sin(zrot/180.*pi))
+ set view xview(xrot),zview(zrot)
+-splot "glass.dat"
++splot "<zcat glass.dat.gz"
+ 
+ limit_iterations=40 # limits number of iterations if nonzero
+ 
+diff --git a/animate2.dem b/animate2.dem
+index d129b72..7613a27 100644
+--- a/animate2.dem
++++ b/animate2.dem
+@@ -46,7 +46,7 @@ set view xview(xrot), zview(zrot), 2, 1
+ set size square
+ 
+ splot cos(u)*cos(v),cos(u)*sin(v),sin(u) notitle with lines lt 5, \
+-      'world.dat' notitle with lines lt 2 lw 3
++      '<zcat world.dat.gz' notitle with lines lt 2 lw 3
+ 
+ iteration_count=0
+ xrot =(xrot+xrot_delta)%360
+diff --git a/circles.dem b/circles.dem
+index b8ab599..9598b6c 100644
+--- a/circles.dem
++++ b/circles.dem
+@@ -38,7 +38,7 @@ set border
+ 
+ set yrange [-70:*]
+ 
+-plot 'world.dat' with filledcurves lc rgb "light-green" , \
++plot '<zcat world.dat.gz' with filledcurves lc rgb "light-green" , \
+      'world.cor' using 1:2:(7.*rand(0)) with circles lt 3 \
+                  fs transparent solid 0.5 noborder
+ 
+@@ -74,7 +74,7 @@ keyr = 25.
+ set obj 20 rect from graph 0,0 to graph 1,1 behind fc rgb "cyan" fs solid 0.2
+ set angle degree
+ 
+-plot 'world.dat' with filledcurves lc rgb "light-green" notit, \
++plot '<zcat world.dat.gz' with filledcurves lc rgb "light-green" notit, \
+      'energy_circles.dat' using 2:1:(sqrt($9)*r):6:($6+$7):5 \
+             with circles lc pal fs solid 1.0 border rgb "gray",\
+      for [i=0:types-1] '' using (keyx):(keyy):(keyr-5):(-(i+1)*360./types):(-(i)*360./types):5 \
+@@ -111,7 +111,7 @@ unset key
+ unset border
+ set yrange [] reverse
+ 
+-plot 'lena.rgb' binary array=(128,128) dx=4 dy=4 format='%uchar' with rgbimage, \
++plot '<zcat lena.rgb.gz' binary array=(128,128) dx=4 dy=4 format='%uchar' with rgbimage, \
+      'lena-keypoints.bin' binary format='%double' with circles lc rgb "yellow"
+ 
+ pause -1 "Hit return to continue"
+@@ -123,7 +123,7 @@ set title "Delaunay triangulation of Hemisphere points, some empty circles in re
+ unset key
+ 
+ plot 'empty-circles.dat' with circles lw 2 lc rgb "red", \
+-     'delaunay-edges.dat' with lines lc rgb "forest-green", \
+-     'hemisphr.dat' u (100*$1):(100*$2) with points pt 7 lc rgb "black"
++     '<zcat delaunay-edges.dat.gz' with lines lc rgb "forest-green", \
++     '<zcat hemisphr.dat.gz' u (100*$1):(100*$2) with points pt 7 lc rgb "black"
+ 
+ pause -1 "Hit return to continue"
+diff --git a/ellipse.dem b/ellipse.dem
+index fa20820..16b4e5e 100644
+--- a/ellipse.dem
++++ b/ellipse.dem
+@@ -1,7 +1,7 @@
+ #
+ # Ethan A Merritt - Feb 2007
+ # This demo requires support for 'set object ellipse'
+-# Also it uses the file 'random.tmp' created by random.dem
++# Also it uses the file '<zcat random.tmp.gz' created by <zcat random.dem.gz
+ #
+ if ((GPVAL_VERSION == 4.3 || GPVAL_VERSION == 4.2) \
+ &&  (!strstrt(GPVAL_COMPILE_OPTIONS,"+OBJECTS"))) \
+@@ -27,7 +27,7 @@ set object 1 ellipse center 1.5,1.0 size 2.,4. angle 20. front fillstyle empty b
+ set obj 2 ellipse center 1.5, 1  size 6, 12  angle 20 front fs empty bo 3
+ 
+ A = pi/9.
+-plot 'random.tmp' using (1.5 + $1*cos(A)-2.*$2*sin(A)):(1.0 + $1*sin(A)+2.*$2*cos(A)) with dots
++plot '<zcat random.tmp.gz' using (1.5 + $1*cos(A)-2.*$2*sin(A)):(1.0 + $1*sin(A)+2.*$2*cos(A)) with dots
+ 
+ pause -1 "Hit return to continue"
+ 
+diff --git a/fillcrvs.dem b/fillcrvs.dem
+index 68ef4ee..1d129c4 100644
+--- a/fillcrvs.dem
++++ b/fillcrvs.dem
+@@ -63,7 +63,7 @@ pause -1 'Press Return to continue'
+ 
+ reset
+ 
+-set title "world.dat plotted with filledcurves"
++set title "<zcat world.dat.gz plotted with filledcurves"
+ set format x ""
+ set format y ""
+ set grid layerdefault linewidth 0.5 
+@@ -71,7 +71,7 @@ set object  1 rect from graph 0, 0 to graph 1, 1 behind fc  rgb "#afffff" fillst
+ set xrange [ -180.000 : 180.000 ]
+ set yrange [ -70.0000 : 80.0000 ]
+ set lmargin  1
+-plot 'world.dat' with filledcurve notitle fs solid 1.0 lc rgb 'dark-goldenrod'
++plot '<zcat world.dat.gz' with filledcurve notitle fs solid 1.0 lc rgb 'dark-goldenrod'
+ pause -1 'Press Return to continue'
+ 
+ reset
+diff --git a/hidden.dem b/hidden.dem
+index 07e895d..0938c96 100644
+--- a/hidden.dem
++++ b/hidden.dem
+@@ -48,7 +48,7 @@ set style data lines
+ # autoranging loses the verticals
+ set xrange [0:15]
+ set yrange [0:15]
+-splot "glass.dat" using 1
++splot "<zcat glass.dat.gz" using 1
+ pause -1 "Hit return to continue (6)"
+ 
+ set view 50
+diff --git a/kdensity2d.dem b/kdensity2d.dem
+index 697de2a..9403d5c 100644
+--- a/kdensity2d.dem
++++ b/kdensity2d.dem
+@@ -1,8 +1,8 @@
+-# Run 'random.dem' to generate 'random.tmp'
++# Run '<zcat random.dem.gz' to generate '<zcat random.tmp.gz'
+ 
+ reset
+ set title "How to plot a kernel density estimate for this 2D dataset?"
+-plot 'random.tmp' using 1:2
++plot '<zcat random.tmp.gz' using 1:2
+ 
+ pause -1 "Press Return to continue - the plot may take some time to appear"
+ 
+@@ -11,7 +11,7 @@ set palette defined (0 'white', 1 'red')
+ set dgrid3d 50,50 gauss kdensity
+ set title "set dgrid3d 50,50 gauss kdensity"
+ 
+-splot 'random.tmp' using 1:2:(1) with pm3d
++splot '<zcat random.tmp.gz' using 1:2:(1) with pm3d
+ 
+ pause -1 "Press Return to continue - the plot may take some time to appear"
+ set dgrid3d 50,50 gauss kdensity 0.1
+diff --git a/molecule.dem b/molecule.dem
+index ef77958..2abaed6 100644
+--- a/molecule.dem
++++ b/molecule.dem
+@@ -6,8 +6,8 @@ unset xtics
+ unset ytics
+ unset ztics
+ 
+-splot 'GM1_sugar.pdb' using 6:7:8 with points lt 3 pt 7 ps 3 notitle, \
+-      'GM1_bonds.r3d' using 1:2:3:($5-$1):($6-$2):($7-$3) with vectors nohead lw 3 lt 1 \
++splot '<zcat GM1_sugar.pdb.gz' using 6:7:8 with points lt 3 pt 7 ps 3 notitle, \
++      '<zcat GM1_bonds.r3d.gz' using 1:2:3:($5-$1):($6-$2):($7-$3) with vectors nohead lw 3 lt 1 \
+       title "GM1 pentasaccharide"
+ 
+ pause -1 "Hit return to continue"
+diff --git a/multimsh.dem b/multimsh.dem
+index 03b7a88..3fe62eb 100644
+--- a/multimsh.dem
++++ b/multimsh.dem
+@@ -9,40 +9,40 @@ set yrange [-4:4]
+ set zrange [-2:2]
+ set style data line
+ set title "Demo of multiple mesh per file capability - Digitized Blue Whale"
+-splot "whale.dat"
++splot "<zcat whale.dat.gz"
+ pause -1 "Press Return"
+ set title "Demo of multiple mesh per file capability - Digitized Blue Whale"
+ set xlabel "Mesh or Network 0"
+-splot "whale.dat" index 0
++splot "<zcat whale.dat.gz" index 0
+ pause -1 "Press Return"
+ 
+ set autoscale z
+ set xlabel "Mesh or Network 6"
+ set autoscale z
+-splot "whale.dat" index 6 using 3:2:1 
++splot "<zcat whale.dat.gz" index 6 using 3:2:1 
+ pause -1 "Press Return"
+ 
+ set zrange [-2:2]
+ set xlabel "Mesh or Network 12"
+-splot "whale.dat" index 12 with points
++splot "<zcat whale.dat.gz" index 12 with points
+ pause -1 "Press Return"
+ 
+ set xlabel "Mesh or Network 13"
+-splot "whale.dat" i 13
++splot "<zcat whale.dat.gz" i 13
+ pause -1 "Press Return - A Loop over Indices could be done with reread"
+ 
+ #  #file "loop"
+ #  maxmsh = 16
+ #  ind = (ind + 1)%maxmsh
+-#  splot "whale.dat" i ind
++#  splot "<zcat whale.dat.gz" i ind
+ #  reread "loop"
+ 
+ set xlabel "Mesh or Network 4"
+-splot "whale.dat" i 4
++splot "<zcat whale.dat.gz" i 4
+ pause -1 "Press Return"
+ 
+ set xlabel "Mesh or Network 5"
+-splot "whale.dat" i 5
++splot "<zcat whale.dat.gz" i 5
+ pause -1 "Press Return"
+ 
+ reset
+diff --git a/orbits.dem b/orbits.dem
+index 86f1ea9..3cbf52d 100644
+--- a/orbits.dem
++++ b/orbits.dem
+@@ -22,7 +22,7 @@ set datafile separator "\t"
+ if (strstrt(GNUTERM,"wxt")) \
+     set label 1 "Use Ctrl+mousewheel to zoom!" at graph 0.5,0.05 center 
+ 
+-fn = 'orbital_elements.dat'
++fn = '<zcat orbital_elements.dat.gz'
+ 
+ # functions to calculate the parameters of the ellipses from orbital elements
+ # the actual 3D orbits are projected onto the ecliptic plane
+diff --git a/pointsize.dem b/pointsize.dem
+index 64a81e7..55a14e0 100644
+--- a/pointsize.dem
++++ b/pointsize.dem
+@@ -13,7 +13,7 @@ unset ztics
+ # plot a 2D map with locations marked by variable sized points
+ #
+ set title "plot with variable size points"
+-plot 'world.dat' with lines lt 3, \
++plot '<zcat world.dat.gz' with lines lt 3, \
+      'world.cor' using 1:2:(5.*rand(0)) with points lt 1 pt 6 ps variable
+ pause -1 "Hit return to continue"
+ 
+@@ -21,7 +21,7 @@ pause -1 "Hit return to continue"
+ set title "splot with variable size points\nit is possible to specify size and color separately"
+ set view map
+ unset hidden3d
+-splot 'world.dat' using 1:2:(0) with lines lt 3, \
++splot '<zcat world.dat.gz' using 1:2:(0) with lines lt 3, \
+       'world.cor' using 1:2:(0.5-rand(0)):(5.*rand(0)) with points pt 5 ps var lt palette
+ pause -1 "Hit return to continue"
+ 
+@@ -38,7 +38,7 @@ set isosamples 9
+ set urange [-90:90]
+ set vrange [0:360]
+ splot cos(u)*cos(v),cos(u)*sin(v),sin(u) with lines lt 5,\
+-      'world.dat' with lines lt 3, \
++      '<zcat world.dat.gz' with lines lt 3, \
+       'world.cor' using 1:2:(1):(5.*rand(0)) with points lt 1 pt 6 ps variable
+ pause -1 "Hit return to continue"
+ 
+@@ -52,7 +52,7 @@ set arrow from 0,0,-1.2 to 0,0,1.2 lt 5 lw 2
+ set arrow from -1.2, 0, 0 to 1.2, 0, 0 nohead lt 5 lw 1 
+ set arrow from 0, -1.2, 0 to 0, 1.2, 0 nohead lt 5 lw 1
+ splot cos(u)*cos(v),-cos(u)*sin(v),sin(u) with lines lt 5,\
+-      'world.dat' u 1:2:(1.001) with lines lt 3, \
++      '<zcat world.dat.gz' u 1:2:(1.001) with lines lt 3, \
+       'world.cor' using 1:2:(1):(5.*rand(0))  with points lt 1 pt 6 ps var
+ pause -1 "Hit return to continue"
+ 
+diff --git a/rectangle.dem b/rectangle.dem
+index 60d8a03..689c4f2 100644
+--- a/rectangle.dem
++++ b/rectangle.dem
+@@ -44,7 +44,7 @@ pause -1 "Hit return to continue"
+ reset
+ 
+ #
+-# Requires data file "using.dat" from this directory,
++# Requires data file "<zcat using.dat.gz" from this directory,
+ # so change current working directory to this directory before running.
+ #
+ 
+@@ -60,9 +60,9 @@ set obj rect from 3, graph 0 to 4, graph 1
+ set obj rect from 5, graph 0 to 6, graph 1
+ set obj rect from 7, graph 0 to 8, graph 1
+ 
+-plot 'using.dat' using 3:4 title "Logged in" with impulses,\
+-     'using.dat' using 3:5 t "Load average" with points,\
+-     'using.dat' using 3:6 t "%CPU used" with lines
++plot '<zcat using.dat.gz' using 3:4 title "Logged in" with impulses,\
++     '<zcat using.dat.gz' using 3:5 t "Load average" with points,\
++     '<zcat using.dat.gz' using 3:6 t "%CPU used" with lines
+ 
+ pause -1 "Hit return to continue"
+ 
+diff --git a/rgbalpha.dem b/rgbalpha.dem
+index 9d355f7..8a0c8f5 100644
+--- a/rgbalpha.dem
++++ b/rgbalpha.dem
+@@ -18,7 +18,7 @@ set yrange [ 0. : 128. ]
+ # Alpha =  linear gradient on x
+ 
+ plot 100.*(.4+sin(x/5.)/(x/5.)) lw 5 title 'solid line', \
+-     'lena.rgb' binary array=(128,128) format="%uchar" flipy using 1:2:3:(2.*column(0)) \
++     '<zcat lena.rgb.gz' binary array=(128,128) format="%uchar" flipy using 1:2:3:(2.*column(0)) \
+                 with rgbalpha title "Lena with linear\nalpha gradient"
+ 
+ pause -1 "Hit return to continue"
+@@ -28,7 +28,7 @@ pause -1 "Hit return to continue"
+ focus(x,y) = ((column(0)-x)**2 + (column(-1)-(127-y))**2) > 400 ? 0 : 255
+ 
+ plot 100.*(.4+sin(x/5.)/(x/5.)) lw 5 title 'solid line', \
+-     'lena.rgb' binary array=(128,128) format="%uchar" flipy using 1:2:3:(focus(70,50)) \
++     '<zcat lena.rgb.gz' binary array=(128,128) format="%uchar" flipy using 1:2:3:(focus(70,50)) \
+                 with rgbalpha title "Lena with circular mask"
+ 
+ pause -1 "Hit return to continue"
+diff --git a/scatter.dem b/scatter.dem
+index 6f1eb45..cb1424a 100644
+--- a/scatter.dem
++++ b/scatter.dem
+@@ -13,30 +13,30 @@ set parametric
+ set style data points
+ set xlabel "data style point - no dgrid"
+ set key box
+-splot "hemisphr.dat"
++splot "<zcat hemisphr.dat.gz"
+ pause -1 "Hit return to continue (1)"
+ 
+ set dgrid3d 10,10,1
+ set xlabel " data style lines, dgrid3d 10,10,1"
+ set style data lines
+-splot "hemisphr.dat"
++splot "<zcat hemisphr.dat.gz"
+ pause -1 "Hit return to continue (2)"
+ 
+ set dgrid3d ,,4
+ set xlabel " data style lines, dgrid3d ,,4 "
+ set style data lines
+-splot "hemisphr.dat"
++splot "<zcat hemisphr.dat.gz"
+ pause -1 "Hit return to continue (3)"
+ 
+ set dgrid3d ,,16
+ set xlabel " data style lines, dgrid3d ,,16"
+ set style data lines
+-splot "hemisphr.dat"
++splot "<zcat hemisphr.dat.gz"
+ pause -1 "Hit return to continue (4)"
+ 
+ set contour
+ set xlabel "data style lines, dgrid3d ,,16, contour"
+-splot "hemisphr.dat"
++splot "<zcat hemisphr.dat.gz"
+ pause -1 "Hit return to continue (5)"
+ 
+ unset dgrid3d
+diff --git a/singulr.dem b/singulr.dem
+index 76d0d74..daa0750 100644
+--- a/singulr.dem
++++ b/singulr.dem
+@@ -163,14 +163,14 @@ unset hidden3d
+ set ticslevel 0.
+ set view 50,15	#HBB: ,1,1.7
+ set title "Klein bottle, glassblowers' version (look-through)"
+-splot "klein.dat"
++splot "<zcat klein.dat.gz"
+ pause -1 "Hit return to continue (19)"
+ 
+ 
+ set hidden3d
+ set view 70,305
+ set title "Klein bottle, glassblowers' version (solid)"
+-splot "klein.dat"
++splot "<zcat klein.dat.gz"
+ pause -1 "Hit return to continue (20)"
+ 
+ reset
+diff --git a/smooth.dem b/smooth.dem
+index 86c47f7..417d4d3 100644
+--- a/smooth.dem
++++ b/smooth.dem
+@@ -6,7 +6,7 @@ set zeroaxis
+ set title "Uniform Distribution"
+ set key top right
+ set boxwidth 0.05
+-plot [-0.1:1.1][-0.4:1.5] "random-points" u 1:(0.25*rand(0)-.35) t '', \
++plot [-0.1:1.1][-0.4:1.5] "<zcat random-points.gz" u 1:(0.25*rand(0)-.35) t '', \
+      "" u (bin($1,0.05)):(20/300.) s f t 'smooth frequency' w boxes, \
+      "" u 1:(1/300.) s cumul t 'smooth cumulative'
+ pause -1 "Hit enter to continue"
+@@ -16,7 +16,7 @@ pause -1 "Hit enter to continue"
+ set title "Normal Distribution"
+ set key top left
+ set boxwidth 0.05
+-plot "random-points" u 2:(0.25*rand(0)-.35) t '', \
++plot "<zcat random-points.gz" u 2:(0.25*rand(0)-.35) t '', \
+      "" u (bin($2,0.05)):(20/300.) s f t 'smooth frequency' w boxes, \
+      "" u 2:(1/300.) s cumul t 'smooth cumulative'
+ pause -1 "Hit enter to continue"
+@@ -26,7 +26,7 @@ pause -1 "Hit enter to continue"
+ set title "Lognormal Distribution"
+ set key top right
+ set boxwidth 0.1
+-plot [0:] "random-points" u 3:(0.25*rand(0)-.35) t '', \
++plot [0:] "<zcat random-points.gz" u 3:(0.25*rand(0)-.35) t '', \
+     "" u (bin($3,0.1)):(10/300.) s f t 'smooth frequency' w boxes, \
+     "" u 3:(1/300.) s cumul t 'smooth cumulative'
+ pause -1 "Hit enter to continue"
+@@ -36,7 +36,7 @@ pause -1 "Hit enter to continue"
+ set title "Mixed Distribution (Lognormal with shifted Gaussian)"
+ set key top right
+ set boxwidth 0.1
+-plot "random-points" u 4:(0.25*rand(0)-.35) t '', \
++plot "<zcat random-points.gz" u 4:(0.25*rand(0)-.35) t '', \
+      "" u (bin($4,0.1)):(10/300.) s f t 'smooth frequency' w boxes, \
+      "" u 4:(1/300.) s cumul t 'smooth cumulative'
+ pause -1 "Hit enter to continue"
+diff --git a/starmap.dem b/starmap.dem
+index 830ec6e..04ba344 100644
+--- a/starmap.dem
++++ b/starmap.dem
+@@ -14,7 +14,7 @@ set colorbox horiz user origin .1,.1 size .8,.04
+ set title "Gliese star catalog - 7 parsec neighborhood centered on Earth"
+ set cblabel "Luminosity" offset 0,1
+ #
+-splot 'nearmap.csv' using 5:6:7:11 with points pt 6 ps 2 pal notitle, \
++splot '<zcat nearmap.csv.gz' using 5:6:7:11 with points pt 6 ps 2 pal notitle, \
+       ''            using 5:6:7:11 with points pt 7 ps 1 pal notitle, \
+       '' using 5:6:7:2 with labels font "Helvetica,9" left \
+ 	   point pt 0 offset 1,0 notitle
+diff --git a/stats.dem b/stats.dem
+index 86392a5..558a3da 100644
+--- a/stats.dem
++++ b/stats.dem
+@@ -13,14 +13,14 @@ set offset 0,0,.5,.5
+ set autoscale fix
+ set key left Left
+ 
+-stats 'orbital_elements.dat' index 1 using 2 prefix "A"
++stats '<zcat orbital_elements.dat.gz' index 1 using 2 prefix "A"
+ 
+ set arrow 1 from A_index_min, graph 0.1 to A_index_min, A_min fill
+ set arrow 2 from A_index_max, graph 0.9 to A_index_max, A_max fill
+ set label 1 at A_index_min, graph 0.1 "min" center offset 0,-1
+ set label 2 at A_index_max, graph 0.9 "max" center offset 0,1
+ 
+-plot 'orbital_elements.dat' index 1 using 0:2 title "  Data" lw 2, \
++plot '<zcat orbital_elements.dat.gz' index 1 using 0:2 title "  Data" lw 2, \
+      A_mean title "  Mean"
+ 
+ pause -1 "Hit return to continue"
+@@ -29,14 +29,14 @@ set title "Use of stats command to find min/max/mean before plotting\nTwo data c
+ 
+ f(x) = log(1+x)
+ 
+-stats 'orbital_elements.dat' index 1 using (f($0)):2 prefix "B"
++stats '<zcat orbital_elements.dat.gz' index 1 using (f($0)):2 prefix "B"
+ 
+ set arrow 1 from B_pos_min_y, graph 0.1 to B_pos_min_y, B_min_y fill
+ set arrow 2 from B_pos_max_y, graph 0.9 to B_pos_max_y, B_max_y fill
+ set label 1 at B_pos_min_y, graph 0.1 "min" center offset 0,-1
+ set label 2 at B_pos_max_y, graph 0.9 "max" center offset 0,1
+ 
+-plot 'orbital_elements.dat' index 1 using (f($0)):2 title "  Data" lw 2, \
++plot '<zcat orbital_elements.dat.gz' index 1 using (f($0)):2 title "  Data" lw 2, \
+      B_mean_y title "  Mean", \
+      B_slope * x + B_intercept title "Linear fit"
+ 
+diff --git a/steps.dem b/steps.dem
+index 0f15dc9..160cf65 100644
+--- a/steps.dem
++++ b/steps.dem
+@@ -17,7 +17,7 @@ pause -1 "Hit return for demonstration of automatic histogram creation"
+ set title "Histogram built from unsorted data by 'smooth frequency'"
+ set ylabel 'counts per bin'
+ set xlabel 'bins'
+-plot 'hemisphr.dat' u (floor($1*20)):(1) smooth frequency with histeps
++plot '<zcat hemisphr.dat.gz' u (floor($1*20)):(1) smooth frequency with histeps
+ unset xlabel
+ unset ylabel
+ 
+diff --git a/triangle.dat b/triangle.dat
+index a496168..09fb096 100644
+--- a/triangle.dat
++++ b/triangle.dat
+@@ -1,4 +1,4 @@
+-# pm3d demo - datafile with different nb of points in scans and options
++# <zcat pm3d.dem.gzo - datafile with different nb of points in scans and options
+ # set pm3d flush [begin | center | end]
+ 
+ 0 0 1
+diff --git a/using.dem b/using.dem
+index 66b46dd..742a1cc 100644
+--- a/using.dem
++++ b/using.dem
+@@ -1,15 +1,15 @@
+ #
+ # $Id: using.dem,v 1.6 2003/10/28 05:35:54 sfeam Exp $
+ #
+-# Requires data file "using.dat" from this directory,
++# Requires data file "<zcat using.dat.gz" from this directory,
+ # so change current working directory to this directory before running.
+ #
+ 
+ set title "Convex     November 1-7 1989    Circadian"
+ set key left box
+ set xrange[-1:24]
+-plot 'using.dat' using 2:4 title "Logged in" with impulses,\
+-     'using.dat' using 2:4 title "Logged in" with points
++plot '<zcat using.dat.gz' using 2:4 title "Logged in" with impulses,\
++     '<zcat using.dat.gz' using 2:4 title "Logged in" with points
+ pause -1 "Hit return to continue"
+ 
+ set xrange [1:8]
+@@ -17,9 +17,9 @@ set xrange [1:8]
+ set title "Convex     November 1-7 1989"
+ set key below
+ set label "(Weekend)" at 5,25 center
+-plot 'using.dat' using 3:4 title "Logged in" with impulses,\
+-     'using.dat' using 3:5 t "Load average" with points,\
+-     'using.dat' using 3:6 t "%CPU used" with lines
++plot '<zcat using.dat.gz' using 3:4 title "Logged in" with impulses,\
++     '<zcat using.dat.gz' using 3:5 t "Load average" with points,\
++     '<zcat using.dat.gz' using 3:6 t "%CPU used" with lines
+ unset label
+ pause -1 "Hit return to continue"
+ reset
+diff --git a/vector.dem b/vector.dem
+index 387cb24..3565373 100644
+--- a/vector.dem
++++ b/vector.dem
+@@ -62,19 +62,19 @@ splot vtot(x,y) w l
+ print "Now create a file with equipotential lines"
+ pause -1 "Hit return to continue"
+ 
+-set table "equipo2.tmp"
++set table "<zcat equipo2.tmp.gz"
+ replot
+ unset table
+ reset
+ pause 0
+ 
+-plot "equipo2.tmp" w l
++plot "<zcat equipo2.tmp.gz" w l
+ print "Now create a x/y datafile for plotting with vectors "
+ print "and display vectors parallel to the electrostatic field"
+ pause -1 "Hit return to continue"
+ set isosam 31,31
+ 
+-set table "field2xy.tmp"
++set table "<zcat field2xy.tmp.gz"
+ splot vtot(x,y) w l
+ unset table
+ pause 0
+@@ -84,8 +84,8 @@ set xr [xmin:xmax]
+ set yr [ymin:ymax]
+ set isosam 31,31
+ set key under Left reverse
+-plot "field2xy.tmp" u 1:2:(coef*dx1($1,$2)):(coef*dy1($1,$2)) w vec, \
+-     "equipo2.tmp" w l
++plot "<zcat field2xy.tmp.gz" u 1:2:(coef*dx1($1,$2)):(coef*dy1($1,$2)) w vec, \
++     "<zcat equipo2.tmp.gz" w l
+ pause -1 "Hit return to continue"
+ 
+ reset
+diff --git a/world.dem b/world.dem
+index f7e47c9..79b9e8a 100644
+--- a/world.dem
++++ b/world.dem
+@@ -10,7 +10,7 @@ unset xtics
+ unset ytics
+ #
+ # plot world map and correspondent locations as a +
+-plot 'world.dat' with lines lt 3 , 'world.cor' with points lt 1 pt 2
++plot '<zcat world.dat.gz' with lines lt 3 , 'world.cor' with points lt 1 pt 2
+ set title ""
+ set key on
+ set border
+@@ -37,7 +37,7 @@ set isosamples 9
+ set urange [-90:90]
+ set vrange [0:360]
+ splot cos(u)*cos(v),cos(u)*sin(v),sin(u) with lines lc rgb "cyan" ,\
+-'world.dat' with lines lc rgb "blue" , 'world.cor' with points lt 1 pt 2
++'<zcat world.dat.gz' with lines lc rgb "blue" , 'world.cor' with points lt 1 pt 2
+ pause -1 "Hit return to continue"
+ 
+ # HBB 20000715: new demo:
+@@ -49,7 +49,7 @@ set arrow from 0,0,-1.2 to 0,0,1.2 lc rgb "cyan" lw 2
+ set arrow from -1.2, 0, 0 to 1.2, 0, 0 nohead lc rgb "cyan" lw 1 
+ set arrow from 0, -1.2, 0 to 0, 1.2, 0 nohead lc rgb "cyan" lw 1
+ splot cos(u)*cos(v),-cos(u)*sin(v),sin(u) with lines lc rgb "cyan" ,\
+-'world.dat' u 1:2:(1.001) with lines lc rgb "blue" , 'world.cor' with points lt 1 pt 2
++'<zcat world.dat.gz' u 1:2:(1.001) with lines lc rgb "blue" , 'world.cor' with points lt 1 pt 2
+ pause -1 "Hit return to continue"
+ 
+ unset arrow
+@@ -66,6 +66,6 @@ set isosamples 13
+ set urange [-180:180]
+ set vrange [-90:90]
+ splot cos(u),sin(u),v with lines lc rgb "cyan" ,\
+-'world.dat' with lines lc rgb "blue" lw 2, 'world.cor' with points lt 1 pt 2
++'<zcat world.dat.gz' with lines lc rgb "blue" lw 2, 'world.cor' with points lt 1 pt 2
+ pause -1 "Hit return to continue"
+ reset
+diff --git a/world2.dem b/world2.dem
+index 532ed44..e01ecc7 100644
+--- a/world2.dem
++++ b/world2.dem
+@@ -22,7 +22,7 @@ set cbrange [0:8]
+ set colorb vert user size 0.02, 0.75
+ unset hidden
+ splot cos(u)*cos(v),cos(u)*sin(v),sin(u) notitle with lines lt 5, \
+-      'world.dat' notitle with lines lt 2, \
++      '<zcat world.dat.gz' notitle with lines lt 2, \
+       'srl.dat' using 3:2:(1):1:4 with labels notitle point pt 6 lw .1 left offset 1,0 font "Helvetica,7" tc pal
+ pause -1 "Same plot with hidden line removal"
+ set title "Labels with hidden line removal"
diff --git a/debian/fix_examples/replace_gz.py b/debian/fix_examples/replace_gz.py
new file mode 100755
index 0000000..e44618f
--- /dev/null
+++ b/debian/fix_examples/replace_gz.py
@@ -0,0 +1,55 @@
+#!/usr/bin/env python
+# encoding: utf-8
+#
+
+
+import os, numpy, math, sys, datetime, glob
+
+list_of_files = glob.glob('./files/*')
+
+
+files = [
+'airfoil.dem.gz',
+'blutux.rgb.gz',
+'contours.dem.gz',
+'delaunay-edges.dat.gz',
+'demo.edf.gz',
+'equipo2.tmp.gz',
+'field2xy.tmp.gz',
+'finance.dat.gz',
+'finance.dem.gz',
+'fit3.dat.gz',
+'fit.dem.gz',
+'fit.log.gz',
+'glass.dat.gz',
+'GM1_bonds.r3d.gz',
+'GM1_sugar.pdb.gz',
+'gpdemos.tcl.gz',
+'hemisphr.dat.gz',
+'image2.dem.gz',
+'image.dem.gz',
+'key.dem.gz',
+'klein.dat.gz',
+'lena.rgb.gz',
+'moli3.dat.gz',
+'nearmap.csv.gz',
+'orbital_elements.dat.gz',
+'pm3dcolors.dem.gz',
+'pm3d.dem.gz',
+'poldat.dem.gz',
+'prob2.dem.gz',
+'prob.dem.gz',
+'random.dem.gz',
+'random-points.gz',
+'random.tmp.gz',
+'stat.inc.gz',
+'surface1.dem.gz',
+'using.dat.gz',
+'whale.dat.gz',
+'world.dat.gz']
+
+for i in list_of_files:
+  if (i[-3:]<>'.gz'):
+    for z in files:
+      s = 'sed -i \'s/%s/<zcat %s/g\' %s' % (z[:-3], z, i)
+      os.system(s)
diff --git a/debian/gnuplot5-doc.doc-base.gnuplot-pdf b/debian/gnuplot5-doc.doc-base.gnuplot-pdf
new file mode 100644
index 0000000..6a677b1
--- /dev/null
+++ b/debian/gnuplot5-doc.doc-base.gnuplot-pdf
@@ -0,0 +1,8 @@
+Document: gnuplot5-pdf
+Title: FAQ
+Author: Various
+Abstract: Frequently Asked Question
+Section: Science/Mathematics
+
+Format: PDF
+Files: /usr/share/doc/gnuplot5-doc/FAQ.pdf.gz
diff --git a/debian/gnuplot5-doc.docs b/debian/gnuplot5-doc.docs
new file mode 100644
index 0000000..0e61604
--- /dev/null
+++ b/debian/gnuplot5-doc.docs
@@ -0,0 +1,13 @@
+debian/build-x11/docs/gnuplot.ps
+debian/build-x11/docs/gpcard.ps
+debian/build-x11/tutorial/tutorial.dvi
+debian/build-x11/tutorial/tutorial.ps
+docs/psdoc/ps_guide.ps
+docs/psdoc/ps_symbols.gpi
+docs/psdoc/ps_file.doc
+docs/psdoc/ps_fontfile_doc.ps
+FAQ.pdf
+BUGS
+NEWS
+README
+README.1ST
diff --git a/debian/gnuplot5-doc.examples b/debian/gnuplot5-doc.examples
new file mode 100644
index 0000000..fca3ae4
--- /dev/null
+++ b/debian/gnuplot5-doc.examples
@@ -0,0 +1,2 @@
+demo/*
+debian/build-x11/demo/*
diff --git a/debian/gnuplot5-nox.install b/debian/gnuplot5-nox.install
new file mode 100644
index 0000000..b6be4e8
--- /dev/null
+++ b/debian/gnuplot5-nox.install
@@ -0,0 +1,2 @@
+debian/tmp/NOX/usr/bin/ usr
+debian/tmp/NOX/usr/share/gnuplot5/gnuplot5-nox.gih usr/share/gnuplot
diff --git a/debian/gnuplot5-nox.manpages b/debian/gnuplot5-nox.manpages
new file mode 100644
index 0000000..3fe910b
--- /dev/null
+++ b/debian/gnuplot5-nox.manpages
@@ -0,0 +1 @@
+debian/tmp/NOX/usr/share/man/man1/gnuplot5-nox.1
diff --git a/debian/gnuplot5-nox.menu b/debian/gnuplot5-nox.menu
new file mode 100644
index 0000000..04cc8c1
--- /dev/null
+++ b/debian/gnuplot5-nox.menu
@@ -0,0 +1,11 @@
+?package(gnuplot5-nox):\
+  needs="text"\
+  section="Applications/Science/Mathematics"\
+  title="Gnuplot"\
+  longtitle="Gnuplot - interactive plotting program"\
+  hints="Graphs"\
+  description="A command-line driven interactive plotting program.\
+   Package for making 2D and 3D graphs from data and functions.\
+   Supports lots of output formats, including drivers for many\
+   printers , (La)TeX, (x)fig, X11, PostScript, and so on."\
+  command="/usr/bin/gnuplot5-nox"
diff --git a/debian/gnuplot5-nox.postinst b/debian/gnuplot5-nox.postinst
new file mode 100644
index 0000000..e2e12ee
--- /dev/null
+++ b/debian/gnuplot5-nox.postinst
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+set -e
+
+if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ]; then
+    update-alternatives --install /usr/bin/gnuplot gnuplot /usr/bin/gnuplot5-nox 50 \
+      --slave /usr/share/man/man1/gnuplot.1.gz gnuplot.1.gz \
+      /usr/share/man/man1/gnuplot5-nox.1.gz \
+      --slave /usr/share/gnuplot5/gnuplot.gih gnuplot5.gih \
+      /usr/share/gnuplot5/gnuplot5-nox.gih
+fi
+
+#DEBHELPER#
diff --git a/debian/gnuplot5-nox.prerm b/debian/gnuplot5-nox.prerm
new file mode 100644
index 0000000..f64f253
--- /dev/null
+++ b/debian/gnuplot5-nox.prerm
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+set -e
+
+if [ "$1" != "upgrade" ]; then
+    update-alternatives --remove gnuplot /usr/bin/gnuplot5-nox
+fi
+
+#DEBHELPER#
diff --git a/debian/gnuplot5-qt.install b/debian/gnuplot5-qt.install
new file mode 100644
index 0000000..10ca7ec
--- /dev/null
+++ b/debian/gnuplot5-qt.install
@@ -0,0 +1,3 @@
+debian/tmp/QT/usr/bin usr
+debian/tmp/QT/usr/lib usr
+debian/tmp/QT/usr/share/gnuplot5/gnuplot5-qt.gih usr/share/gnuplot
diff --git a/debian/gnuplot5-qt.manpages b/debian/gnuplot5-qt.manpages
new file mode 100644
index 0000000..5b53fdf
--- /dev/null
+++ b/debian/gnuplot5-qt.manpages
@@ -0,0 +1 @@
+debian/tmp/QT/usr/share/man/man1/gnuplot5-qt.1
diff --git a/debian/gnuplot5-qt.menu b/debian/gnuplot5-qt.menu
new file mode 100644
index 0000000..bd3498a
--- /dev/null
+++ b/debian/gnuplot5-qt.menu
@@ -0,0 +1,11 @@
+?package(gnuplot5-qt):\
+  needs="text"\
+  section="Applications/Science/Mathematics"\
+  title="Gnuplot"\
+  longtitle="Gnuplot - interactive plotting program"\
+  hints="Graphs"\
+  description="A command-line driven interactive plotting program.\
+   Package for making 2D and 3D graphs from data and functions.\
+   Supports lots of output formats, including drivers for many\
+   printers , (La)TeX, (x)fig, X11, PostScript, and so on."\
+  command="/usr/bin/gnuplot5-qt"
diff --git a/debian/gnuplot5-qt.postinst b/debian/gnuplot5-qt.postinst
new file mode 100644
index 0000000..959d508
--- /dev/null
+++ b/debian/gnuplot5-qt.postinst
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+set -e
+
+if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ]; then
+    update-alternatives --install /usr/bin/gnuplot gnuplot /usr/bin/gnuplot5-qt 70 \
+      --slave /usr/share/man/man1/gnuplot.1.gz gnuplot.1.gz \
+      /usr/share/man/man1/gnuplot5-qt.1.gz \
+      --slave /usr/share/gnuplot5/gnuplot.gih gnuplot5.gih \
+      /usr/share/gnuplot5/gnuplot5-qt.gih
+fi
+
+#DEBHELPER#
diff --git a/debian/gnuplot5-qt.prerm b/debian/gnuplot5-qt.prerm
new file mode 100644
index 0000000..5c4a3b6
--- /dev/null
+++ b/debian/gnuplot5-qt.prerm
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+set -e
+
+if [ "$1" != "upgrade" ]; then
+    update-alternatives --remove gnuplot /usr/bin/gnuplot5-qt
+fi
+
+#DEBHELPER#
diff --git a/debian/gnuplot5-x11.install b/debian/gnuplot5-x11.install
new file mode 100644
index 0000000..70809ae
--- /dev/null
+++ b/debian/gnuplot5-x11.install
@@ -0,0 +1,3 @@
+debian/tmp/X11/usr/bin usr
+debian/tmp/X11/usr/lib usr
+debian/tmp/X11/usr/share/gnuplot5/gnuplot5-x11.gih usr/share/gnuplot5
diff --git a/debian/gnuplot5-x11.manpages b/debian/gnuplot5-x11.manpages
new file mode 100644
index 0000000..c69e29c
--- /dev/null
+++ b/debian/gnuplot5-x11.manpages
@@ -0,0 +1 @@
+debian/tmp/X11/usr/share/man/man1/gnuplot5-x11.1
diff --git a/debian/gnuplot5-x11.menu b/debian/gnuplot5-x11.menu
new file mode 100644
index 0000000..9cef671
--- /dev/null
+++ b/debian/gnuplot5-x11.menu
@@ -0,0 +1,11 @@
+?package(gnuplot5-x11):\
+  needs="text"\
+  section="Applications/Science/Mathematics"\
+  title="Gnuplot"\
+  longtitle="Gnuplot - interactive plotting program"\
+  hints="Graphs"\
+  description="A command-line driven interactive plotting program.\
+   Package for making 2D and 3D graphs from data and functions.\
+   Supports lots of output formats, including drivers for many\
+   printers , (La)TeX, (x)fig, X11, PostScript, and so on."\
+  command="/usr/bin/gnuplot5-x11"
diff --git a/debian/gnuplot5-x11.postinst b/debian/gnuplot5-x11.postinst
new file mode 100644
index 0000000..6c1f511
--- /dev/null
+++ b/debian/gnuplot5-x11.postinst
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+set -e
+
+if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ]; then
+    update-alternatives --install /usr/bin/gnuplot gnuplot /usr/bin/gnuplot5-x11 60 \
+      --slave /usr/share/man/man1/gnuplot.1.gz gnuplot.1.gz \
+      /usr/share/man/man1/gnuplot5-x11.1.gz \
+      --slave /usr/share/gnuplot5/gnuplot.gih gnuplot5.gih \
+      /usr/share/gnuplot5/gnuplot5-x11.gih
+fi
+
+#DEBHELPER#
diff --git a/debian/gnuplot5-x11.prerm b/debian/gnuplot5-x11.prerm
new file mode 100644
index 0000000..dbc70db
--- /dev/null
+++ b/debian/gnuplot5-x11.prerm
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+set -e
+
+if [ "$1" != "upgrade" ]; then
+    update-alternatives --remove gnuplot /usr/bin/gnuplot5-x11
+fi
+
+#DEBHELPER#
diff --git a/debian/gnuplot5.install b/debian/gnuplot5.install
new file mode 100644
index 0000000..f9cd49e
--- /dev/null
+++ b/debian/gnuplot5.install
@@ -0,0 +1,2 @@
+pm3d/contrib/* usr/share/gnuplot5/pm3d
+debian/tmp/QT/usr/share/gnuplot5/gnuplot/ usr/share/gnuplot5
diff --git a/debian/gnuplot5.links b/debian/gnuplot5.links
new file mode 100644
index 0000000..629fd99
--- /dev/null
+++ b/debian/gnuplot5.links
@@ -0,0 +1 @@
+usr/share/aglfn/aglfn.txt usr/share/gnuplot5/gnuplot/5.0/PostScript/aglfn.txt
diff --git a/debian/patches/04_fix_libexecdir.diff b/debian/patches/04_fix_libexecdir.diff
new file mode 100644
index 0000000..8b3551c
--- /dev/null
+++ b/debian/patches/04_fix_libexecdir.diff
@@ -0,0 +1,15 @@
+Description: fix libexecdir
+
+Index: gnuplot-5.0.rc1/src/Makefile.am
+===================================================================
+--- gnuplot-5.0.rc1.orig/src/Makefile.am
++++ gnuplot-5.0.rc1/src/Makefile.am
+@@ -2,7 +2,7 @@
+ AUTOMAKE_OPTIONS = foreign subdir-objects
+ 
+ # in the spirit of automake ...
+-pkglibexecdir = $(libexecdir)/@PACKAGE@/@VERSION_MAJOR@
++pkglibexecdir = $(libexecdir)
+ 
+ # Where to send email about bugs and comments (locally)
+ EMAIL = gnuplot-bugs at lists.sourceforge.net
diff --git a/debian/patches/05_default_gd_font.diff b/debian/patches/05_default_gd_font.diff
new file mode 100644
index 0000000..030fcb6
--- /dev/null
+++ b/debian/patches/05_default_gd_font.diff
@@ -0,0 +1,15 @@
+Description: change the default font
+
+Index: gnuplot-5.0.rc1/term/gd.trm
+===================================================================
+--- gnuplot-5.0.rc1.orig/term/gd.trm
++++ gnuplot-5.0.rc1/term/gd.trm
+@@ -989,7 +989,7 @@ PNG_options()
+ 	if (external_default)
+ 		png_state.ttffont = gp_strdup(external_default);
+ 	else	/* Might as well try some plausible font; it's no worse than failing immediately */
+-		png_state.ttffont = gp_strdup("arial");
++		png_state.ttffont = gp_strdup("/usr/share/fonts/truetype/liberation/LiberationSans-Regular.ttf");
+ 
+ 	free(png_state.default_ttffont);
+ 	png_state.default_ttffont = gp_strdup(png_state.ttffont);
diff --git a/debian/patches/08_disable_demo_plugin.patch b/debian/patches/08_disable_demo_plugin.patch
new file mode 100644
index 0000000..67276a0
--- /dev/null
+++ b/debian/patches/08_disable_demo_plugin.patch
@@ -0,0 +1,40 @@
+Description: temporarly disable demo plugin
+ this patch should be removed, when a new 
+ version appears, where already no binaries
+ in demo/plugin folder.
+Author: Anton Gladky <gladk at debian.org>
+Last-Update: 2014-07-11
+
+Index: gnuplot-5.0.rc1/demo/Makefile.in
+===================================================================
+--- gnuplot-5.0.rc1.orig/demo/Makefile.in
++++ gnuplot-5.0.rc1/demo/Makefile.in
+@@ -301,7 +301,6 @@ epslatex.ps epslatex.tex random.tmp stri
+ 
+ BINARY_FILES = binary1 binary2 binary3
+ SUBDIRS = $(PLUGIN_DIR)
+-DIST_SUBDIRS = plugin
+ DEMO = all.dem
+ GNUPLOT = gnuplot
+ GNUPLOT_X11 = `echo gnuplot_x11 | sed '$(transform)'`$(EXEEXT)
+@@ -341,7 +340,6 @@ GM1_sugar.pdb bldg.png GM1_bonds.r3d blu
+ sound2.par start.par gnuplot.rot gnu-valley random-points gpdemos.tcl \
+ html plugin 
+ 
+- at BUILD_PLUGIN_TRUE@PLUGIN_DIR = plugin
+ all: all-recursive
+ 
+ .SUFFIXES:
+Index: gnuplot-5.0.rc1/demo/plugin/Makefile.am
+===================================================================
+--- gnuplot-5.0.rc1.orig/demo/plugin/Makefile.am
++++ gnuplot-5.0.rc1/demo/plugin/Makefile.am
+@@ -1,8 +1,2 @@
+ ## Process this file with automake to produce Makefile.in -*-Makefile-*-
+ AUTOMAKE_OPTIONS = foreign
+-
+-noinst_PROGRAMS = demo_plugin.so
+-
+-demo_plugin_so_SOURCES = demo_plugin.c
+-demo_plugin_so_CFLAGS = -rdynamic -fPIC -I$(top_srcdir)/src
+-demo_plugin_so_LDFLAGS = -shared
diff --git a/debian/patches/08_disable_demo_plugin.patch~ b/debian/patches/08_disable_demo_plugin.patch~
new file mode 100644
index 0000000..e12a379
--- /dev/null
+++ b/debian/patches/08_disable_demo_plugin.patch~
@@ -0,0 +1,25 @@
+Description: temporarly disable demo plugin
+ this patch should be removed, when a new 
+ version appears, where already no binaries
+ in demo/plugin folder.
+Author: Anton Gladky <gladk at debian.org>
+Last-Update: 2014-07-11
+
+--- gnuplot5-5.0.0~rc+dfsg.orig/demo/Makefile.in
++++ gnuplot5-5.0.0~rc+dfsg/demo/Makefile.in
+@@ -301,7 +301,6 @@ epslatex.ps epslatex.tex random.tmp stri
+ 
+ BINARY_FILES = binary1 binary2 binary3
+ SUBDIRS = $(PLUGIN_DIR)
+-DIST_SUBDIRS = plugin
+ DEMO = all.dem
+ GNUPLOT = gnuplot
+ GNUPLOT_X11 = `echo gnuplot_x11 | sed '$(transform)'`$(EXEEXT)
+@@ -341,7 +340,6 @@ GM1_sugar.pdb bldg.png GM1_bonds.r3d blu
+ sound2.par start.par gnuplot.rot gnu-valley random-points gpdemos.tcl \
+ html plugin 
+ 
+- at BUILD_PLUGIN_TRUE@PLUGIN_DIR = plugin
+ all: all-recursive
+ 
+ .SUFFIXES:
diff --git a/debian/patches/doc.patch b/debian/patches/doc.patch
new file mode 100644
index 0000000..2516d58
--- /dev/null
+++ b/debian/patches/doc.patch
@@ -0,0 +1,38 @@
+Description: <short summary of the patch>
+ TODO: Put a short summary on the line above and replace this paragraph
+ with a longer explanation of this change. Complete the meta-information
+ with other relevant fields (see below for details). To make it easier, the
+ information below has been extracted from the changelog. Adjust it or drop
+ it.
+ .
+ gnuplot (5.0~rc1-1) unstable; urgency=medium
+ .
+   * [4d67729] Disable wxt-terminal. (Closes: #750045)
+   * [7342432] Increase priority of gnuplot-qt over gnuplot-x11.
+Author: Anton Gladky <gladk at debian.org>
+Bug-Debian: http://bugs.debian.org/750045
+
+---
+The information above should follow the Patch Tagging Guidelines, please
+checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here
+are templates for supplementary fields that you might want to add:
+
+Origin: <vendor|upstream|other>, <url of original patch>
+Bug: <url in upstream bugtracker>
+Bug-Debian: http://bugs.debian.org/<bugnumber>
+Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
+Forwarded: <no|not-needed|url proving that it has been forwarded>
+Reviewed-By: <name and email of someone who approved the patch>
+Last-Update: <YYYY-MM-DD>
+
+--- gnuplot-5.0~rc1.orig/docs/Makefile.am
++++ gnuplot-5.0~rc1/docs/Makefile.am
+@@ -324,7 +324,7 @@ ${ELCS}: gnuplot-eldoc.el
+ 	fi
+ 
+ gnuplot.info: gnuplot.texi
+-	$(MAKEINFO) -I$(srcdir) $(srcdir)/gnuplot.texi --no-split --output=$@
++	$(MAKEINFO) -I$(srcdir) $(srcdir)/gnuplot.texi --no-split --force --output=$@
+ 
+ install-info: gnuplot.info
+ 	$(top_srcdir)/mkinstalldirs $(DESTDIR)$(infodir)
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..cc8ac7c
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1,4 @@
+04_fix_libexecdir.diff
+05_default_gd_font.diff
+doc.patch
+08_disable_demo_plugin.patch
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..ea65dbb
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,79 @@
+#!/usr/bin/make -f
+
+%:
+	dh $@ --parallel --with autoreconf
+
+export DEB_BUILD_MAINT_OPTIONS := hardening=+all
+export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
+
+# Tell compiler where should find lua headers
+export DEB_CFLAGS_MAINT_APPEND = -I/usr/include/lua5.1
+
+BUILDDIR_NOX = $(CURDIR)/debian/build-nox
+BUILDDIR_X11 = $(CURDIR)/debian/build-x11
+BUILDDIR_QT = $(CURDIR)/debian/build-qt
+MANPNOX = $(CURDIR)/debian/gnuplot5-nox/usr/share/man/man1/gnuplot5-nox.1
+
+conf_opts += \
+	--prefix=/usr \
+	--mandir=\$${prefix}/share/man \
+	--libexecdir=\$${prefix}/lib/gnuplot5 \
+	--datadir=\$${prefix}/share/gnuplot5 \
+	--with-gihdir=\$${prefix}/share/gnuplot5 \
+	--without-lasergnu \
+	--with-png \
+	--with-gd \
+	--without-lisp-files \
+	--without-linux-vga \
+	--with-readline=bsd
+
+override_dh_auto_configure:
+	mkdir -p $(BUILDDIR_NOX)
+	cd $(BUILDDIR_NOX);  ./../../configure $(conf_opts) --without-x --disable-wxwidgets --disable-wxt
+	mkdir -p $(BUILDDIR_X11)
+	cd $(BUILDDIR_X11); ../../configure $(conf_opts) --without-qt --disable-wxt
+	mkdir -p $(BUILDDIR_QT)
+	cd $(BUILDDIR_QT); ../../configure $(conf_opts)  --enable-qt --disable-wxt
+
+override_dh_auto_build-arch:
+	dh_auto_build -a -- -C $(BUILDDIR_NOX)/src
+	dh_auto_build -a -- -C $(BUILDDIR_X11) pkglibexecdir='$$(libexecdir)'
+	dh_auto_build -a -- -C $(BUILDDIR_QT) pkglibexecdir='$$(libexecdir)'
+
+override_dh_auto_build-indep:
+	cp -f term/PostScript/prologue.ps docs/psdoc/
+	dh_auto_build -i -- -C $(BUILDDIR_X11)/docs ps info gpcard.ps
+	dh_auto_build -i -- -C $(BUILDDIR_X11)/tutorial tutorial.dvi tutorial.ps
+	dh_auto_build -i -- -C $(BUILDDIR_X11)/demo
+	dh_auto_build -i -- -C docs/psdoc ps_fontfile_doc.ps
+	mkdir -p docs/htmldocs
+	$(MAKEINFO) --html --force --output=docs/htmldocs/ docs/gnuplot.texi
+
+override_dh_auto_install:
+	$(MAKE) -C $(BUILDDIR_NOX) install DESTDIR=$(CURDIR)/debian/tmp/NOX/ \
+		pkglibexecdir='$$(libexecdir)'
+	mv $(CURDIR)/debian/tmp/NOX/usr/bin/gnuplot $(CURDIR)/debian/tmp/NOX/usr/bin/gnuplot5-nox
+	mv $(CURDIR)/debian/tmp/NOX/usr/share/man/man1/gnuplot.1 $(CURDIR)/debian/tmp/NOX/usr/share/man/man1/gnuplot5-nox.1
+	mv $(CURDIR)/debian/tmp/NOX/usr/share/gnuplot5/gnuplot.gih $(CURDIR)/debian/tmp/NOX/usr/share/gnuplot5/gnuplot5-nox.gih
+	$(MAKE) -C $(BUILDDIR_X11) install DESTDIR=$(CURDIR)/debian/tmp/X11/ \
+		pkglibexecdir='$$(libexecdir)'
+	mv $(CURDIR)/debian/tmp/X11/usr/bin/gnuplot $(CURDIR)/debian/tmp/X11/usr/bin/gnuplot5-x11
+	mv $(CURDIR)/debian/tmp/X11/usr/share/man/man1/gnuplot.1 $(CURDIR)/debian/tmp/X11/usr/share/man/man1/gnuplot5-x11.1
+	mv $(CURDIR)/debian/tmp/X11/usr/share/gnuplot5/gnuplot.gih $(CURDIR)/debian/tmp/X11/usr/share/gnuplot5/gnuplot5-x11.gih
+	$(MAKE) -C $(BUILDDIR_QT) install DESTDIR=$(CURDIR)/debian/tmp/QT/ \
+		pkglibexecdir='$$(libexecdir)'
+	mv $(CURDIR)/debian/tmp/QT/usr/bin/gnuplot $(CURDIR)/debian/tmp/QT/usr/bin/gnuplot5-qt
+	mv $(CURDIR)/debian/tmp/QT/usr/share/man/man1/gnuplot.1 $(CURDIR)/debian/tmp/QT/usr/share/man/man1/gnuplot5-qt.1
+	mv $(CURDIR)/debian/tmp/QT/usr/share/gnuplot5/gnuplot.gih $(CURDIR)/debian/tmp/QT/usr/share/gnuplot5/gnuplot5-qt.gih
+
+override_dh_auto_test:
+
+override_installchangelogs:
+	dh_installchangelogs -pgnuplot5-doc ChangeLog
+
+override_dh_installman:
+	dh_installman
+	# Fix manpage for nox-version. (Closes: #744218)
+	sed -i 's/\[X11 options\] //g' $(MANPNOX)
+	sed -i 's/plotting program/plotting program (no-X version)/g' $(MANPNOX)
+	sed -i '/SH\ X11\ OPTIONS/,/command line\./ d' $(MANPNOX)
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/debian/tests/arrowstyle b/debian/tests/arrowstyle
new file mode 100755
index 0000000..12b2cc4
--- /dev/null
+++ b/debian/tests/arrowstyle
@@ -0,0 +1,302 @@
+#!/bin/sh
+# autopkgtest check
+# (C) 2014 Anton Gladky
+
+set -e
+
+WORKDIR=$(mktemp -d)
+trap "rm -rf $WORKDIR" 0 INT QUIT ABRT PIPE TERM
+cd $WORKDIR
+
+cat <<EOF > 1.dat
+#
+-20.000000 -3.041676
+-19.000000 -3.036427
+-18.000000 -3.030596
+-17.000000 -3.024081
+-16.000000 -3.016755
+-15.000000 -3.008456
+-14.000000 -2.998978
+-13.000000 -2.988049
+-12.000000 -2.975310
+-11.000000 -2.960273
+-10.000000 -2.942255
+-9.000000 -2.920278
+-8.000000 -2.892883
+-7.000000 -2.857799
+-6.000000 -2.811295
+-5.000000 -2.746802
+-4.000000 -2.651635
+-3.000000 -2.498092
+-2.000000 -2.214297
+-1.000000 -1.570796
+0.000000 0.000000
+1.000000 1.570796
+2.000000 2.214297
+3.000000 2.498092
+4.000000 2.651635
+5.000000 2.746802
+6.000000 2.811295
+7.000000 2.857799
+8.000000 2.892883
+9.000000 2.920278
+10.000000 2.942255
+11.000000 2.960273
+12.000000 2.975310
+13.000000 2.988049
+14.000000 2.998978
+15.000000 3.008456
+16.000000 3.016755
+17.000000 3.024081
+18.000000 3.030596
+19.000000 3.036427
+EOF
+
+cat <<EOF > 2.dat
+#
+#
+#
+-20.000000 -6.083352
+-19.000000 -6.072853
+-18.000000 -6.061191
+-17.000000 -6.048162
+-16.000000 -6.033510
+-15.000000 -6.016913
+-14.000000 -5.997955
+-13.000000 -5.976098
+-12.000000 -5.950620
+-11.000000 -5.920546
+-10.000000 -5.884511
+-9.000000 -5.840556
+-8.000000 -5.785765
+-7.000000 -5.715597
+-6.000000 -5.622591
+-5.000000 -5.493603
+-4.000000 -5.303271
+-3.000000 -4.996183
+-2.000000 -4.428595
+-1.000000 -3.141593
+0.000000 0.000000
+1.000000 3.141593
+2.000000 4.428595
+3.000000 4.996183
+4.000000 5.303271
+5.000000 5.493603
+6.000000 5.622591
+7.000000 5.715597
+8.000000 5.785765
+9.000000 5.840556
+10.000000 5.884511
+11.000000 5.920546
+12.000000 5.950620
+13.000000 5.976098
+14.000000 5.997955
+15.000000 6.016913
+16.000000 6.033510
+17.000000 6.048162
+18.000000 6.061191
+19.000000 6.072853
+EOF
+
+cat <<EOF > 3.dat
+#
+#
+#
+-20.000000 -9.125028
+-19.000000 -9.109280
+-18.000000 -9.091787
+-17.000000 -9.072243
+-16.000000 -9.050265
+-15.000000 -9.025369
+-14.000000 -8.996933
+-13.000000 -8.964147
+-12.000000 -8.925931
+-11.000000 -8.880819
+-10.000000 -8.826766
+-9.000000 -8.760835
+-8.000000 -8.678648
+-7.000000 -8.573396
+-6.000000 -8.433886
+-5.000000 -8.240405
+-4.000000 -7.954906
+-3.000000 -7.494275
+-2.000000 -6.642892
+-1.000000 -4.712389
+0.000000 0.000000
+1.000000 4.712389
+2.000000 6.642892
+3.000000 7.494275
+4.000000 7.954906
+5.000000 8.240405
+6.000000 8.433886
+7.000000 8.573396
+8.000000 8.678648
+9.000000 8.760835
+10.000000 8.826766
+11.000000 8.880819
+12.000000 8.925931
+13.000000 8.964147
+14.000000 8.996933
+15.000000 9.025369
+16.000000 9.050265
+17.000000 9.072243
+18.000000 9.091787
+19.000000 9.109280
+EOF
+
+cat <<EOF > arrowstyle.dat
+-1000	37	-41
+-959	11	-49
+-918	-16	-48
+-877	-42	-39
+-836	-60	-24
+-795	-69	-5
+-755	-66	14
+-714	-52	32
+-673	-30	44
+-632	-2	49
+-591	24	46
+-551	48	35
+-510	64	18
+-469	69	0
+-428	63	-20
+-387	46	-37
+-346	22	-47
+-306	-5	-49
+-265	-32	-44
+-224	-54	-31
+-183	-67	-13
+-142	-68	7
+-102	-59	26
+-61	-39	40
+-20	-14	48
+20	14	48
+61	39	40
+102	59	26
+142	68	7
+183	67	-13
+224	54	-31
+265	32	-44
+306	5	-49
+346	-22	-47
+387	-46	-37
+428	-63	-20
+469	-69	-0
+510	-64	18
+551	-48	35
+591	-24	46
+632	2	49
+673	30	44
+714	52	32
+755	66	14
+795	69	-5
+836	60	-24
+877	42	-39
+918	16	-48
+959	-11	-49
+1000	-37	-41
+EOF
+
+cat <<EOF > arrowstyle.dem
+#
+#
+#
+set xrange [-1000:1000]
+set yrange [-178:86]
+set tics scale 0
+
+set style line 1 lt 1 lw 2
+set style line 2 lt 3 lw 2
+
+set style arrow 1 head filled size screen 0.025,30,45 ls 1
+set style arrow 2 head nofilled size screen 0.03,15 ls 2
+set style arrow 3 head filled size screen 0.03,15,45 ls 1
+set style arrow 4 head filled size screen 0.03,15 ls 2
+set style arrow 5 heads filled size screen 0.03,15,135 ls 1
+set style arrow 6 head empty size screen 0.03,15,135 ls 2
+set style arrow 7 nohead ls 1
+set style arrow 8 heads size screen 0.008,90 ls 2
+
+print ' We have defined the following arrowstyles:'
+show style arrow
+
+set arrow from -500,-100 to 500,-100 as 1
+set arrow from -500,-110 to 500,-110 as 2
+set arrow from -500,-120 to 500,-120 as 3
+set arrow from -500,-130 to 500,-130 as 4
+set arrow from -500,-140 to 500,-140 as 5
+set arrow from -500,-150 to 500,-150 as 6
+set arrow from -500,-160 to 500,-160 as 7
+set arrow from -500,-170 to 500,-170 as 8
+
+set label 'arrowstyle 1:' at -520,-100 right
+set label 'arrowstyle 2:' at -520,-110 right
+set label 'arrowstyle 3:' at -520,-120 right
+set label 'arrowstyle 4:' at -520,-130 right
+set label 'arrowstyle 5:' at -520,-140 right
+set label 'arrowstyle 6:' at -520,-150 right
+set label 'arrowstyle 7:' at -520,-160 right
+set label 'arrowstyle 8:' at -520,-170 right
+
+set title 'Top: plot with vectors arrowstyle 1, Bottom: explicit arrows'
+plot \
+     'arrowstyle.dat' using 1:2:(0):3 notitle with vectors arrowstyle 1
+pause -1 "Hit return to continue"
+
+set title 'Top: plot with vectors arrowstyle 2, Bottom: explicit arrows'
+plot \
+     'arrowstyle.dat' using 1:2:(0):3 notitle with vectors arrowstyle 2
+pause -1 "Hit return to continue"
+
+set title 'Top: plot with vectors arrowstyle 3, Bottom: explicit arrows'
+plot \
+     'arrowstyle.dat' using 1:2:(0):3 notitle with vectors arrowstyle 3
+pause -1 "Hit return to continue"
+
+set title 'Top: plot with vectors arrowstyle 4, Bottom: explicit arrows'
+plot \
+     'arrowstyle.dat' using 1:2:(0):3 notitle with vectors arrowstyle 4
+pause -1 "Hit return to continue"
+
+set title 'Top: plot with vectors arrowstyle 5, Bottom: explicit arrows'
+plot \
+     'arrowstyle.dat' using 1:2:(0):3 notitle with vectors arrowstyle 5
+pause -1 "Hit return to continue"
+
+set title 'Top: plot with vectors arrowstyle 6, Bottom: explicit arrows'
+plot \
+     'arrowstyle.dat' using 1:2:(0):3 notitle with vectors arrowstyle 6
+pause -1 "Hit return to continue"
+
+set title 'Top: plot with vectors arrowstyle 7, Bottom: explicit arrows'
+plot \
+     'arrowstyle.dat' using 1:2:(0):3 notitle with vectors arrowstyle 7
+pause -1 "Hit return to continue"
+
+set title 'Top: plot with vectors arrowstyle 8, Bottom: explicit arrows'
+plot \
+     'arrowstyle.dat' using 1:2:(0):3 notitle with vectors arrowstyle 8
+pause -1 "Hit return to continue"
+
+#reset
+
+#
+# Show plot with data style vectors
+#
+set title "Plot 'file' with vectors <arrowstyle>"
+set key box opaque
+set xrange [*:*]
+set yrange [*:10]
+set for [i=1:8] style arrow i lc i
+plot '1.dat' using 1:2:(+1):(+1) with vectors lt 4 filled title 'filled', \
+     '2.dat' using 1:2:(+1):(+1) with vectors lt 1 heads title 'double-headed', \
+     '2.dat' using (\$1):(2-\$2/3):(+1):(+2.5):(int(\$0)%8 + 1) with vectors as var ti 'arrowstyle variable'
+#
+pause -1 "Hi return to continue"
+#
+reset
+EOF
+
+gnuplot < arrowstyle.dem
+
+echo "run: OK"
diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..7ee96a3
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,2 @@
+Tests: arrowstyle epslatex fillstyle
+Depends: gnuplot-nox
diff --git a/debian/tests/epslatex b/debian/tests/epslatex
new file mode 100755
index 0000000..ada121c
--- /dev/null
+++ b/debian/tests/epslatex
@@ -0,0 +1,81 @@
+#!/bin/sh
+# autopkgtest check
+# (C) 2014 Anton Gladky
+
+set -e
+
+WORKDIR=$(mktemp -d)
+trap "rm -rf $WORKDIR" 0 INT QUIT ABRT PIPE TERM
+cd $WORKDIR
+
+cat <<EOF > epslatex.dem
+#
+#
+# This file demonstrates new features in gnuplot 4.1
+print "\n This file demonstrates how to use the epslatex terminal."
+print " It will generate two files: epslatex-inc.eps and epslatex.tex."
+print " \nIf the file gnuplot.cfg is found by LaTeX it will be loaded"
+print " and can be used for further settings, e.g., here it provides"
+print " the package exscale.sty which enlargens the integral sign.\n"
+pause -1 "Hit return to continue"
+#
+xmin=-270.
+xmax=270.
+ymin=-1.1
+ymax=1.2
+#
+reset
+set terminal push
+set terminal epslatex standalone linewidth 2 rounded \
+  dashlen 4 color '' 12
+set output 'epslatex.tex'
+unset autoscale
+set xr [xmin:xmax]
+set yr [ymin:ymax]
+#
+set encoding iso_8859_1
+set format x '\$%g\$'
+set format y '\$%.1f\$'
+set xtics 90
+set xlabel '\$x\$ / °'
+set ylabel '\$y\$'
+set arrow from -120,0.8 to -60,0.8 lt 1 lw 2 nohead
+set arrow from -120,0.7 to -60,0.7 lt 2 lw 2 nohead
+set arrow from -120,0.6 to -60,0.6 lt 3 lw 2 nohead
+set arrow from -120,0.5 to -60,0.5 lt 4 lw 2 nohead
+set arrow from -120,0.4 to -60,0.4 lt 5 lw 2 nohead
+set arrow from -120,0.3 to -60,0.3 lt 6 lw 2 nohead
+set arrow from -120,0.2 to -60,0.2 lt 7 lw 2 nohead
+set arrow from -120,0.1 to -60,0.1 lt 8 lw 2 nohead
+set label '\$\displaystyle\tan\alpha = \frac{\sin\alpha}{\cos\alpha}\$' \
+  at 90,0 centre textcolor lt 3
+set label '\$\displaystyle\int x\mathrm{d}x = \frac12 x^2 + C_1\$' \
+  at 90,-0.5 centre textcolor lt 4
+plot sin(pi/180.*x) title '\$y = \sin x\$' w l lt 1 lw 4
+set output
+#
+set terminal epslatex standalone oldstyle linewidth 2 rounded \
+  dashlen 1 color '' 12
+set output 'epslatex-oldstyle.tex'
+set tics scale 2
+replot
+set output
+#
+print "\n Now, either run"
+print "   latex epslatex"
+print "   dvips epslatex"
+print " and have a look at epslatex.ps; or run"
+print "   epstopdf epslatex-inc.eps"
+print "   pdflatex epslatex"
+print " and have a look at epslatex.pdf."
+print " Do the same with epslatex-oldstyle.tex."
+#
+set terminal pop
+reset
+EOF
+
+
+gnuplot < epslatex.dem
+ls -ln
+
+echo "run: OK"
diff --git a/debian/tests/fillstyle b/debian/tests/fillstyle
new file mode 100755
index 0000000..53fd1d8
--- /dev/null
+++ b/debian/tests/fillstyle
@@ -0,0 +1,79 @@
+#!/bin/sh
+# autopkgtest check
+# (C) 2014 Anton Gladky
+
+set -e
+
+WORKDIR=$(mktemp -d)
+trap "rm -rf $WORKDIR" 0 INT QUIT ABRT PIPE TERM
+cd $WORKDIR
+
+cat <<EOF > fillstyle.dem
+#
+#
+# E A Merritt <merritt at u.washington.edu>          24-Sep-2002
+#
+# Demo for revised fillstyle code selected by 
+# ./configure --enable-filledboxes --enable-relative-boxwidth
+#
+reset
+
+set samples 25
+unset xtics
+unset ytics
+set yrange [0:120]
+
+set title "A demonstration of boxes with default properties"
+plot [-10:10] 100/(1.0+x*x) title 'distribution' with boxes
+
+pause -1 "Now draw the boxes with solid fill"
+
+set title "A demonstration of boxes with style fill solid 1.0"
+set style fill solid 1.0
+replot
+
+pause -1 "Now draw the boxes with a black border"
+
+set title "A demonstration of boxes with style fill solid border -1"
+set style fill solid border -1
+replot
+
+pause -1 "Now make the boxes a little less wide"
+
+set title "Filled boxes of reduced width"
+set boxwidth 0.5 
+replot
+
+pause -1 "And now let's try a different fill density"
+
+set title "Filled boxes at 50% fill density"
+set style fill solid 0.25 border
+replot
+
+pause -1 "Now draw the boxes with no border"
+
+set title "A demonstration of boxes with style fill solid 0.25 noborder"
+set style fill solid 0.25 noborder
+replot
+
+pause -1 "Or maybe a pattern fill, instead?"
+
+set title "A demonstration of boxes in mono with style fill pattern"
+set samples 11
+set boxwidth 0.5 
+set style fill pattern border
+plot [-2.5:4.5] 100/(1.0+x*x) title 'pattern 0' with boxes lt -1, \
+                 80/(1.0+x*x) title 'pattern 1' with boxes lt -1, \
+                 40/(1.0+x*x) title 'pattern 2' with boxes lt -1, \
+                 20/(1.0+x*x) title 'pattern 3' with boxes lt -1
+
+pause -1 "Finished this demo"
+
+reset
+
+EOF
+
+
+gnuplot < fillstyle.dem
+
+echo "run: OK"
diff --git a/debian/tests/test b/debian/tests/test
new file mode 100755
index 0000000..dbb5b98
--- /dev/null
+++ b/debian/tests/test
@@ -0,0 +1,17 @@
+#!/bin/sh
+# autopkgtest check
+# (C) 2014 Anton Gladky
+
+set -e
+
+WORKDIR=$(mktemp -d)
+trap "rm -rf $WORKDIR" 0 INT QUIT ABRT PIPE TERM
+cd $WORKDIR
+
+cat <<EOF > a.dat
+EOF
+
+
+gnuplot < arrowstyle.dem
+
+echo "run: OK"
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..6e2574d
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,2 @@
+version=3
+http://sf.net/gnuplot/gnuplot-([\d.]+)\.tar\.gz

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/gnuplot5.git



More information about the debian-science-commits mailing list