git: 62bf703a4155 - main - math/wxmaxima: Make WxMaxima find its own documentation

From: Lorenzo Salvadore <salvadore_at_FreeBSD.org>
Date: Fri, 24 Feb 2023 09:55:46 UTC
The branch main has been updated by salvadore:

URL: https://cgit.FreeBSD.org/ports/commit/?id=62bf703a41550ae4000a4d1258912309586a0a52

commit 62bf703a41550ae4000a4d1258912309586a0a52
Author:     Lorenzo Salvadore <salvadore@FreeBSD.org>
AuthorDate: 2023-02-19 14:24:33 +0000
Commit:     Lorenzo Salvadore <salvadore@FreeBSD.org>
CommitDate: 2023-02-24 09:55:40 +0000

    math/wxmaxima: Make WxMaxima find its own documentation
    
    Fix the resources directory, so that WxMaxima actually finds its own
    documentation (if installed).
---
 math/wxmaxima/Makefile                         |  1 +
 math/wxmaxima/files/patch-src_Dirstructure.cpp | 10 ++++++++++
 2 files changed, 11 insertions(+)

diff --git a/math/wxmaxima/Makefile b/math/wxmaxima/Makefile
index 24bc48de0693..3d7f3789f745 100644
--- a/math/wxmaxima/Makefile
+++ b/math/wxmaxima/Makefile
@@ -1,6 +1,7 @@
 PORTNAME=	wxmaxima
 PORTVERSION=	23.02.0
 DISTVERSIONPREFIX=	Version-
+PORTREVISION=	1
 CATEGORIES=	math
 
 MAINTAINER=	salvadore@FreeBSD.org
diff --git a/math/wxmaxima/files/patch-src_Dirstructure.cpp b/math/wxmaxima/files/patch-src_Dirstructure.cpp
new file mode 100644
index 000000000000..42ab59c742be
--- /dev/null
+++ b/math/wxmaxima/files/patch-src_Dirstructure.cpp
@@ -0,0 +1,10 @@
+--- src/Dirstructure.cpp.orig	2023-02-19 14:20:34 UTC
++++ src/Dirstructure.cpp
+@@ -120,6 +120,7 @@ wxString Dirstructure::ResourcesDir() const {
+     exepath = exe.GetPath();
+   } else {
+     exepath = CMAKE_INSTALL_PREFIX;
++    exepath.Append("/share");
+   }
+   return exepath;
+ }