Ticket #48468: wxmaxima-update.diff

File wxmaxima-update.diff, 5.1 KB (added by Ionic (Mihai Moldovan), 9 years ago)

Update wxMaxima to 15.04.0 and refresh patches.

  • math/wxMaxima/Portfile

    diff -Nur math/wxMaxima/Portfile.orig math/wxMaxima/Portfile
    old new  
    55PortGroup       wxWidgets 1.0
    66
    77name            wxMaxima
    8 version         13.04.2
    9 revision        1
     8version         15.04.0
     9revision        0
    1010maintainers     mk openmaintainer
    1111license         gpl
    1212platforms       darwin
     
    1818homepage        http://wxmaxima.sourceforge.net/
    1919master_sites    sourceforge:project/[string tolower ${name}]/${name}/${version}
    2020livecheck.regex (?:[string tolower ${name}]|${name})-(\[a-z0-9.\]+)${extract.suffix}
    21 checksums       rmd160  9712bcd5ea8b84e247591d11634bde71b00f7a3e \
    22                 sha256  29352db75dd3ff27393ab0971543fd0b3c3a9c330c2c8d07ebfd373741ded4eb
     21checksums       rmd160  04295f10ccd074d7069d00b1a0fe41884817687c \
     22                sha256  0005029798703470333309fda29c731e79c85de1c7fc09b16cb87045a03aa4ba
     23
     24# Upstream changed the distname's spelling some time after 13.x.
     25distname        wxmaxima-${version}
    2326
    2427wxWidgets.use   wxWidgets-3.0
    2528
    2629patchfiles      patch-src_main.cpp.diff \
    27                 patch-src_Config.cpp.diff \
     30                patch-src_Dirstructure.h.diff \
    2831                patch-src_wxMaxima.cpp.diff
    2932
    3033depends_lib     port:libiconv \
     
    4144}
    4245
    4346depends_skip_archcheck  maxima
    44 configure.args  --enable-dnd --enable-printing --enable-unicode-glyphs --with-wxdir=${wxWidgets.wxdir}
     47configure.args  --enable-printing --with-wxdir=${wxWidgets.wxdir}
    4548build.target-append wxMaxima.app
    4649
    4750destroot {
  • math/wxMaxima/files/patch-src_Config.cpp.diff

    diff -Nur math/wxMaxima/files/patch-src_Config.cpp.diff.orig math/wxMaxima/files/patch-src_Config.cpp.diff
    old new  
    1 --- src/Config.cpp.old  2014-04-25 01:17:40.000000000 +0200
    2 +++ src/Config.cpp      2014-04-25 01:18:24.000000000 +0200
    3 @@ -191,8 +191,7 @@
    4    if (mp.Length())
    5      m_maximaProgram->SetValue(mp);
    6    else
    7 -    // this is where the mac installer installs maxima
    8 -    m_maximaProgram->SetValue(wxT("/Applications/Maxima.app"));
    9 +    m_maximaProgram->SetValue(wxT("maxima"));
    10  #else
    11    if (mp.Length())
    12      m_maximaProgram->SetValue(mp);
  • math/wxMaxima/files/patch-src_Dirstructure.h.diff

    diff -Nur math/wxMaxima/files/patch-src_Dirstructure.h.diff.orig math/wxMaxima/files/patch-src_Dirstructure.h.diff
    old new  
     1--- src/Dirstructure.h.old      2015-07-31 02:10:34.000000000 +0200
     2+++ src/Dirstructure.h  2015-07-31 02:16:47.000000000 +0200
     3@@ -110,7 +110,7 @@
     4   
     5   //! The path maxima is found at by default.
     6 #if defined __WXMAC__
     7-  wxString MaximaDefaultName() {return wxT("/Applications/Maxima.app");}
     8+  wxString MaximaDefaultName() {return wxT("maxima");}
     9 #elif defined __WXMSW__
     10   wxString MaximaDefaultName() {return wxStandardPaths::Get().GetExecutablePath()+wxT("/bin/maxima.bat");}
     11 #else
  • math/wxMaxima/files/patch-src_main.cpp.diff

    diff -Nur math/wxMaxima/files/patch-src_main.cpp.diff.orig math/wxMaxima/files/patch-src_main.cpp.diff
    old new  
    1 --- src/main.cpp.orig   2014-04-25 01:15:35.000000000 +0200
    2 +++ src/main.cpp        2014-04-25 01:16:30.000000000 +0200
    3 @@ -46,6 +46,16 @@
     1--- src/main.cpp.old    2015-07-31 02:08:46.000000000 +0200
     2+++ src/main.cpp        2015-07-31 02:09:17.000000000 +0200
     3@@ -48,6 +48,16 @@
    44 
    55 bool MyApp::OnInit()
    66 {
     
    1616+
    1717   int lang = wxLANGUAGE_UNKNOWN;
    1818 
    19  #if defined __WXMSW__
     19   wxCmdLineParser cmdLineParser(argc, argv);
  • math/wxMaxima/files/patch-src_wxMaxima.cpp.diff

    diff -Nur math/wxMaxima/files/patch-src_wxMaxima.cpp.diff.orig math/wxMaxima/files/patch-src_wxMaxima.cpp.diff
    old new  
    1 --- src/wxMaxima.cpp.orig       2014-04-25 01:20:45.000000000 +0200
    2 +++ src/wxMaxima.cpp    2014-04-25 01:20:55.000000000 +0200
    3 @@ -1484,7 +1484,7 @@
     1--- src/wxMaxima.cpp.old        2015-07-31 02:22:52.000000000 +0200
     2+++ src/wxMaxima.cpp    2015-07-31 02:24:21.000000000 +0200
     3@@ -1500,16 +1500,7 @@ wxString wxMaxima::GetCommand(bool param
     4   //Fix wrong" maxima=1" paraneter in ~/.wxMaxima if upgrading from 0.7.0a
    45   if (!have_config || (have_config && command.IsSameAs (wxT("1"))))
    56   {
    6  #if defined (__WXMAC__)
    7 -    command = wxT("/Applications/Maxima.app");
    8 +    command = wxT("maxima");
    9  #else
     7-#if defined (__WXMAC__)
     8-    if (wxFileExists("/Applications/Maxima.app"))
     9-      command = wxT("/Applications/Maxima.app");
     10-    else if (wxFileExists("/usr/local/bin/maxima"))
     11-      command = wxT("/usr/local/bin/maxima");
     12-    else
     13-      command = wxT("maxima");
     14-#else
    1015     command = wxT("maxima");
    11  #endif
     16-#endif
     17     config->Write(wxT("maxima"), command);
     18   }
     19