pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/math/fityk



Module Name:    pkgsrc
Committed By:   joerg
Date:           Mon Apr 20 00:41:04 UTC 2020

Modified Files:
        pkgsrc/math/fityk: distinfo
Added Files:
        pkgsrc/math/fityk/patches: patch-src_data.cpp patch-src_wxgui_dload.cpp
            patch-src_wxgui_frame.cpp

Log Message:
Consistently use the interface type of the library.


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 pkgsrc/math/fityk/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/math/fityk/patches/patch-src_data.cpp \
    pkgsrc/math/fityk/patches/patch-src_wxgui_dload.cpp \
    pkgsrc/math/fityk/patches/patch-src_wxgui_frame.cpp

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/math/fityk/distinfo
diff -u pkgsrc/math/fityk/distinfo:1.7 pkgsrc/math/fityk/distinfo:1.8
--- pkgsrc/math/fityk/distinfo:1.7      Tue Nov  3 23:33:33 2015
+++ pkgsrc/math/fityk/distinfo  Mon Apr 20 00:41:04 2020
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.7 2015/11/03 23:33:33 agc Exp $
+$NetBSD: distinfo,v 1.8 2020/04/20 00:41:04 joerg Exp $
 
 SHA1 (fityk-0.9.7.tar.bz2) = bb4d11b529c6c87c68c6f7359075915caf95a996
 RMD160 (fityk-0.9.7.tar.bz2) = bd403037157b32ec7c7c6972f17116e403d099bc
@@ -7,6 +7,9 @@ Size (fityk-0.9.7.tar.bz2) = 1146628 byt
 SHA1 (patch-aa) = c923919db013ca9ddb8370617bf0b4b0aaa31922
 SHA1 (patch-src_GAfit.cpp) = 6543899d3861853d0738bbb5ced2cc9f59fda6db
 SHA1 (patch-src_common.h) = 1ab3f9d0c72c1f4bb0740a22ccc7960fb18b4c90
+SHA1 (patch-src_data.cpp) = b3aa6c9561a117b93e0447786c9fb4ca50d9438f
 SHA1 (patch-src_eparser.cpp) = 6120b71f1bcafc1efc5b774426955084739a42c0
 SHA1 (patch-src_guess.cpp) = 2379b3bc3de4d24a8c5a2781c27b8eeccbb516c2
 SHA1 (patch-src_wxgui_ceria.cpp) = d3d07180b20b563c67d1bb7316d38ef64ff91a8a
+SHA1 (patch-src_wxgui_dload.cpp) = 08df6c1d5d7cc859927e452450379363710f0a0a
+SHA1 (patch-src_wxgui_frame.cpp) = d3b24c7babb143f0a4e50186b418c45e908e26de

Added files:

Index: pkgsrc/math/fityk/patches/patch-src_data.cpp
diff -u /dev/null pkgsrc/math/fityk/patches/patch-src_data.cpp:1.1
--- /dev/null   Mon Apr 20 00:41:04 2020
+++ pkgsrc/math/fityk/patches/patch-src_data.cpp        Mon Apr 20 00:41:04 2020
@@ -0,0 +1,31 @@
+$NetBSD: patch-src_data.cpp,v 1.1 2020/04/20 00:41:04 joerg Exp $
+
+--- src/data.cpp.orig  2020-04-19 19:03:20.044364446 +0000
++++ src/data.cpp
+@@ -307,7 +307,7 @@ static string tr_opt(string options)
+ int Data::count_blocks(string const& fn,
+                        string const& format, string const& options)
+ {
+-    shared_ptr<const xylib::DataSet> xyds(
++    dataset_shared_ptr xyds(
+                         xylib::cached_load_file(fn, format, tr_opt(options)));
+     return xyds->get_block_count();
+ }
+@@ -316,7 +316,7 @@ int Data::count_columns(string const& fn
+                         string const& format, string const& options,
+                         int first_block)
+ {
+-    shared_ptr<const xylib::DataSet> xyds(
++    dataset_shared_ptr xyds(
+                         xylib::cached_load_file(fn, format, tr_opt(options)));
+     return xyds->get_block(first_block)->get_column_count();
+ }
+@@ -332,7 +332,7 @@ void Data::load_file (string const& fn,
+ 
+     string block_name;
+     try {
+-        shared_ptr<const xylib::DataSet> xyds(
++        dataset_shared_ptr xyds(
+                         xylib::cached_load_file(fn, format, tr_opt(options)));
+         clear(); //removing previous file
+         vector<int> bb = blocks.empty() ? vector1(0) : blocks;
Index: pkgsrc/math/fityk/patches/patch-src_wxgui_dload.cpp
diff -u /dev/null pkgsrc/math/fityk/patches/patch-src_wxgui_dload.cpp:1.1
--- /dev/null   Mon Apr 20 00:41:04 2020
+++ pkgsrc/math/fityk/patches/patch-src_wxgui_dload.cpp Mon Apr 20 00:41:04 2020
@@ -0,0 +1,18 @@
+$NetBSD: patch-src_wxgui_dload.cpp,v 1.1 2020/04/20 00:41:04 joerg Exp $
+
+--- src/wxgui/dload.cpp.orig   2020-04-19 19:06:47.672823533 +0000
++++ src/wxgui/dload.cpp
+@@ -53,11 +53,11 @@ public:
+     void draw(wxDC &dc, bool);
+     void load_dataset(string const& filename, string const& filetype,
+                       string const& options);
+-    shared_ptr<const xylib::DataSet> get_data() const { return data; }
++    dataset_shared_ptr get_data() const { return data; }
+     void make_outdated() { data_updated = false; }
+ 
+ private:
+-    shared_ptr<const xylib::DataSet> data;
++    dataset_shared_ptr data;
+     bool data_updated; // if false, draw() doesn't do anything (plot is clear)
+ };
+ 
Index: pkgsrc/math/fityk/patches/patch-src_wxgui_frame.cpp
diff -u /dev/null pkgsrc/math/fityk/patches/patch-src_wxgui_frame.cpp:1.1
--- /dev/null   Mon Apr 20 00:41:04 2020
+++ pkgsrc/math/fityk/patches/patch-src_wxgui_frame.cpp Mon Apr 20 00:41:04 2020
@@ -0,0 +1,13 @@
+$NetBSD: patch-src_wxgui_frame.cpp,v 1.1 2020/04/20 00:41:04 joerg Exp $
+
+--- src/wxgui/frame.cpp.orig   2020-04-19 19:08:09.074623963 +0000
++++ src/wxgui/frame.cpp
+@@ -919,7 +919,7 @@ void FFrame::OnDataQLoad (wxCommandEvent
+     string cmd;
+     if (count == 1) {
+         string f = wx2s(paths[0]);
+-        shared_ptr<const xylib::DataSet> d = xylib::cached_load_file(f, "", "");
++        dataset_shared_ptr d = xylib::cached_load_file(f, "", "");
+         if (d->get_block_count() > 1) {
+             wxArrayString choices;
+             for (int i = 0; i < d->get_block_count(); ++i) {



Home | Main Index | Thread Index | Old Index