Ticket #41218: fityk.2.diff
File fityk.2.diff, 3.2 KB (added by mojca (Mojca Miklavec), 11 years ago) |
---|
-
Portfile
10 10 # other than that there is no reason not to use 1.2.1, 11 11 # but maybe a special addition to version string is needed to make the version info more exact 12 12 # github.setup wojdyr fityk 1.2.1 v 13 github.setup wojdyr fityk d401afd12813 github.setup wojdyr fityk 658ec7e1b3 14 14 name fityk 15 15 version 1.2.1 16 revision 216 revision 3 17 17 categories math 18 18 platforms darwin 19 19 license GPL-2 … … 28 28 29 29 homepage http://fityk.nieto.pl/ 30 30 31 checksums rmd160 df90f35efd878c9b21659715159c40c4f21a39b2\32 sha256 18cca305a151ef54051968bc055f2f36cd3588d67f9a8d19db538ee857d7617c31 checksums rmd160 b0c893352f2fb4026308786648270e4d4acaff46 \ 32 sha256 a4ae63f8befb22ef60b7823406221c73b7b362027e07e9070a56db1db88bef98 33 33 34 34 # TODO: also apply http://wiki.wxwidgets.org/WxMac-specific_topics#My_app_can.27t_be_brought_to_the_front.21 35 35 app.name fityk … … 52 52 53 53 depends_run port:gnuplot 54 54 55 patchfiles patch-fityk-common.h.diff \ 56 patch-wxgui-frame.cpp.diff 57 55 58 use_autoreconf yes 56 59 57 60 configure.args-append --with-wxdir=${wxWidgets.wxdir} -
files/patch-fityk-common.h.diff
1 https://github.com/wojdyr/fityk/issues/9 2 3 --- fityk/common.h.orig 4 +++ fityk/common.h 5 @@ -226,7 +226,7 @@ 6 inline bool is_zero(double a) { return fabs(a) <= epsilon; } 7 8 inline bool is_finite(double a) 9 -#if defined(__APPLE__) 10 +#if defined(__APPLE__) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 1090 11 // OSX 10.9 has deprecated finite() and recommends isfinite() 12 { return isfinite(a); } 13 #elif HAVE_FINITE -
files/patch-wxgui-frame.cpp.diff
1 --- wxgui/frame.cpp.orig 2 +++ wxgui/frame.cpp 3 @@ -451,6 +451,7 @@ 4 toolbar_ = new FToolBar(this, -1); 5 toolbar_->update_peak_type(peak_type_nr_, &peak_types_); 6 SetToolBar(toolbar_); 7 + toolbar_->Realize(); 8 9 //status bar 10 status_bar_ = new FStatusBar(this); 11 @@ -1658,11 +1659,13 @@ 12 if (show && !GetToolBar()) { 13 toolbar_ = new FToolBar(this, -1); 14 SetToolBar(toolbar_); 15 + toolbar_->Realize(); 16 update_toolbar(); 17 update_peak_type_list(); 18 //toolbar_->ToggleTool(ID_T_BAR, v_splitter_->IsSplit()); 19 } else if (!show && GetToolBar()){ 20 SetToolBar(NULL); 21 + toolbar_->Realize(); 22 delete toolbar_; 23 toolbar_ = NULL; 24 } 25 @@ -2384,7 +2387,6 @@ 26 //AddTool(ID_T_BAR, wxT("SideBar"), 27 // wxBitmap(right_pane_xpm), wxNullBitmap, wxITEM_CHECK, 28 // wxT("Datasets Pane"), wxT("Show/hide datasets pane")); 29 - Realize(); 30 } 31 32 void FToolBar::OnPeakChoice(wxCommandEvent &event)