ports/editors/cudatext/files/patch-app-proc_globdata.pas
Jose Alonso Cardenas Marquez b06b9eff11 - Update to 1.99.0
2020-05-14 06:07:00 +00:00

40 lines
1,014 B
ObjectPascal

--- app/proc_globdata.pas 2020-05-11 23:45:28.000000000 -0500
+++ app/proc_globdata.pas 2020-05-13 18:40:54.377841000 -0500
@@ -909,6 +909,10 @@
exit(ExtractFileDir(OpDirExe)+'/Resources');
{$endif}
+ {$ifdef freebsd}
+ exit('%%DATADIR%%');
+ {$endif}
+
Result:= '';
end;
@@ -973,6 +977,10 @@
OpDirLocal:= AppDir_Home+'Library/Application Support/CudaText';
CreateDirUTF8(OpDirLocal);
{$endif}
+ {$ifdef freebsd}
+ OpDirLocal:= AppDir_Home + '.config/' + 'cudatext';
+ CreateDirUTF8(OpDirLocal);
+ {$endif}
AppDir_Settings:= OpDirLocal+DirectorySeparator+'settings';
CreateDirUTF8(AppDir_Settings);
@@ -1000,6 +1008,15 @@
OpDirPrecopy+'/',
OpDirLocal
], S);
+ {$endif}
+ {$ifdef freebsd}
+ RunCommand('cp', ['-R',
+ '%%DATADIR%%/py',
+ '%%DATADIR%%/data',
+ '%%DATADIR%%/readme',
+ '%%DATADIR%%/settings_default',
+ OpDirLocal
+ ], S);
{$endif}
AppDir_Py:= OpDirLocal+DirectorySeparator+'py';