aboutsummaryrefslogtreecommitdiff
path: root/development/fpc/fix-IDE-data-file-location.patch
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2021-09-05 14:00:21 -0400
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2021-10-13 00:51:58 +0700
commit9932163e56079de7435d787ba0eea8878bfdd78b (patch)
tree48d3aacf2f7e0652271f23734bf17f50a21e9634 /development/fpc/fix-IDE-data-file-location.patch
parentf0a6b101fa63539d705967ac8ed992b8dfed233e (diff)
downloadslackbuilds-9932163e56079de7435d787ba0eea8878bfdd78b.tar.xz
development/fpc: Updated for version 3.2.2, new maintainer.
Signed-off-by: B. Watson <yalhcru@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'development/fpc/fix-IDE-data-file-location.patch')
-rw-r--r--development/fpc/fix-IDE-data-file-location.patch69
1 files changed, 69 insertions, 0 deletions
diff --git a/development/fpc/fix-IDE-data-file-location.patch b/development/fpc/fix-IDE-data-file-location.patch
new file mode 100644
index 000000000000..3ab047f40a62
--- /dev/null
+++ b/development/fpc/fix-IDE-data-file-location.patch
@@ -0,0 +1,69 @@
+Description: Align fp IDE template file paths with Debian standards
+ The fp IDE looks for template files in /usr/bin where itself is installed.
+ However this is not conform with Debian stadard for file locations.
+ This patch fixes this by making the IDE looking for templates in the base
+ installation directory.
+Author: Abou Al Montacir <abou.almontacir@sfr.fr>
+Index: fpc/fpcsrc/packages/ide/fpmake.pp
+===================================================================
+--- fpc.orig/fpcsrc/packages/ide/fpmake.pp
++++ fpc/fpcsrc/packages/ide/fpmake.pp
+@@ -282,16 +282,16 @@ begin
+ T.Directory:='compiler';
+ T.Install:=false;
+
+- P.InstallFiles.Add('fp.ans','$(bininstalldir)');
+- P.InstallFiles.Add('gplprog.pt','$(bininstalldir)');
+- P.InstallFiles.Add('gplunit.pt','$(bininstalldir)');
+- P.InstallFiles.Add('program.pt','$(bininstalldir)');
+- P.InstallFiles.Add('unit.pt','$(bininstalldir)');
+- P.InstallFiles.Add('cvsco.tdf','$(bininstalldir)');
+- P.InstallFiles.Add('cvsdiff.tdf','$(bininstalldir)');
+- P.InstallFiles.Add('cvsup.tdf','$(bininstalldir)');
+- P.InstallFiles.Add('grep.tdf','$(bininstalldir)');
+- P.InstallFiles.Add('tpgrep.tdf','$(bininstalldir)');
++ P.InstallFiles.Add('fp.ans','$(baseinstalldir)/ide');
++ P.InstallFiles.Add('gplprog.pt','$(baseinstalldir)/ide');
++ P.InstallFiles.Add('gplunit.pt','$(baseinstalldir)/ide');
++ P.InstallFiles.Add('program.pt','$(baseinstalldir)/ide');
++ P.InstallFiles.Add('unit.pt','$(baseinstalldir)/ide');
++ P.InstallFiles.Add('cvsco.tdf','$(baseinstalldir)/ide');
++ P.InstallFiles.Add('cvsdiff.tdf','$(baseinstalldir)/ide');
++ P.InstallFiles.Add('cvsup.tdf','$(baseinstalldir)/ide');
++ P.InstallFiles.Add('grep.tdf','$(baseinstalldir)/ide');
++ P.InstallFiles.Add('tpgrep.tdf','$(baseinstalldir)/ide');
+ P.InstallFiles.Add('fp32.ico', [win32, win64], '$(bininstalldir)');
+
+ with P.Sources do
+Index: fpc/fpcsrc/packages/ide/fpini.pas
+===================================================================
+--- fpc.orig/fpcsrc/packages/ide/fpini.pas
++++ fpc/fpcsrc/packages/ide/fpini.pas
+@@ -178,12 +178,12 @@ begin
+ end;
+ {$endif WINDOWS}
+ {$else}
+- SystemIDEDir:=FExpand(DirOf(system.paramstr(0))+'../lib/fpc/'+version_string+'/ide/text');
++ SystemIDEDir:=FExpand(DirOf(system.paramstr(0))+'../lib/fpc/'+version_string+'/ide');
+ If Not ExistsDir(SystemIDEdir) Then
+ begin
+- SystemIDEDir:=FExpand(DirOf(system.paramstr(0))+'../lib64/fpc/'+version_string+'/ide/text');
++ SystemIDEDir:=FExpand(DirOf(system.paramstr(0))+'../lib64/fpc/'+version_string+'/ide');
+ If Not ExistsDir(SystemIDEdir) Then
+- SystemIDEDir:='/usr/lib/fpc/'+version_string+'/ide/text';
++ SystemIDEDir:='/usr/lib/fpc/'+version_string+'/ide';
+ end;
+ IDEdir:=CompleteDir(FExpand('~/.fp'));
+ If Not ExistsDir(IDEdir) Then
+Index: fpc/fpcsrc/packages/ide/fptemplt.pas
+===================================================================
+--- fpc.orig/fpcsrc/packages/ide/fptemplt.pas
++++ fpc/fpcsrc/packages/ide/fptemplt.pas
+@@ -280,6 +280,7 @@ begin
+ New(Templates, Init(10,10));
+ ScanDir('.');
+ ScanDir(IDEDir);
++ ScanDir(SystemIDEDir);
+ end;
+
+