debian/0000755000000000000000000000000011705067767007206 5ustar debian/compat0000644000000000000000000000000211705065470010371 0ustar 9 debian/libplotmm-dev.install0000644000000000000000000000006711705065465013345 0ustar usr/include/* usr/lib/*/lib*.so usr/lib/*/pkgconfig/* debian/plotmm-examples.manpages0000644000000000000000000000002711705065441014031 0ustar debian/plotmm-curves.1 debian/patches/0000755000000000000000000000000011705065441010620 5ustar debian/patches/04-integer_overflow.patch0000644000000000000000000000166111705065441015446 0ustar Subject: Avoid integer wrap around when zooming in. Bug: http://sourceforge.net/support/tracker.php?aid=1720945 Origin: http://sourceforge.net/support/tracker.php?aid=1720945 Applied-Upstream: no --- plotmm/doubleintmap.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) --- plotmm.orig/plotmm/doubleintmap.h +++ plotmm/plotmm/doubleintmap.h @@ -11,6 +11,7 @@ #define PLOTMM_DBLINTMAP_H #include +#include namespace PlotMM { @@ -143,10 +144,10 @@ namespace PlotMM { */ inline int DoubleIntMap::transform(double x) const { - if (d_log) - return d_y1 + ROUND((log(x) - d_x1) * d_cnv); - else - return d_y1 + ROUND((x - d_x1) * d_cnv); + double y(((d_log ? log(x) : x) - d_x1) * d_cnv); + y = std::min(std::numeric_limits::max() - (double)d_y1, + std::max(std::numeric_limits::min() - (double)d_y1, y)); + return d_y1 + ROUND(y); } } debian/patches/01-declaring_SigC_error.patch0000644000000000000000000000552011705065441016127 0ustar Author: Jaromír Mikeš Description: Fix SigC declaring errors. Forwarded: no --- --- plotmm.orig/plotmm/curve.h +++ plotmm/plotmm/curve.h @@ -140,7 +140,7 @@ int from = 0, int to = -1); //! Signals that this curve has changed in some way or the other - SigC::Signal0 signal_curve_changed; + sigc::signal0 signal_curve_changed; protected: virtual void init(const Glib::ustring &title); --- plotmm.orig/plotmm/plot.h +++ plotmm/plotmm/plot.h @@ -79,9 +79,9 @@ virtual void clear(); virtual void end_replot(); - SigC::Signal3 signal_plot_mouse_press; - SigC::Signal3 signal_plot_mouse_release; - SigC::Signal3 signal_plot_mouse_move; + sigc::signal3 signal_plot_mouse_press; + sigc::signal3 signal_plot_mouse_release; + sigc::signal3 signal_plot_mouse_move; protected: virtual bool on_expose_event(GdkEventExpose* event); @@ -141,9 +141,9 @@ Scale *scale(PlotAxisID id) { return tickMark_[id]; } PlotLabel *label(PlotAxisID id) { return axisLabel_[id]; } - SigC::Signal3 signal_plot_mouse_press(); - SigC::Signal3 signal_plot_mouse_release(); - SigC::Signal3 signal_plot_mouse_move(); + sigc::signal3 signal_plot_mouse_press(); + sigc::signal3 signal_plot_mouse_release(); + sigc::signal3 signal_plot_mouse_move(); void set_selection(const Rectangle &r); Rectangle get_selection() { return select_; } --- plotmm.orig/plotmm/scale.h +++ plotmm/plotmm/scale.h @@ -133,7 +133,7 @@ /*! This signal is thrown whenever the scale is enabled or disabled * \sa set_enabled, enabled */ - SigC::Signal1 signal_enabled; + sigc::signal1 signal_enabled; protected: virtual void on_realize(); --- plotmm.orig/plotmm/plot.cc +++ plotmm/plotmm/plot.cc @@ -406,19 +406,19 @@ } //! Return the signal owned by plot canvas -SigC::Signal3 Plot::signal_plot_mouse_press() +sigc::signal3 Plot::signal_plot_mouse_press() { return canvas_.signal_plot_mouse_press; } //! Return the signal owned by plot canvas -SigC::Signal3 Plot::signal_plot_mouse_release() +sigc::signal3 Plot::signal_plot_mouse_release() { return canvas_.signal_plot_mouse_release; } //! Return the signal owned by plot canvas -SigC::Signal3 Plot::signal_plot_mouse_move() +sigc::signal3 Plot::signal_plot_mouse_move() { return canvas_.signal_plot_mouse_move; } debian/patches/03-pkgconfig.patch0000644000000000000000000000066011705065441014032 0ustar Description: Remove -I${libdir}/plotmm/include from CFLAGS. Author: Alessio Treglia --- plotmm.pc.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- plotmm.orig/plotmm.pc.in +++ plotmm/plotmm.pc.in @@ -8,4 +8,4 @@ Description: Plot widget for GTKmm Requires: @GTKMM_PC@ Version: @VERSION@ Libs: -L${libdir} -lplotmm -Cflags: -I${includedir} -I${libdir}/plotmm/include +Cflags: -I${includedir} debian/patches/02-buildsystem.patch0000644000000000000000000000271011705065441014424 0ustar Description: Adjust buildsystem to link against all needed libraries. Author: Alessio Treglia --- configure.ac | 14 ++++++++++++-- plotmm/Makefile.am | 3 +++ 2 files changed, 15 insertions(+), 2 deletions(-) --- plotmm.orig/configure.ac +++ plotmm/configure.ac @@ -2,7 +2,6 @@ dnl Process this file with autoconf to p AC_INIT(configure.ac) AM_INIT_AUTOMAKE(plotmm, 0.1.2) -AM_MAINTAINER_MODE AM_CONFIG_HEADER(config.h) AC_ISC_POSIX @@ -13,7 +12,6 @@ AC_HEADER_STDC AC_PROG_INSTALL AC_PROG_LN_S AC_PROG_MAKE_SET -AC_PROG_RANLIB AM_PROG_LIBTOOL AC_CHECK_TOOL(DOXYGEN, doxygen) @@ -25,6 +23,18 @@ AC_SUBST(PACKAGE_CFLAGS) AC_SUBST(PACKAGE_LIBS) AC_SUBST(GTKMM_PC) +AC_MSG_CHECKING([if -Wl,--as-needed works]) +LFDLAGS_save=$LDFLAGS +LDFLAGS="$LDFLAGS -Wl,--as-needed" +AC_TRY_LINK([], [], + [ + AC_MSG_RESULT([yes]) + PACKAGE_LDFLAGS="$PACKAGE_LDFLAGS -Wl,--as-needed" + ], + [AC_MSG_RESULT([no])]) +LDFLAGS=$LDFLAGS_save +AC_SUBST(PACKAGE_LDFLAGS) + AC_OUTPUT([ Makefile Doxyfile --- plotmm.orig/plotmm/Makefile.am +++ plotmm/plotmm/Makefile.am @@ -15,5 +15,8 @@ libplotmm_la_SOURCES = \ compat.h libplotmm_la_CXXFLAGS = @PACKAGE_CFLAGS@ -I$(top_srcdir) +#libplotmm_la_LIBADD = -lglib-2.0 -lglibmm-2.4 -lgtkmm-2.4 -lgdkmm-2.4 -lpangomm-1.4 -lsigc-2.0 -latkmm-1.6 +libplotmm_la_LIBADD = @PACKAGE_LIBS@ +libplotmm_la_LDFLAGS = @PACKAGE_LDFLAGS@ CLEANFILES = *~ debian/patches/series0000644000000000000000000000014011705065441012030 0ustar 01-declaring_SigC_error.patch 02-buildsystem.patch 03-pkgconfig.patch 04-integer_overflow.patch debian/rules0000755000000000000000000000061111705066774010261 0ustar #!/usr/bin/make -f %: dh $@ --parallel --with autoreconf override_dh_auto_configure: dh_auto_configure -- --disable-static override_dh_installchangelogs: dh_installchangelogs ChangeLog README override_dh_auto_install: dh_auto_install cd $(CURDIR)/debian/tmp/usr/bin && \ mv curves plotmm-curves && \ mv simple plotmm-simple override_dh_strip: dh_strip --dbg-package=libplotmm-dbg debian/control0000644000000000000000000000523211705066735010605 0ustar Source: plotmm Section: science Priority: optional Maintainer: Debian Multimedia Maintainers Uploaders: Alessio Treglia , Jaromír Mikeš Build-Depends: debhelper (>= 8.1.3~), autotools-dev, dh-autoreconf, libgtkmm-2.4-dev, libsigc++-2.0-dev, libtool Build-Depends-Indep: doxygen Standards-Version: 3.9.2 Vcs-Git: git://git.debian.org/git/pkg-multimedia/plotmm.git Vcs-Browser: http://git.debian.org/?p=pkg-multimedia/plotmm.git Homepage: http://plotmm.sourceforge.net Package: libplotmm0 Section: libs Architecture: any Multi-Arch: same Pre-Depends: ${misc:Pre-Depends} Depends: ${shlibs:Depends}, ${misc:Depends} Description: GTKmm plot widgets for scientific applications This package provides an extension to the gtkmm library. . It contains widgets which are primarily useful for technical and scientifical purposes. Initially, this is a 2-D plotting widget. Package: libplotmm-dev Section: libdevel Architecture: any Multi-Arch: same Depends: libplotmm0 (= ${binary:Version}), libgtkmm-2.4-dev, libsigc++-2.0-dev, ${misc:Depends} Recommends: libplotmm-doc Description: Headers for developing programs that will use plotmm Extension to the gtkmm library. It contains widgets which are primarily useful for technical and scientifical purposes. . This package contains the headers that programmers will need to develop applications which will use plotmm. Package: plotmm-examples Section: graphics Architecture: any Depends: ${shlibs:Depends}, libplotmm0 (= ${binary:Version}), ${misc:Depends} Description: GTKmm plot widgets - sample applications PlotMM provides an extension to the gtkmm library. . It contains widgets which are primarily useful for technical and scientifical purposes. Initially, this is a 2-D plotting widget. . This package contains PlotMM sample applications Package: libplotmm-dbg Priority: extra Section: debug Architecture: any Multi-Arch: same Depends: libplotmm0 (= ${binary:Version}), plotmm-examples (= ${binary:Version}), ${misc:Depends} Description: GTKmm plot widgets - debugging symbols This package provides an extension to the gtkmm library. . It contains widgets which are primarily useful for technical and scientifical purposes. Initially, this is a 2-D plotting widget. . This package provides the debugging symbols. Package: libplotmm-doc Section: doc Architecture: all Depends: ${misc:Depends} Suggests: plotmm-examples Description: Plotmm documentation Extension to the gtkmm library. It contains widgets which are primarily useful for technical and scientifical purposes. . This package html documentation debian/libplotmm-doc.doc-base0000644000000000000000000000102411705065441013327 0ustar Document: libplotmm-doc Title: libplotmm documentation Author: Andy Thaller Abstract: GTKmm plot widget for scientific applications Section: Programming Format: HTML Index: /usr/share/doc/libplotmm-doc/html/index.html Files: /usr/share/doc/libplotmm-doc/html/*.html /usr/share/doc/libplotmm-doc/html/*.dot /usr/share/doc/libplotmm-doc/html/*.png /usr/share/doc/libplotmm-doc/html/*.map /usr/share/doc/libplotmm-doc/html/*.css /usr/share/doc/libplotmm-doc/html/*.md5 debian/changelog0000644000000000000000000000057011705067170011046 0ustar plotmm (0.1.2-2) unstable; urgency=low * Introduce Multi-Arch. * Bump Standards. * Enable parallel builds. * Update debian/copyright. -- Alessio Treglia Mon, 16 Jan 2012 19:37:34 +0100 plotmm (0.1.2-1) unstable; urgency=low * Initial release (Closes: #581503). -- Jaromír Mikeš Thu, 21 Oct 2010 19:06:26 +0200 debian/plotmm-examples.links0000644000000000000000000000011411705065441013353 0ustar usr/share/man/man1/plotmm-curves.1.gz usr/share/man/man1/plotmm-simple.1.gz debian/plotmm-examples.install0000644000000000000000000000001011705065441013674 0ustar usr/bin debian/gbp.conf0000644000000000000000000000005711705065441010612 0ustar [DEFAULT] pristine-tar = True sign-tags = True debian/copyright0000644000000000000000000000245111705067063011130 0ustar Format: http://svn.debian.org/wsvn/dep/web/deps/dep5.mdwn?op=file&rev=200 Upstrean-Name: PlotMM Upstream-Contact: Andy Thaller Source: http://sourceforge.net/projects/plotmm/files/ Files: * Copyright: 2004, Andy Thaller License: LGPL-2 Files: ./debian/* Copyright: 2010-2012, Alessio Treglia 2010, Jaromír Mikeš License: LGPL-2 License: LGPL-2 This program is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser 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 Lesser General Public License for more details. Comment: You should have received a copy of the GNU Lesser General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 01222-1307 USA . On Debian systems, the complete text of the GNU Lesser General Public License version 2 can be found in `/usr/share/common-licenses/LGPL-2'. debian/libplotmm-doc.install0000644000000000000000000000005511705065441013323 0ustar doc/html/* usr/share/doc/libplotmm-doc/html/ debian/plotmm-curves.10000644000000000000000000000175111705065441012074 0ustar .TH plotmm-curves "1" "October 2010" .SH NAME plotmm-curves \- PlotMM sample applications .SH SYNOPSIS .B plotmm-curves .PP .B plotmm-simple .SH DESCRIPTION This manual page documents briefly the .B plotmm-curves and .B plotmm-simple commands. .PP \fBPlotMM\fP is an extension to the gtkmm library. It contains widgets which are primarily useful for technical and scientifical purposes. For the beginning, this is a 2-D plotting widget. .PP .B plotmm-curves is a simple example application shows some basics. .PP .B plotmm-simple is a more sophisticated example application demonstrates the use of all PlotMM classes and shows off redrawing speed for large amounts of data .SH SEE ALSO PlotMM is based in part on the work of the Qwt project, for more information on Qwt visit .I http://qwt.sf.net/ .SH AUTHOR PlotMM was written by Andy Thaller . .PP This manual page was written by Alessio Treglia , for the Debian project (but may be used by others). debian/source/0000755000000000000000000000000011705065441010471 5ustar debian/source/format0000644000000000000000000000001411705065441011677 0ustar 3.0 (quilt) debian/watch0000644000000000000000000000007111705065441010220 0ustar version=3 http://sf.net/plotmm/plotmm-([\d.]+)\.tar\.gz debian/libplotmm0.install0000644000000000000000000000002411705065454012640 0ustar usr/lib/*/lib*.so.*