View | Details | Raw Unified | Return to bug 244464 | Differences between
and this patch

Collapse All | Expand All

(-)math/wxmaxima/Makefile (+1 lines)
Lines 3-8 Link Here
3
3
4
PORTNAME=	wxmaxima
4
PORTNAME=	wxmaxima
5
PORTVERSION=	20.02.4
5
PORTVERSION=	20.02.4
6
PORTREVISION=	1
6
DISTVERSIONPREFIX=	Version-
7
DISTVERSIONPREFIX=	Version-
7
CATEGORIES=	math
8
CATEGORIES=	math
8
9
(-)math/wxmaxima/files/patch-src_Dirstructure.cpp (+24 lines)
Line 0 Link Here
1
--- src/Dirstructure.cpp.orig	2020-03-09 10:05:50 UTC
2
+++ src/Dirstructure.cpp
3
@@ -79,10 +79,11 @@ wxString Dirstructure::ResourcesDir() const
4
   
5
   // We only need the drive and the directory part of the path to the binary
6
   exe.ClearExt();
7
-  exe.SetName(wxEmptyString);
8
+  //exe.SetName(wxEmptyString);
9
   
10
   // If the binary is in a source or bin folder the resources dir is one level above
11
   wxArrayString dirs = exe.GetDirs();
12
+  if(!dirs.IsEmpty()){
13
   if((dirs.Last().Upper() == wxT("SRC")) || (dirs.Last().Upper() == wxT("BIN")))
14
   {
15
     exe.RemoveLastDir();
16
@@ -93,7 +94,7 @@ wxString Dirstructure::ResourcesDir() const
17
   // are in MacOS/wxmaxima
18
   if((dirs.Last().Upper() == wxT("MACOS")))
19
     exe.RemoveLastDir();
20
-  
21
+  }
22
   // If there is a Resources folder the ressources are there
23
   if(wxDirExists(exe.GetPath() + wxT("/Resources")))
24
     exe.AppendDir("Resources");

Return to bug 244464