debian/0000775000000000000000000000000012164573106007175 5ustar debian/patches/0000775000000000000000000000000012164572753010633 5ustar debian/patches/0003-initialise.patch0000664000000000000000000000215112164572753014365 0ustar From: "Barak A. Pearlmutter" Date: Tue, 2 Jul 2013 15:14:39 +0100 Subject: initialise Initialise some variables to avoid warnings etc. --- SciPlot.c | 4 +++- SciPlotUtil.c | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/SciPlot.c b/SciPlot.c index 8475d72..66d7253 100644 --- a/SciPlot.c +++ b/SciPlot.c @@ -772,7 +772,7 @@ static int _ListNew (SciPlotWidget w) { int index; - SciPlotList *p; + SciPlotList *p = NULL; Boolean found; /* First check to see if there is any free space in the index */ @@ -3215,6 +3215,8 @@ DrawCartesianPlot (SciPlotWidget w) real x1, y1, x2, y2; Boolean skipnext=False; + x1 = 0; + y1 = 0; jstart = 0; while ((jstart < p->number) && (((p->data[jstart].x <= SCIPLOT_SKIP_VAL || diff --git a/SciPlotUtil.c b/SciPlotUtil.c index 4b391de..6e4aeaa 100644 --- a/SciPlotUtil.c +++ b/SciPlotUtil.c @@ -920,6 +920,7 @@ SciPlotReadDataFile(Widget parent, FILE * fd) int num, i; working = NULL; + linecount = 0; count = getfields(fd); while (count > 0) { if (count > 0) { debian/patches/0002-include-files.patch0000664000000000000000000000220512164572753014755 0ustar From: "Barak A. Pearlmutter" Date: Tue, 2 Jul 2013 15:13:57 +0100 Subject: include files --- SciPlot.c | 1 + realtime.c | 5 +++-- xyplot.c | 4 ++-- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/SciPlot.c b/SciPlot.c index cfb7cfa..8475d72 100644 --- a/SciPlot.c +++ b/SciPlot.c @@ -26,6 +26,7 @@ #include #include +#include #include "SciPlotP.h" diff --git a/realtime.c b/realtime.c index 734ff3e..eda8267 100644 --- a/realtime.c +++ b/realtime.c @@ -22,10 +22,11 @@ #include #include +#include #include #include -#include "SciPlot.h" -#include "SciPlotUtil.h" +#include +#include XtAppContext app_con; int line; diff --git a/xyplot.c b/xyplot.c index 6209b17..1f66e55 100644 --- a/xyplot.c +++ b/xyplot.c @@ -25,8 +25,8 @@ #include #include #include -#include "SciPlot.h" -#include "SciPlotUtil.h" +#include +#include void ArgProcess(Widget parent,int argc, char *argv[]) debian/patches/series0000664000000000000000000000010412164572753012043 0ustar 0001-Imakefile.patch 0002-include-files.patch 0003-initialise.patch debian/patches/0001-Imakefile.patch0000664000000000000000000000561312164572753014125 0ustar From: "Barak A. Pearlmutter" Date: Tue, 2 Jul 2013 15:12:17 +0100 Subject: Imakefile Change targets and such in Imakefile, inheritted from package pre-history. --- Imakefile | 43 ++++++++++++++++++++++++------------------- 1 file changed, 24 insertions(+), 19 deletions(-) diff --git a/Imakefile b/Imakefile index c4d8b6f..dae68a3 100644 --- a/Imakefile +++ b/Imakefile @@ -1,21 +1,13 @@ XCOMM Imakefile for widget demo programs -#ifdef LinuxArchitecture - CC = gcc - EXTRA_DEFINES = -g -Wall - CDEBUGFLAGS = -m486 - LESSTIF = -L/home/rob/src/lesstif/libXm - HDOC = ~/public_html/hdoc -#endif +EXTRA_DEFINES = -g -O3 -Wall $(PICFLAG) + #ifdef AIXArchitecture CC = c89 EXTRA_DEFINES = -g CDEBUGFLAGS = HDOC = hdoc #endif -#ifdef AlphaArchitecture - CC = cc -std1 -#endif MOTIF = $(LESSTIF) -lXm @@ -25,15 +17,18 @@ SYS_LIBRARIES = -lm CDEBUGFLAGS = WIDGET = SciPlot -PROGRAMS = sciplot realtime +#PROGRAMS = sciplot realtime TARFILE = sciplot -SRCS = SciPlot.c SciPlotUtil.c xyplot.c realtime.c +#SRCS = SciPlot.c SciPlotUtil.c xyplot.c realtime.c +SRCS = SciPlot.c SciPlotUtil.c HDRS = SciPlot.h SciPlotP.h SciPlotUtil.h OBJS = $(SRCS:.c=.o) -PLOTSRCS = SciPlot.c SciPlotUtil.c xyplot.c +#PLOTSRCS = SciPlot.c SciPlotUtil.c xyplot.c +PLOTSRCS = SciPlot.c SciPlotUtil.c PLOTOBJS= $(PLOTSRCS:.c=.o) -RTSRCS = SciPlot.c SciPlotUtil.c realtime.c +#RTSRCS = SciPlot.c SciPlotUtil.c realtime.c +RTSRCS = SciPlot.c SciPlotUtil.c RTOBJS= $(RTSRCS:.c=.o) DOCS = SciPlot. SciPlotProg. SciPlotDemo. gpl. @@ -54,14 +49,23 @@ XCOMM Definitions for generating the documentation $(HDOC) $*.hdoc > $*.html -AllTarget(sciplot realtime) +AllTarget(shared static) -NormalProgramTarget(sciplot,$(PLOTOBJS),$(MOTIFDEPS),$(MOTIFLIBS),$(SYS_LIBRARIES)) -NormalProgramTarget(realtime,$(RTOBJS),$(MOTIFDEPS),$(MOTIFLIBS),$(SYS_LIBRARIES)) +#NormalProgramTarget(sciplot,$(PLOTOBJS),$(MOTIFDEPS),$(MOTIFLIBS),$(SYS_LIBRARIES)) +#NormalProgramTarget(realtime,$(RTOBJS),$(MOTIFDEPS),$(MOTIFLIBS),$(SYS_LIBRARIES)) doc: $(HOBJS) $(HDOC) @echo "Updated html." +shared: $(PLOTOBJS) + ld -shared -o libsciplot.so.$(MI_N) SciPlot.o SciPlotUtil.o \ + $(LDOPTIONS) $(MOTIFLIBS) $(LDLIBS) $(SYS_LIBRARIES) $(EXTRA_LOAD_FLAGS) \ + -soname libsciplot.so.$(MA_N) -lc + +static: $(PLOTOBJS) + ar ru libsciplot.a SciPlot.o SciPlotUtil.o + ranlib libsciplot.a + version: -@STUFF=../$(WIDGET)-`fgrep _WIDGET_VERSION $(WIDGET).h|cut -f2`;\ echo Making version directory $$STUFF ;\ @@ -81,7 +85,8 @@ taz: $(SRCS) # Dependencies: +libsciplot.so: SciPlot.c SciPlotP.h SciPlot.h SciPlotUtil.c SciPlotUtil.h SciPlot.o: SciPlot.c SciPlotP.h SciPlot.h SciPlotUtil.o: SciPlotUtil.c SciPlotUtil.h -xyplot.o: xyplot.c SciPlot.h SciPlotUtil.h -realtime.o: realtime.c SciPlot.h SciPlotUtil.h +#xyplot.o: xyplot.c SciPlot.h SciPlotUtil.h +#realtime.o: realtime.c SciPlot.h SciPlotUtil.h debian/sciplot-dev.docs0000664000000000000000000000002012164557467012304 0ustar ANNOUNCE README debian/source/0000775000000000000000000000000012164557467010511 5ustar debian/source/format0000664000000000000000000000001412164557467011717 0ustar 3.0 (quilt) debian/control0000664000000000000000000000321312164557467010613 0ustar Source: sciplot Priority: extra Maintainer: Barak A. Pearlmutter Build-Depends: debhelper (>= 9), libmotif-dev, libxmu-dev, xutils-dev Standards-Version: 3.9.4 Section: science Vcs-Git: git://anonscm.debian.org/collab-maint/sciplot.git Vcs-Browser: http://anonscm.debian.org/gitweb/?p=collab-maint/sciplot.git Package: sciplot1 Section: libs Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Replaces: sciplot Conflicts: sciplot Description: widget for scientific plotting The SciPlot Widget is a widget capable of plotting Cartesian or polar graphs, including logarithmic axes in Cartesian plots. The widget is subclassed directly from the Core widget class, which means that it does not depend upon any other widget set. It may be freely used with Athena, Motif, or the Open Look/Xview widget sets. (There is optional Motif support that causes the widget to be subclassed from XmPrimitive. See the man page.) . Features provided in the widget include automatic scaling, legend drawing, axis labeling, PostScript output, multiple plotted lines, color support, user font specification, dashed lines, symbols drawn at points, logarithmic scales on one or both axes in Cartesian plots, and degrees or radians as angles in polar plots. Package: sciplot-dev Section: libdevel Architecture: any Depends: sciplot1 (= ${binary:Version}), ${misc:Depends} Conflicts: sciplot Description: Development library and header files for SciPlot Contains C header files and development shared libraries for SciPlot. The SciPlot Widget is a widget capable of plotting Cartesian or polar graphs, including logarithmic axes in Cartesian plots. debian/sciplot-dev.examples0000664000000000000000000000006412164557467013202 0ustar realtime.c xyplot.c data.txt debian/README.examples debian/sciplot-dev.links0000664000000000000000000000006012164557467012500 0ustar /usr/lib/libsciplot.so.1 /usr/lib/libsciplot.so debian/changelog0000664000000000000000000001074712164573064011063 0ustar sciplot (1.36-16) unstable; urgency=low * bump standards version (debian/control) * dh --parallel (debian/rules) * dh 9 (debian/compat, debian/control) * build using motif instead of lesstif (closes: #714742) * move upstream mods into quilt patches -- Barak A. Pearlmutter Tue, 02 Jul 2013 16:47:45 +0100 sciplot (1.36-15) unstable; urgency=low * switch from cvs to git * miscellaneous build modernisations and updates * mostly silence lintian * dpkg-source format 3.0 (quilt) -- Barak A. Pearlmutter Tue, 06 Apr 2010 22:16:47 +0100 sciplot (1.36-14) unstable; urgency=low * patch from Petr.Salinger@seznam.cz for GNU/kFreeBSD (closes: #536886) * rev deb std -- Barak A. Pearlmutter Tue, 14 Jul 2009 17:33:44 +0200 sciplot (1.36-13) unstable; urgency=low * fix some lintian issues: up to date dependencies, rev deb std, etc -- Barak A. Pearlmutter Tue, 19 Aug 2008 12:18:06 +0100 sciplot (1.36-12) unstable; urgency=low * Glark! Fix typo in debian/changelog (closes: 462517) * Inverse bit rot! Mysterious bug fixed self, dunno when (closes: 111930) -- Barak A. Pearlmutter Sun, 3 Feb 2008 20:56:47 +0000 sciplot (1.36-11) unstable; urgency=low * absorb NMU, depend upon lesstif2-dev (closes: 374248) -- Barak A. Pearlmutter Mon, 17 Jul 2006 21:27:40 +0100 sciplot (1.36-10.1) unstable; urgency=low * Non-maintainer upload. * lesstif1 is deprecated, transition to lesstif2 (Closes: #374248) -- Kai Hendry Fri, 30 Jun 2006 10:39:43 +0900 sciplot (1.36-10) unstable; urgency=low * additional build dependency (closes: #249555) -- Barak A. Pearlmutter Tue, 18 May 2004 00:44:11 -0600 sciplot (1.36-9) unstable; urgency=low * New Maintainer adopts cold body from morgue (closes: #174123) * Capitalize "Cartesian" in descriptions (closes: #125339, #125340) * Section lib/libdevel -- Barak A. Pearlmutter Thu, 28 Aug 2003 22:00:06 -0600 sciplot (1.36-8) unstable; urgency=low * New Maintainer (Closes: #84745) -- Brian Russo Mon, 12 Feb 2001 00:19:38 -1000 sciplot (1.36-7) unstable; urgency=low * Corrected the section of sciplot-dev from math to devel in debian/control. -- Adrian Bunk Sun, 4 Feb 2001 01:54:40 +0100 sciplot (1.36-6) unstable; urgency=low * New maintainer. (closes: #68200) -- Adrian Bunk Fri, 2 Feb 2001 13:57:14 +0100 sciplot (1.36-5) unstable; urgency=low * Added Conflicts: sciplot to binary packages sciplot1 and sciplot-dev. -- Peter Palfrader Thu, 28 Dec 2000 01:15:52 +0100 sciplot (1.36-4.1) unstable; urgency=low * Rebuilt package to remove wrong dependency on xlib6. -- Martin Michlmayr Thu, 21 Dec 2000 21:40:45 +0100 sciplot (1.36-4) unstable; urgency=low * Maintainer set to Debian QA Group. * The QA Group acknowledges the previous two NMUs (Closes: #48174, #49490). Thanks! * Added Build-Depends line. * Use gcc instead of egcc (Closes: #62908). * Updated Standards-Version. * Removed README.debian since it didn't contain any valuable information. * Updated README.examples. * Improved debian/copyright. * Removed the emacs config directives from debian/changelog. * Made the package a proper library (i.e. created a -dev package). * Compiled the new package on the Alpha architecture, and it seems to build without any problems (Closes: #55273). * Fixed some GCC warnings. -- Martin Michlmayr Wed, 20 Dec 2000 01:12:01 +0100 sciplot (1.36-3.2) unstable; urgency=low * NMU * Fixes compile problesm; closes: #49490 * Now uses debhelper * Lintian error free -- Randolph Chung Sat, 15 Jan 2000 10:20:15 -0700 sciplot (1.36-3.1) unstable; urgency=low * NMU for bugs * Closes: #48174 * needed to be recompiled against new lesstif * implemented switch to /usr/share/doc -- Sean E. Perry Thu, 28 Oct 1999 22:10:43 -0700 sciplot (1.36-3) unstable; urgency=low * Use -fPIC for shared library -- John Lapeyre Mon, 3 Aug 1998 17:12:09 -0700 sciplot (1.36-2) unstable; urgency=low * Initial Release. -- John Lapeyre Fri, 31 Jul 1998 11:47:31 -0700 sciplot (1.36-1) unstable; urgency=low * Initial Release. -- John Lapeyre Fri, 10 Jul 1998 16:05:22 -0700 debian/copyright0000664000000000000000000000106712164557467011150 0ustar First debianizer John Lapeyre . It was downloaded from ftp://ftp.x.org/contrib/widgets/ Upstream Author: Robert W. McMullen http://www.ae.utexas.edu/~rwmcm Copyright: Copyright (c) 1996 Robert W. McMullen Portions of the subroutine XDrawVString are Copyright (c) 1993 Alan Richardson You are free to distribute this software under the terms of the GNU Library General Public License. The full text of this license can be found in the file /usr/share/common-licenses/LGPL-2 debian/compat0000664000000000000000000000000212164557467010407 0ustar 9 debian/sciplot-dev.install0000664000000000000000000000012412164557467013027 0ustar *.h usr/include/ libsciplot.a usr/lib/ *.html *.gif usr/share/doc/sciplot-dev/html/ debian/sciplot1.links0000664000000000000000000000006512164557467012012 0ustar /usr/lib/libsciplot.so.1.36 /usr/lib/libsciplot.so.1 debian/README.Debian0000664000000000000000000000065112164557467011254 0ustar I've adopted this package, but I feel more like a foster parent. Really I rescued it from the morgue, where its body was growing cold. But I do not have the time to breath life into its body. If anyone who can love and cherish this sweet little morsel of code would like to take it from the cabinet under the stairs to your warm home, please be my guest. -- Barak A. Pearlmutter , Thu Aug 28 22:25:00 2003 debian/README.examples0000664000000000000000000000060112164557467011703 0ustar These instructions differ somewhat from the instructions in the original package, as the Debian distribution includes libsciplot.so as a shared library. To compile these examples: cd /tmp e=/usr/share/doc/sciplot-dev/examples make VPATH=$e LOADLIBES=-lsciplot CFLAGS='-Wall -O2' xyplot realtime and you can run one with: ./xyplot < /usr/share/doc/sciplot-dev/examples/data.txt debian/clean0000664000000000000000000000006012164557467010212 0ustar *.so.* Makefile build build-stamp install-stamp debian/sciplot1.install0000664000000000000000000000003412164557467012334 0ustar libsciplot.so.1.36 usr/lib/ debian/rules0000775000000000000000000000073212164557467010273 0ustar #!/usr/bin/make -f package=sciplot # Create the two so version strings for the symbolic link names # command=/usr/lib/dpkg/parsechangelog/debian