<pre style='margin:0'>
Ken (kencu) pushed a commit to branch master
in repository macports-ports.

</pre>
<p><a href="https://github.com/macports/macports-ports/commit/ff4d9bdbe235cfb7911a46b118e6913113b49ba8">https://github.com/macports/macports-ports/commit/ff4d9bdbe235cfb7911a46b118e6913113b49ba8</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit ff4d9bdbe235cfb7911a46b118e6913113b49ba8
</span>Author: Karl-Michael Schindler <karl-michael.schindler@web.de>
AuthorDate: Wed Oct 9 11:21:43 2019 +0200

<span style='display:block; white-space:pre;color:#404040;'>    1st try to fix.
</span><span style='display:block; white-space:pre;color:#404040;'>    
</span><span style='display:block; white-space:pre;color:#404040;'>    maybe us a patchfile? At least for the ugly parts?
</span>---
 devel/lazarus/Portfile | 29 +++++++++++++++--------------
 1 file changed, 15 insertions(+), 14 deletions(-)

<span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/lazarus/Portfile b/devel/lazarus/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 4aa598c..ab63e77 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/devel/lazarus/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/lazarus/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -4,7 +4,7 @@ PortSystem          1.0
</span> 
 name                lazarus
 version             2.0.4
<span style='display:block; white-space:pre;background:#ffe0e0;'>-revision            1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision            0
</span> categories          devel
 platforms           darwin
 license             GPL-2 LGPL-2
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -42,24 +42,25 @@ worksrcdir          lazarus
</span> 
 post-patch {
 # add the MacPorts directory tree. This might need a check in a new version
<span style='display:block; white-space:pre;background:#ffe0e0;'>-    reinplace "s|1\.\.15|1\.\.16|g"                                                       ${worksrcpath}/ide/include/unix/lazbaseconf.inc
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-    reinplace "s|'/usr/share/fpcsrc'|'/usr/share/fpcsrc','${prefix}/share/fpcsrc'|g"      ${worksrcpath}/ide/include/unix/lazbaseconf.inc
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-    reinplace "s|1\.\.8|1\.\.9|g"                                                         ${worksrcpath}/ide/include/unix/lazbaseconf.inc
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-    reinplace "s|'/usr/share/lazarus',|'/usr/share/lazarus','${prefix}/share/lazarus',|g" ${worksrcpath}/ide/include/unix/lazbaseconf.inc
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    set patchtarget ${worksrcpath}/ide/include/unix/lazbaseconf.inc
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    reinplace "s|1\.\.15|1\.\.16|g"                                                       ${patchtarget}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    reinplace "s|'/usr/share/fpcsrc'|'/usr/share/fpcsrc','${prefix}/share/fpcsrc'|g"      ${patchtarget}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    reinplace "s|1\.\.8|1\.\.9|g"                                                         ${patchtarget}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    reinplace "s|'/usr/share/lazarus',|'/usr/share/lazarus','${prefix}/share/lazarus',|g" ${patchtarget}
</span> 
<span style='display:block; white-space:pre;background:#ffe0e0;'>-# change the preferences directory
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-#   reinplace "s|'\.lazarus'|'Library/Preferences/lazarus'|g"                              ${worksrcpath}/ide/include/unix/lazbaseconf.inc
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-    reinplace "s|'/etc/lazarus'|'${prefix}/etc/lazarus'|g"                                 ${worksrcpath}/ide/include/unix/lazbaseconf.inc
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# change the preferences directory (actually, not yet)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+#   reinplace "s|'\.lazarus'|'Library/Preferences/lazarus'|g" ${patchtarget}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    reinplace "s|'/etc/lazarus'|'${prefix}/etc/lazarus'|g"    ${patchtarget}
</span> 
<span style='display:block; white-space:pre;background:#ffe0e0;'>-    reinplace "s|AddFilenameToList(List,'/usr/local/bin/'+GetDefaultCompilerFilename);|AddFilenameToList(List,'${prefix}/bin/'+GetDefaultCompilerFilename); AddFilenameToList(List,'/usr/local/bin/'+GetDefaultCompilerFilename);|g" ${worksrcpath}/ide/include/unix/lazbaseconf.inc
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    reinplace "s|AddFilenameToList(List,'/usr/local/bin/'+GetDefaultCompilerFilename);|AddFilenameToList(List,'${prefix}/bin/'+GetDefaultCompilerFilename); AddFilenameToList(List,'/usr/local/bin/'+GetDefaultCompilerFilename);|g" ${patchtarget}
</span> 
 # adjust the default paths to MacPorts paths
<span style='display:block; white-space:pre;background:#ffe0e0;'>-    reinplace "s|/usr/local/bin/_PPCARCH_|${prefix}/bin/ppcx64|g" ${worksrcpath}/tools/install/macosx/environmentoptions.xml
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-    reinplace "s|/usr/local/share|${prefix}/share|g"              ${worksrcpath}/tools/install/macosx/environmentoptions.xml
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-    reinplace "s|/Developer/lazarus|${prefix}/share/lazarus|g"    ${worksrcpath}/tools/install/macosx/environmentoptions.xml
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-    reinplace "s|<DebuggerFilename Value=\"/usr/bin/lldb\"/>|<DebuggerFilename Value=\"/usr/bin/lldb\"> <History Count=\"3\"> <Item1 Value=\"/usr/bin/lldb\"/> <Item2 Value=\"/usr/bin/gdb\"/> <Item3 Value=\"${prefix}/bin/gdb\"/> </History> </DebuggerFilename>|g" ${worksrcpath}/tools/install/macosx/environmentoptions.xml
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    set patchtarget ${worksrcpath}/tools/install/macosx/environmentoptions.xml
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    reinplace "s|/usr/local/bin/_PPCARCH_|${prefix}/bin/ppcx64|g" ${patchtarget}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    reinplace "s|/usr/local/share|${prefix}/share|g"              ${patchtarget}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    reinplace "s|/Developer/lazarus|${prefix}/share/lazarus|g"    ${patchtarget}
</span> 
<span style='display:block; white-space:pre;background:#e0ffe0;'>+    reinplace "s|<DebuggerFilename Value=\"/usr/bin/lldb\"/>|<DebuggerFilename Value=\"/usr/bin/lldb\"> <History Count=\"3\"> <Item1 Value=\"/usr/bin/lldb\"/> <Item2 Value=\"/usr/bin/gdb\"/> <Item3 Value=\"${prefix}/bin/gdb\"/> </History> </DebuggerFilename>|g" ${patchtarget}
</span> # fix path to X11
     reinplace "s|-Fl/usr/X11R6/lib -Fl/sw/lib|\"-Fl${prefix}/lib -Fl${prefix}/lib/pango-ft219/lib -Fl/opt/X11/lib\"|g" ${worksrcpath}/ide/Makefile
 
</pre><pre style='margin:0'>

</pre>