diff -Nur math/wxMaxima/Portfile.orig math/wxMaxima/Portfile
old
|
new
|
|
5 | 5 | PortGroup wxWidgets 1.0 |
6 | 6 | |
7 | 7 | name wxMaxima |
8 | | version 13.04.2 |
9 | | revision 1 |
| 8 | version 15.04.0 |
| 9 | revision 0 |
10 | 10 | maintainers mk openmaintainer |
11 | 11 | license gpl |
12 | 12 | platforms darwin |
… |
… |
|
18 | 18 | homepage http://wxmaxima.sourceforge.net/ |
19 | 19 | master_sites sourceforge:project/[string tolower ${name}]/${name}/${version} |
20 | 20 | livecheck.regex (?:[string tolower ${name}]|${name})-(\[a-z0-9.\]+)${extract.suffix} |
21 | | checksums rmd160 9712bcd5ea8b84e247591d11634bde71b00f7a3e \ |
22 | | sha256 29352db75dd3ff27393ab0971543fd0b3c3a9c330c2c8d07ebfd373741ded4eb |
| 21 | checksums rmd160 04295f10ccd074d7069d00b1a0fe41884817687c \ |
| 22 | sha256 0005029798703470333309fda29c731e79c85de1c7fc09b16cb87045a03aa4ba |
| 23 | |
| 24 | # Upstream changed the distname's spelling some time after 13.x. |
| 25 | distname wxmaxima-${version} |
23 | 26 | |
24 | 27 | wxWidgets.use wxWidgets-3.0 |
25 | 28 | |
26 | 29 | patchfiles patch-src_main.cpp.diff \ |
27 | | patch-src_Config.cpp.diff \ |
| 30 | patch-src_Dirstructure.h.diff \ |
28 | 31 | patch-src_wxMaxima.cpp.diff |
29 | 32 | |
30 | 33 | depends_lib port:libiconv \ |
… |
… |
|
41 | 44 | } |
42 | 45 | |
43 | 46 | depends_skip_archcheck maxima |
44 | | configure.args --enable-dnd --enable-printing --enable-unicode-glyphs --with-wxdir=${wxWidgets.wxdir} |
| 47 | configure.args --enable-printing --with-wxdir=${wxWidgets.wxdir} |
45 | 48 | build.target-append wxMaxima.app |
46 | 49 | |
47 | 50 | destroot { |
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); |
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 |
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 @@ |
4 | 4 | |
5 | 5 | bool MyApp::OnInit() |
6 | 6 | { |
… |
… |
|
16 | 16 | + |
17 | 17 | int lang = wxLANGUAGE_UNKNOWN; |
18 | 18 | |
19 | | #if defined __WXMSW__ |
| 19 | wxCmdLineParser cmdLineParser(argc, argv); |
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 |
4 | 5 | if (!have_config || (have_config && command.IsSameAs (wxT("1")))) |
5 | 6 | { |
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 |
10 | 15 | command = wxT("maxima"); |
11 | | #endif |
| 16 | -#endif |
| 17 | config->Write(wxT("maxima"), command); |
| 18 | } |
| 19 | |